you have to check if its transfer or hangup in the hook function On Wed, Jan 12, 2011 at 12:45 PM, Arturo Monroy <amonroy@auronix.com> wrote:
Hi,
session:setHangupHook is execute when is executed "transfer" api, however the "session" is not hanging and session still live?
Should be considered a bug?
Shouldn't be lauched when session is terminate by CS_DESTROY EVENT?
I'm using Lua, and using fifo too, after a several X seconds the current session is transfer-out to lua application, acording script's tree, the current session could come-back or not again to FIFO, however the hangupHook API is executed each one the session:transfer is execute.
-- Saludos Arturo Monroy
(55) 5371-1100 Ext 189 ASR Arturo Lopez Auronix de Mexico www.auronix.mx
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900