remove country code from destination_number
Hi, I'd like to have the country code "+49" removed from destination_number and changed to "0" I tried: <extension name="international" continue="true"> <condition field="destination_number" expression="^\+49(.*)"> <action inline="true" application="set" data="destination_number=0$1"/> </condition> </extension> but after correctly executing this extension-statement it reverts to the original version of destination_number
You can't/shouldn't modify destination_number, it's part of the caller profile. You can either transfer it to 0$1 to have it hit the dialplan again, or bridge to your gateway and use 0$1 as the destination. -Avi On Fri, Dec 5, 2014 at 12:22 PM, Paul Klenk <markus.klenk@googlemail.com> wrote:
Hi,
I'd like to have the country code "+49" removed from destination_number and changed to "0"
I tried: <extension name="international" continue="true"> <condition field="destination_number" expression="^\+49(.*)"> <action inline="true" application="set" data="destination_number=0$1"/> </condition> </extension>
but after correctly executing this extension-statement it reverts to the original version of destination_number
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
you just need to use a different variable to store the modified destination number. here are a couple of examples from my blog: http://txlab.wordpress.com/2014/10/21/using-voxbeam-for-outbound-calls-with-... http://txlab.wordpress.com/2013/08/03/free-us-number-and-caller-id-manipulat... On Fri, Dec 5, 2014 at 11:22 AM, Paul Klenk <markus.klenk@googlemail.com> wrote:
Hi,
I'd like to have the country code "+49" removed from destination_number and changed to "0"
I tried: <extension name="international" continue="true"> <condition field="destination_number" expression="^\+49(.*)"> <action inline="true" application="set" data="destination_number=0$1"/> </condition> </extension>
but after correctly executing this extension-statement it reverts to the original version of destination_number
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
mod_translate On 5 December 2014 at 11:52, Stanislav Sinyagin <ssinyagin@gmail.com> wrote:
you just need to use a different variable to store the modified destination number. here are a couple of examples from my blog:
http://txlab.wordpress.com/2014/10/21/using-voxbeam-for-outbound-calls-with-...
http://txlab.wordpress.com/2013/08/03/free-us-number-and-caller-id-manipulat...
On Fri, Dec 5, 2014 at 11:22 AM, Paul Klenk <markus.klenk@googlemail.com> wrote:
Hi,
I'd like to have the country code "+49" removed from destination_number and changed to "0"
I tried: <extension name="international" continue="true"> <condition field="destination_number" expression="^\+49(.*)"> <action inline="true" application="set" data="destination_number=0$1"/> </condition> </extension>
but after correctly executing this extension-statement it reverts to the original version of destination_number
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
-- *Andrew Cassidy BSc (Hons) MBCS SSCA* Managing Director *T <info@cassidywebservices.co.uk> *03300 100 960 *F <info@cassidywebservices.co.uk> *03300 100 961 *E <info@cassidywebservices.co.uk> *andrew@cassidywebservices.co.uk *W <info@cassidywebservices.co.uk> *www.cassidywebservices.co.uk
participants (4)
-
Andrew Cassidy
-
Avi Marcus
-
Paul Klenk
-
Stanislav Sinyagin