Problem with a hang up event on transfer.
Using 13157 and some prior builds, I'm having a problem with the hang up hook activating on a transfer at the end of the script. The hook is suppose to fire with hang ups except when the transfer occurs and I thought setAutoHangup(false) would prevent this but it doesn't. Here is how things are set up. session.setHangupHook(on_hangup); .... .... session.setAutoHangup(false); session.execute("transfer", "NOTIFY_ME XML default"); session = undefined; If setAutoHangup(false) is working correctly then is there a method to "unset" the hang up hook before the transfer? Mark.
This only makes the call not hangup when the script exits. /b On Apr 27, 2009, at 3:29 PM, mszlazak@aol.com wrote:
If setAutoHangup(false) is working correctly then is there a method to "unset" the hang up hook before the transfer?
Mark.
Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com
it happens on both hangup and transfer you look at the arg to the hangup hook to tell if it was transfer or hangup and act accordingly On Mon, Apr 27, 2009 at 3:40 PM, Brian West <brian@freeswitch.org> wrote:
This only makes the call not hangup when the script exits. /b
On Apr 27, 2009, at 3:29 PM, mszlazak@aol.com wrote:
If setAutoHangup(false) is working correctly then is there a method to "unset" the hang up hook before the transfer?
Mark.
Brian West brian@freeswitch.org
-- Meet us at ClueCon! http://www.cluecon.com
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Got it. Thanks Tony. -----Original Message----- From: Anthony Minessale <anthony.minessale@gmail.com> To: freeswitch-users@lists.freeswitch.org Sent: Mon, 27 Apr 2009 1:59 pm Subject: Re: [Freeswitch-users] Problem with a hang up event on transfer. it happens on both hangup and transfer you look at the arg to the hangup hook to tell if it was transfer or hangup and act accordingly On Mon, Apr 27, 2009 at 3:40 PM, Brian West <brian@freeswitch.org> wrote: This only makes the call not hangup when the script exits. /b On Apr 27, 2009, at 3:29 PM, mszlazak@aol.com wrote: If setAutoHangup(false) is working correctly then is there a method to "unset" the hang up hook before the transfer? Mark. Brian West brian@freeswitch.org -- Meet us at ClueCon! ?http://www.cluecon.com _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ 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 iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org pstn:213-799-1400 _______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Anthony Minessale
-
Brian West
-
mszlazak@aol.com