[Freeswitch-users] Problem with a hang up event on transfer.

2009-04-27 Thread mszlazak
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.
___
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


Re: [Freeswitch-users] Problem with a hang up event on transfer.

2009-04-27 Thread Brian West

This only makes the call not hangup when the script exits.

/b

On Apr 27, 2009, at 3:29 PM, mszla...@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
br...@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


Re: [Freeswitch-users] Problem with a hang up event on transfer.

2009-04-27 Thread Anthony Minessale
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 br...@freeswitch.org wrote:

 This only makes the call not hangup when the script exits.
 /b

 On Apr 27, 2009, at 3:29 PM, mszla...@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
 br...@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_miness...@hotmail.com msn%3aanthony_miness...@hotmail.com
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.compaypal%3aanthony.miness...@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org sip%3a...@conference.freeswitch.org
iax:gu...@conference.freeswitch.org/888
googletalk:conf+...@conference.freeswitch.orggoogletalk%3aconf%2b...@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


Re: [Freeswitch-users] Problem with a hang up event on transfer.

2009-04-27 Thread mszlazak

 Got it. Thanks Tony.


 


 

-Original Message-
From: Anthony Minessale anthony.miness...@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 br...@freeswitch.org wrote:



This only makes the call not hangup when the script exits.




/b





On Apr 27, 2009, at 3:29 PM, mszla...@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

br...@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_miness...@hotmail.com
GTALK/JABBER/PAYPAL:anthony.miness...@gmail.com

IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:8...@conference.freeswitch.org
iax:gu...@conference.freeswitch.org/888

googletalk:conf+...@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



 

___
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