[Freeswitch-users] Variable in dialplan

Avi Marcus avi at avimarcus.net
Wed Jan 18 14:59:54 MSK 2012


How are you setting test to 112?
And can you pastbin your fs_cli log of the call? That often makes it clear
what is going on.

-Avi


On Wed, Jan 18, 2012 at 11:33 AM, Miha Zoubek <miha at softnet.si> wrote:

>  Hi,
>
> I need a little help about passing variable between dialplans.
>
> I have created one default diaplan. In this dialplan a have set:
> <action application="execute_extension" data="check special numbers XML
> default"/>
>
> In check special numbers XML there is a condition (<condition
> field="destination_number" expression="^check special numbers$"  >) and
> than
> <action application="execute_extension" data="special numbers XML
> default"/>.
>
> In special numbers XML I have a condition and if this condition is right
> the variable $test is set to 112. SO in default dialplan after all this is
> set must default dialplan execute this <action application="bridge" data=
> "sofia/external/386${test}@xx.xxx.xxx.xxx"<sofia/external/386$%7Btest%7D at xx.xxx.xxx.xxx>
> />
> where ${test} should be variable from special numbers XML.
>
> Why the value of variable is not passed?
>
> Thanks!
>
> --
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120118/338c8046/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list