From: Anthony Minessale Date: Thu, 8 May 2008 20:54:37 +0000 (+0000) Subject: extra protection against unruly practice X-Git-Tag: v1.0-rc5~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4e49235c1bf89f68124a8d556c728f87b687b0d;p=thirdparty%2Ffreeswitch.git extra protection against unruly practice git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8313 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core_io.c b/src/switch_core_io.c index fb83d1b017..212033ffd5 100644 --- a/src/switch_core_io.c +++ b/src/switch_core_io.c @@ -501,6 +501,10 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_frame(switch_core_sess return SWITCH_STATUS_FALSE; } + if (!(session->write_codec && session->write_codec->implementation)) { + return SWITCH_STATUS_FALSE; + } + if (switch_channel_test_flag(session->channel, CF_HOLD)) { return SWITCH_STATUS_SUCCESS; }