[Freeswitch-users] get a variable at hunting phase that is set at executing phase
Juan Pablo L.
jpablolorenzetti at hotmail.com
Thu Dec 6 04:46:48 MSK 2012
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!
Date: Wed, 5 Dec 2012 15:41:45 -0800
From: msc at freeswitch.org
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] get a variable at hunting phase that is set at executing phase
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
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20121206/0739fb9d/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list