MasterVitronic / fusionpbx

Automatically exported from code.google.com/p/fusionpbx
0 stars 0 forks source link

Help: Directory user variables e.g. ${toll_allow} inactive #496

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I would like to use toll_allow user variables in the directory folder to 
control trunk usage. This dialplan command
<condition field=${toll_allow} data="local"/>
fails even if "toll_allow=local,domestic" is set in the users directory. It 
worked in the vanilla FreeSWITCH. 

I appreciate for the help.

Original issue reported on code.google.com by nandy1...@gmail.com on 5 Nov 2013 at 11:14

GoogleCodeExporter commented 9 years ago
It should still work in FusionPBX because after all it's still using FreeSWITCH.

<condition field=${toll_allow} data="local"/>
"toll_allow=local,domestic"
Will work with this still. However if this is another condition in an outbound 
route it needs to be first before the destination_number condition.

Because you are not using a ^ and $ that is the reason local,domestic will work.
<condition field=${toll_allow} data="^local$"/> This looks for an exact match 
and the way you described works like a like statement just looking for a 
matching string anywhere in the statement.

Original comment by markjcrane@gmail.com on 13 Apr 2014 at 7:03