<!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>Ok I found the answer...</FONT></DIV>
<DIV><FONT size=2></FONT> </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> </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> </DIV>
<DIV><FONT size=2><extension name="blabla"></FONT></DIV>
<DIV><FONT size=2> <condition><BR> <action
application="set"
data="test=cake"/><BR> </condition><BR> <condition
field="${test}" expression="^(cake)$"><BR> <action
application="set"
data="prfx=00"/><BR> </condition><BR><condition
field="${sip_to_uri}" expression="^(1\d{10,15})@$${domain}$"></FONT></DIV>
<DIV><FONT size=2> <action application="set"
data="getPrfx=${prfx}"/></FONT></DIV>
<DIV><FONT size=2></condition></FONT></DIV>
<DIV><FONT size=2></extension></FONT></DIV>
<DIV><FONT size=2></FONT> </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> </DIV>
<DIV><FONT size=2>Thanks</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Franck</FONT></DIV></BLOCKQUOTE></BODY></HTML>