]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
let scripts continue to run after calls end. All session members will return false...
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 14 Dec 2006 01:25:59 +0000 (01:25 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 14 Dec 2006 01:25:59 +0000 (01:25 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3642 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_spidermonkey/mod_spidermonkey.c

index 3ab2a988007391205e733dbd84fec76669d6e0c3..dc19f1ca0e04f93829f8e6b0e676e7cd6d207192 100644 (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) {