]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
doh, thanks raulfragoso
authorBrian West <brian@freeswitch.org>
Thu, 12 Feb 2009 04:24:22 +0000 (04:24 +0000)
committerBrian West <brian@freeswitch.org>
Thu, 12 Feb 2009 04:24:22 +0000 (04:24 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11915 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr.c

index ff9179db56662f8e30cffe99ec4ccb0cc00bf189..020c72b8bec909f3cb582b874c23cb9afed4e066 100644 (file)
@@ -670,7 +670,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_park(switch_core_session_t *session,
                return SWITCH_STATUS_FALSE;
        }
        
-       if (switch_channel_media_ready(channel)) {
+       if (!switch_channel_media_ready(channel)) {
                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Cannot park channels that have no read codec.\n");
                return SWITCH_STATUS_FALSE;
        }