[Freeswitch-users] vars scope in dialplan

Madovsky infos at madovsky.org
Mon Jun 7 18:25:45 PDT 2010


sorry
if i put another condition after this block like

 <condition>
  <action inline="true" application="set" data="test=${cake}">
 </condition>
 <condition field="${test}" expression="^(chocolate)$">
  <action inline="true" application="set" data="prfx=yesyes"/>
 </condition>
 <condition field="${test}" expression="^(lemon)$">
  <action inline="true" application="set" data="prfx=yes"/>
 </condition>

  <condition field="${sip_to_uri}" expression="^(1\d{10,15})@$${domain}$">
   <action application="bridge" data="sofia/gateway//${prfx}${dialed_extension}"/>
  </condition>

at the last condition block i${prfx} is empty

Thanks

Franck
  ----- Original Message ----- 
  From: Michael Collins 
  To: freeswitch-users at lists.freeswitch.org 
  Sent: Monday, June 07, 2010 6:17 PM
  Subject: Re: [Freeswitch-users] vars scope in dialplan





  On Mon, Jun 7, 2010 at 2:06 PM, Madovsky <infos at madovsky.org> wrote:

    Brien,

    if I have to write several conditions for the same vars, like

     <condition>
      <action inline="true" application="set" data="test=${cake}">
     </condition>
     <condition field="${test}" expression="^(chocolate)$">
      <action inline="true" application="set" data="prfx=yesyes"/>
     </condition>
     <condition field="${test}" expression="^(lemon)$">
      <action inline="true" application="set" data="prfx=yes"/>
     </condition>

    ${prfx} is empty. is not allowed to do that ?


  At what point is ${prfx} empty?


  -MC



------------------------------------------------------------------------------


  _______________________________________________
  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/20100607/2e76ebd1/attachment-0001.html 


More information about the FreeSWITCH-users mailing list