<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="gmail_quote">On Thu, Dec 6, 2012 at 3:46 AM, Juan Pablo L. <span dir="ltr">&lt;<a href="mailto:jpablolorenzetti@hotmail.com" target="_blank">jpablolorenzetti@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;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&#39;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="im"><br>From: <a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a><br>To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">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" target="_blank">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: <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&#39;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&#39;ll see on line # 66.<br>


<br>Either of Avi&#39;s suggestions should help.<br><br>-MC<br>
<br></div></div><div class="im">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a href="mailto:consulting@freeswitch.org" target="_blank">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" target="_blank">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>