[Freeswitch-users] Variable in dialplan

Miha Zoubek miha at softnet.si
Wed Jan 18 16:56:12 MSK 2012


On 1/18/2012 12:59 PM, Avi Marcus wrote:
> 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 
> <mailto: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"
>     <mailto: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 <mailto: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
>     <mailto: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
>
>
>
>
> _________________________________________________________________________
> 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
Hi @Avi,

I found out what was causing the problem.

Thanks!

-- 
Best regards / Lep Pozdrav
Miha Zoubek
Softnet d.o.o.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120118/a5f08fb2/attachment-0001.html 


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