[Freeswitch-users] help about diaplan
Brian Foster
bdfoster at endigotech.com
Fri Jan 13 17:15:58 MSK 2012
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 at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at 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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120113/558460fd/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list