doh, thanks raulfragoso

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11915 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-02-12 04:24:22 +00:00
parent efe05f5dc5
commit 7aa3a2e670

View 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;
}