[Freeswitch-users] dial plan help
Avi Marcus
avi at avimarcus.net
Fri Nov 18 12:04:27 MSK 2011
You either need to normalize all number via a second variable - e.g.
${destination_fixed} or something... and set that for everything. Hmm,
using the new OR logic in the dialplan, you can actually do better
things... but it still can have complication.
Or, much simpler - but slightly higher on resource usage - is to
transfer the call back to whichever context at the full number. e.g.
<extension name="7_digit">
<condition field="destination_number" expression="^(\d\d{6})$">
<action application="transfer" data="1212$1"/>
</condition>
</extension>
This takes all 7 digit calls and restarts the dialplan as 1-212-$x. So
I'd recommend putting this at the beginning of your dialplan..
-Avi Marcus
On Fri, Nov 18, 2011 at 8:08 AM, Elliott Vogel <elliott at zoogmedia.com> wrote:
> Does anyone has an example on how to setup a normalization rule in the dial
> plan? basically I want to transform 7 digit number into to 10 digit number
> and then continue processing the dial plan
>
> _________________________________________________________________________
> 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
>
>
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list