提交 1d53a51f authored 作者: Anthony Minessale's avatar Anthony Minessale

let scripts continue to run after calls end. All session members will return…

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
上级 ed769053
......@@ -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) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论