<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18904">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>wrong info... it doesn't work also...</FONT></DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2>anyone ?</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>F</FONT></DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" 
dir=ltr>
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=infos@madovsky.org href="mailto:infos@madovsky.org">Madovsky</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 3:44 PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: vars scope in dialplan</DIV>
  <DIV><BR></DIV>
  <DIV><FONT size=2>Ok I found the answer...</FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2><A 
  href="http://www.mail-archive.com/freeswitch-users@lists.freeswitch.org/msg12449.html">http://www.mail-archive.com/freeswitch-users@lists.freeswitch.org/msg12449.html</A></FONT></DIV>
  <DIV><FONT size=2></FONT>&nbsp;</DIV>
  <DIV><FONT size=2>F</FONT></DIV>
  <BLOCKQUOTE 
  style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" 
  dir=ltr>
    <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV 
    style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
    <A title=infos@madovsky.org href="mailto:infos@madovsky.org">Madovsky</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 3:24 
    PM</DIV>
    <DIV style="FONT: 10pt arial"><B>Subject:</B> vars scope in dialplan</DIV>
    <DIV><BR></DIV>
    <DIV><FONT size=2>example :</FONT></DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <DIV><FONT size=2>&lt;extension name="blabla"&gt;</FONT></DIV>
    <DIV><FONT size=2>&nbsp;&lt;condition&gt;<BR>&nbsp;&nbsp; &lt;action 
    application="set" 
    data="test=cake"/&gt;<BR>&nbsp;&lt;/condition&gt;<BR>&nbsp;&lt;condition 
    field="${test}" expression="^(cake)$"&gt;<BR>&nbsp;&nbsp; &lt;action 
    application="set" 
    data="prfx=00"/&gt;<BR>&nbsp;&lt;/condition&gt;<BR>&lt;condition 
    field="${sip_to_uri}" 
expression="^(1\d{10,15})@$${domain}$"&gt;</FONT></DIV>
    <DIV><FONT size=2>&nbsp;&lt;action application="set" 
    data="getPrfx=${prfx}"/&gt;</FONT></DIV>
    <DIV><FONT size=2>&lt;/condition&gt;</FONT></DIV>
    <DIV><FONT size=2>&lt;/extension&gt;</FONT></DIV>
    <DIV><FONT size=2></FONT>&nbsp;</DIV>
    <DIV><FONT size=2>but ${prfx} is empty.</FONT></DIV>
    <DIV><FONT size=2>I'm almost sure I didn't understand FS vars scope 
    yet....</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</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>