<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'>Avi, yes that makes sense, i will try that is a good idea .. thanks!!<br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">From: avi@avimarcus.net<br>Date: Thu, 6 Dec 2012 10:00:37 +0200<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><div dir="ltr">If you execute_extension to a new context, you can create very few extensions in that context so that it goes quicker.<div><br></div><div><span style="font-family:Verdana,Arial,Helvetica,sans-serif">-Avi</span><br>


<br><br><div class="ecxgmail_quote">On Thu, Dec 6, 2012 at 3:46 AM, 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">Michael, thank you for showing me, it is clear in the logs now, i did not have that clear before but i see it now ... i implemented Avi's suggestion 1 and it works now but i noticed that execute_extension parses the dialplan again, is there anyway to avoid reading the dialplan again ? regards!<br>

<br><div><div></div><hr>Date: Wed, 5 Dec 2012 15:41:45 -0800<div class="ecxim"><br>From: <a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a><br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>

Subject: Re: [Freeswitch-users] get a variable at hunting phase that is set at executing phase<br><br><br><br></div><div><div class="h5"><div>On Wed, Dec 5, 2012 at 1:19 PM, Juan Pablo L. <span dir="ltr">&lt;<a href="mailto:jpablolorenzetti@hotmail.com">jpablolorenzetti@hotmail.com</a>&gt;</span> wrote:<br>

<blockquote style="border-left:1px #ccc solid;padding-left:1ex">



<div><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" target="_blank">http://pastebin.freeswitch.org/20293</a></div>


<div><br></div></div></div></blockquote><br>
</div>Okay, this is why PB is good. It's just as you and Avi suspected - the variable is being tested prior to the Lua script running. If you want to see how to determine that yourself then look at your pastebin entry. Lines 48-72 are the dialplan hunting. The executing starts at line 80 with the Lua script. The Lua script is being executed after the variable is being check, which you'll see on line # 66.<br>


<br>Either of Avi's suggestions should help.<br><br>-MC<br>
<br></div></div><div class="ecxim">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a href="http://www.freeswitchsolutions.com/" target="_blank">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a href="http://www.cudatel.com/" target="_blank">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a>
<a href="http://wiki.freeswitch.org/" target="_blank">http://wiki.freeswitch.org</a>
<a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org</a></div></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></div></div>
<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></body>
</html>