[Freeswitch-svn] [commit] r8175 - freeswitch/trunk/src/mod/languages/mod_spidermonkey

Freeswitch SVN anthm at freeswitch.org
Wed Apr 23 10:57:04 EDT 2008


Author: anthm
Date: Wed Apr 23 10:57:03 2008
New Revision: 8175

Modified:
   freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c

Log:
update

Modified: freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c	(original)
+++ freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c	Wed Apr 23 10:57:03 2008
@@ -2752,6 +2752,7 @@
 		}
 		
 		jss->session = peer_session;
+		switch_set_flag(jss, S_HUP);
 		*rval = BOOLEAN_TO_JSVAL(JS_TRUE);
 		switch_channel_set_state(switch_core_session_get_channel(jss->session), CS_TRANSMIT);
 
@@ -2781,7 +2782,7 @@
 				switch_channel_set_private(channel, "jss", NULL);
 				switch_core_event_hook_remove_state_change(session, hanguphook);
 				
-				if (switch_test_flag(jss, S_HUP) || switch_channel_get_state(channel) != CS_EXECUTE) {
+				if (switch_test_flag(jss, S_HUP)) {
 					switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING);
 				}
 



More information about the Freeswitch-svn mailing list