<div>Hola,</div><div> </div><div>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:</div><div> </div><div><condition field="toll_allow" value="LOC-A" /></div>
<div> </div><div>...then set this for each user in the directory:</div><div> </div><div><variable name="toll_allow" value="var1,var2,LOC-A" /></div><div>(you can set more than one value in this field, for example you could restrict certain users from dialing internationally).</div>
<div> </div><div>-BD<br></div><div class="gmail_quote">On Fri, Jan 13, 2012 at 8:59 AM, Miha Zoubek <span dir="ltr"><<a href="mailto:miha@softnet.si">miha@softnet.si</a>></span> wrote:<br><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
Hi,<br>
<br>
to explain what I would like to achieve.<br>
<br>
<br>
Users in different geographic location needs to call a certain special<br>
numbers different. If someone in location a is calling number 112, FS<br>
need to add prefix 454 before 112 (so 454112). Someone in location b<br>
when call to 112, FS needs to add 324 (so 324112).<br>
<br>
What is the best way to achieve that?<br>
<br>
<br>
Is it possible to add users in location A in group a and users on<br>
location B in group B and that mach in dial if it is group A than do<br>
this, if it is group B that do this?<br>
<br>
I noticed <condition field="group"> do not work?<br>
<br>
To mention I need to put this condition before my dialplan, so if the<br>
condition for dialed number it not matched, that proceed with my default<br>
dialplan.<br>
<br>
Thank you!<br>
<br>
regards,<br>
Miha<br>
<br>
--<br>
Best regards / Lep Pozdrav<br>
Miha Zoubek<br>
Softnet d.o.o.<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Brian D. Foster<br>Endigo Computer LLC<br>Email: <a href="mailto:bdfoster@endigotech.com" target="_blank">bdfoster@endigotech.com</a><br>Phone: 317-429-1069<br>Indianapolis, Indiana, USA<br>
<br>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.<br>
<br>