<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18904">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>sorry</FONT></DIV>
<DIV><FONT size=2>if i put another condition after this block like</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV>&nbsp;&lt;condition&gt;<BR>&nbsp; &lt;action inline="true" 
application="set" 
data="test=${cake}"&gt;<BR>&nbsp;&lt;/condition&gt;<BR>&nbsp;&lt;condition 
field="${test}" expression="^(chocolate)$"&gt;<BR>&nbsp; &lt;action 
inline="true" application="set" 
data="prfx=yesyes"/&gt;<BR>&nbsp;&lt;/condition&gt;<BR>&nbsp;&lt;condition 
field="${test}" expression="^(lemon)$"&gt;<BR>&nbsp; &lt;action inline="true" 
application="set" data="prfx=yes"/&gt;<BR>&nbsp;&lt;/condition&gt;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>&nbsp; &lt;condition field="${sip_to_uri}" 
expression="^(1\d{10,15})@$${domain}$"&gt;<BR>&nbsp;&nbsp; &lt;action 
application="bridge" 
data="sofia/gateway//${prfx}${dialed_extension}"/&gt;<BR>&nbsp; 
&lt;/condition&gt;<BR></FONT></DIV>
<DIV><FONT size=2>at the last condition block i${prfx} is empty</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Thanks</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>Franck</DIV></FONT>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=msc@freeswitch.org href="mailto:msc@freeswitch.org">Michael 
  Collins</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=freeswitch-users@lists.freeswitch.org 
  href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, June 07, 2010 6:17 PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [Freeswitch-users] vars 
  scope in dialplan</DIV>
  <DIV><BR></DIV><BR><BR>
  <DIV class=gmail_quote>On Mon, Jun 7, 2010 at 2:06 PM, Madovsky <SPAN 
  dir=ltr>&lt;<A 
  href="mailto:infos@madovsky.org">infos@madovsky.org</A>&gt;</SPAN> wrote:<BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>Brien,<BR><BR>if I have to write several conditions for 
    the same vars, like<BR><BR>&nbsp;&lt;condition&gt;<BR>&nbsp; &lt;action 
    inline="true" application="set" 
    data="test=${cake}"&gt;<BR>&nbsp;&lt;/condition&gt;<BR>&nbsp;&lt;condition 
    field="${test}" expression="^(chocolate)$"&gt;<BR>&nbsp; &lt;action 
    inline="true" application="set" 
    data="prfx=yesyes"/&gt;<BR>&nbsp;&lt;/condition&gt;<BR>&nbsp;&lt;condition 
    field="${test}" expression="^(lemon)$"&gt;<BR>&nbsp; &lt;action 
    inline="true" application="set" 
    data="prfx=yes"/&gt;<BR>&nbsp;&lt;/condition&gt;<BR><BR>${prfx} is empty. is 
    not allowed to do that ?<BR><BR></BLOCKQUOTE>
  <DIV>At what point is ${prfx} empty?<BR></DIV></DIV><BR>-MC<BR>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>FreeSWITCH-users 
  mailing 
  list<BR>FreeSWITCH-users@lists.freeswitch.org<BR>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<BR>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<BR>http://www.freeswitch.org<BR></BLOCKQUOTE></BODY></HTML>