[Freeswitch-users] get a variable at hunting phase that is set at executing phase

Michael Collins msc at freeswitch.org
Thu Dec 6 02:41:45 MSK 2012


On Wed, Dec 5, 2012 at 1:19 PM, Juan Pablo L.
<jpablolorenzetti at hotmail.com>wrote:

> 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)
>
> Michael, thanks for your suggestion, i have put it in pastebin:
> http://pastebin.freeswitch.org/20293
>
>
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.

Either of Avi's suggestions should help.

-MC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121205/34a03be4/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list