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
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@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@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
participants (2)
-
Avi Marcus
-
Elliott Vogel