[Freeswitch-svn] [commit] r10467 - in freeswitch/trunk/src: . mod/languages/mod_spidermonkey
FreeSWITCH SVN
anthm at freeswitch.org
Wed Nov 19 13:55:50 PST 2008
Author: anthm
Date: Wed Nov 19 16:55:50 2008
New Revision: 10467
Log:
fine, have session in hangup hook apps, don't call me if it segs
Modified:
freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
freeswitch/trunk/src/switch_core_state_machine.c
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 Nov 19 16:55:50 2008
@@ -1773,7 +1773,6 @@
struct js_session *jss = JS_GetPrivate(cx, obj);
switch_channel_t *channel;
- METHOD_SANITY_CHECK();
channel = switch_core_session_get_channel(jss->session);
if (argc > 1) {
@@ -2056,8 +2055,6 @@
/*Always a pessimist... sheesh! */
*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
- METHOD_SANITY_CHECK();
-
if (switch_ivr_generate_xml_cdr(jss->session, &cdr) == SWITCH_STATUS_SUCCESS) {
char *xml_text;
if ((xml_text = switch_xml_toxml(cdr, SWITCH_FALSE))) {
Modified: freeswitch/trunk/src/switch_core_state_machine.c
==============================================================================
--- freeswitch/trunk/src/switch_core_state_machine.c (original)
+++ freeswitch/trunk/src/switch_core_state_machine.c Wed Nov 19 16:55:50 2008
@@ -413,7 +413,7 @@
}
SWITCH_STANDARD_STREAM(stream);
switch_channel_get_variables(session->channel, &stream.param_event);
- switch_api_execute(cmd, arg, NULL, &stream);
+ switch_api_execute(cmd, arg, session, &stream);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Hangup Command %s(%s):\n%s\n", cmd, arg,
switch_str_nil((char *) stream.data));
switch_safe_free(stream.data);
More information about the Freeswitch-svn
mailing list