Hola again,
 
Here's a great guide on using the toll_allow variable:
http://wiki.fusionpbx.com/index.php?title=Extensions#Notes_on_Toll_Allow
 
<condition field="${toll_allow}" expression="LOC-A" />
... is the proper way to do the condition check on your outbound route. Sorry!
 
If you are running FusionPBX, you can set the toll_allow variable in the extension itself.
 
-BD
On Fri, Jan 13, 2012 at 9:15 AM, Brian Foster <bdfoster@endigotech.com> wrote:
Hola,
 
Take a look at the toll_allow variable, and set an outbound route for each location that requires 112. You need to have a condition:
 
<condition field="toll_allow" value="LOC-A" />
 
...then set this for each user in the directory:
 
<variable name="toll_allow" value="var1,var2,LOC-A" />
(you can set more than one value in this field, for example you could restrict certain users from dialing internationally).
 
-BD
On Fri, Jan 13, 2012 at 8:59 AM, Miha Zoubek <miha@softnet.si> wrote:
Hi,

to explain what I would like to achieve.


Users in different geographic location needs to call a certain special
numbers different. If someone in location a is calling number 112, FS
need to add prefix 454 before 112 (so 454112). Someone in location b
when call to 112, FS needs to add 324 (so 324112).

What is the best way to achieve that?


Is it possible to add users in location A in group a and users on
location B in group B and  that mach in dial if it is group A than do
this, if it is group B that do this?

I noticed <condition field="group">  do not work?

To mention I need to put this condition before my dialplan, so if the
condition for dialed number it not matched, that proceed with my default
dialplan.

Thank you!

regards,
Miha

--
Best regards / Lep Pozdrav
Miha Zoubek
Softnet d.o.o.


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



--
Brian D. Foster
Endigo Computer LLC
Email: bdfoster@endigotech.com
Phone: 317-429-1069
Indianapolis, Indiana, USA

This message contains confidential information and is intended for those listed in the "To:", "CC:", and/or "BCC:" fields of the message header.If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.




--
Brian D. Foster
Endigo Computer LLC
Email: bdfoster@endigotech.com
Phone: 317-429-1069
Indianapolis, Indiana, USA

This message contains confidential information and is intended for those listed in the "To:", "CC:", and/or "BCC:" fields of the message header.If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.