let scripts continue to run after calls end. All session members will return false once the call is dead (not these 2 funcs)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3642 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2006-12-14 01:25:59 +00:00
parent ed76905326
commit 1d53a51f9d

View File

@ -1257,12 +1257,6 @@ static JSBool session_wait_for_media(JSContext *cx, JSObject *obj, uintN argc, j
channel = switch_core_session_get_channel(jss->session);
assert(channel != NULL);
if (!switch_channel_ready(channel)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Session is not active!\n");
*rval = BOOLEAN_TO_JSVAL( JS_FALSE );
return JS_TRUE;
}
started = switch_time_now();
if (argc > 0) {
@ -1298,12 +1292,6 @@ static JSBool session_wait_for_answer(JSContext *cx, JSObject *obj, uintN argc,
channel = switch_core_session_get_channel(jss->session);
assert(channel != NULL);
if (!switch_channel_ready(channel)) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Session is not active!\n");
*rval = BOOLEAN_TO_JSVAL( JS_FALSE );
return JS_TRUE;
}
started = switch_time_now();
if (argc > 0) {