<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks Avi for you answer, i m going to try that (i already have and the ${int} got lost somewhere but i ll try again)<div><br></div><div>Michael, thanks for your suggestion, i have put it in pastebin:&nbsp;<a href="http://pastebin.freeswitch.org/20293">http://pastebin.freeswitch.org/20293</a></div><div><br></div><div><br></div><div>thanks!<br><div><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Wed, 5 Dec 2012 13:06:35 -0800<br>From: msc@freeswitch.org<br>To: freeswitch-users@lists.freeswitch.org<br>Subject: Re: [Freeswitch-users] get a variable at hunting phase that is set at executing phase<br><br>It might be good for you to pastebin the debug log of the call flow. Use <a href="http://pastebin.freeswitch.org" target="_blank">pastebin.freeswitch.org</a> and set the syntax highlight to FreeSWITCH Log. Once that's there we will take a look and help you diagnose what is (and is not) happening. Looking at the log is the best way to be sure that you know what's really going on.<br>
<br>-MC<br><br><div class="ecxgmail_quote">On Wed, Dec 5, 2012 at 12:36 PM, Juan Pablo L. <span dir="ltr">&lt;<a href="mailto:jpablolorenzetti@hotmail.com">jpablolorenzetti@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr"><font size="3" face="Calibri, sans-serif">Guys, i have a script the sets some variables the i m supposed to use to decide if a condition meets, i have tried to use the execute_extension app but it does not work, this is the dialplan:</font><div style="font-family:Calibri,sans-serif;font-size:12pt">
<br></div><div style="font-family:Calibri,sans-serif;font-size:12pt"><br></div><div style="font-family:Calibri,sans-serif;font-size:12pt"><div>&lt;extension name="huawei_csoft_gw_outbound_call_international"&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<span style="font-size:12pt">&lt;condition field="${int}" expression="1"/&gt;</span></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field="destination_number" expression="^00[\d]{7,}?$"&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="set" data="effective_caller_id_number=280${caller_id_number}"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="bridge" data="sofia/gateway/huawei_csoft/${destination_number}"/&gt;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/condition&gt;</div><div>&nbsp; &nbsp;&lt;/extension&gt;</div></div><div style="font-family:Calibri,sans-serif;font-size:12pt"><br></div><div style="font-family:Calibri,sans-serif;font-size:12pt">the script that sets the var ${int} is called "get_user_profile.lua", i have placed it all over the place and cant make this work.</div>
<div style="font-family:Calibri,sans-serif;font-size:12pt">i have used "execute_extension" in the following way:</div><div style="font-family:Calibri,sans-serif;font-size:12pt"><br></div><div><div><font face="Calibri, sans-serif">&lt;extension name="is_international_allowed"&gt;</font></div>
<div><font face="Calibri, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field="destination_number" expression="^iia$"&gt;</font></div><div><font face="Calibri, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="lua" data="get_user_profile.lua" /&gt;&nbsp;</font></div>
<div><font face="Calibri, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/condition&gt;</font></div><div><font face="Calibri, sans-serif">&nbsp; &nbsp; &lt;/extension&gt;</font></div><div><br></div><div><font face="Calibri, sans-serif">&nbsp; &nbsp; &lt;extension name="huawei_csoft_gw_outbound_call_international"&gt;</font></div>
<div><font face="Calibri, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;</font><span style="font-family:Calibri,sans-serif">&nbsp;&lt;condition field="destination_number" expression="^00[\d]{7,}?$"&gt;</span></div><div><font face="Calibri, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="execute_extension" data="iia XML smart_private"/&gt; --&gt;</font></div>
<div><font face="Calibri, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font><span style="font-family:Calibri,sans-serif">&lt;/condition&gt;</span></div><div><font face="Calibri, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field="${int}" expression="1"/&gt;</font></div>
<div><font face="Calibri, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field="destination_number" expression="^00[\d]{7,}?$"&gt;</font></div><div><font face="Calibri, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="set" data="effective_caller_id_number=280${caller_id_number}"/&gt;</font></div>
<div><font face="Calibri, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="bridge" data="sofia/gateway/huawei_csoft/${destination_number}"/&gt;</font></div><div><font face="Calibri, sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/condition&gt;</font></div>
<div><font face="Calibri, sans-serif">&nbsp; &nbsp; &lt;/extension&gt;</font></div></div><div><font face="Calibri, sans-serif"><br></font></div><div><font face="Calibri, sans-serif">i know this is simple but i m missing something here, i appreciate any ideas. thanks!!</font></div>
<div><font face="Calibri, sans-serif"><br></font></div>                                               </div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>
<br>_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

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</div></div></div>                                               </div></body>
</html>