[Freeswitch-users] vars scope in dialplan

Madovsky infos at madovsky.org
Mon Jun 7 12:24:19 PDT 2010


example :

<extension name="blabla">
 <condition>
   <action application="set" data="test=cake"/>
 </condition>
 <condition field="${test}" expression="^(cake)$">
   <action application="set" data="prfx=00"/>
 </condition>
<condition field="${sip_to_uri}" expression="^(1\d{10,15})@$${domain}$">
 <action application="set" data="getPrfx=${prfx}"/>
</condition>
</extension>

but ${prfx} is empty.
I'm almost sure I didn't understand FS vars scope yet....

Thanks

Franck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100607/e3abdc56/attachment.html 


More information about the FreeSWITCH-users mailing list