Author: anthm Date: Sat Feb 21 16:59:59 2009 New Revision: 12226 Log: doh Modified: freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.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 Sat Feb 21 16:59:59 2009 @@ -1190,8 +1190,6 @@ switch_file_handle_t *fh = cb_state->extra; struct js_session *jss = cb_state->session_state; - switch_dtmf_t *wtfdtmf = (switch_dtmf_t *) input; - if ((status = js_common_callback(session, input, itype, buf, buflen)) != SWITCH_STATUS_SUCCESS) { return status; } @@ -1372,7 +1370,7 @@ return JS_TRUE; } - while (switch_core_session_dequeue_event(jss->session, &event) == SWITCH_STATUS_SUCCESS) { + while (switch_core_session_dequeue_event(jss->session, &event, SWITCH_FALSE) == SWITCH_STATUS_SUCCESS) { switch_event_destroy(&event); } @@ -2266,7 +2264,7 @@ METHOD_SANITY_CHECK(); - if (switch_core_session_dequeue_event(jss->session, &event) == SWITCH_STATUS_SUCCESS) { + if (switch_core_session_dequeue_event(jss->session, &event, SWITCH_FALSE) == SWITCH_STATUS_SUCCESS) { JSObject *Event; struct event_obj *eo;