<br><br><div class="gmail_quote">On Wed, Dec 5, 2012 at 1:19 PM, Juan Pablo L. <span dir="ltr"><<a href="mailto:jpablolorenzetti@hotmail.com" target="_blank">jpablolorenzetti@hotmail.com</a>></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">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'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>