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@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@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@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org