From: Moises Silva Date: Fri, 4 Jun 2010 12:16:51 +0000 (-0400) Subject: switch rtp: check for the channel too X-Git-Tag: v1.2-rc1~741 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae298182c2fadfc79af2d8a90beee96585a3c835;p=thirdparty%2Ffreeswitch.git switch rtp: check for the channel too --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 42c3f51e9d..13edd4d330 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -1383,7 +1383,9 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_create(switch_rtp_t **new_rtp_session switch_clear_flag_locked(rtp_session, SWITCH_RTP_FLAG_NOBLOCK); } - switch_channel_set_private(channel, "__rtcp_audio_rtp_session", rtp_session); + if (channel) { + switch_channel_set_private(channel, "__rtcp_audio_rtp_session", rtp_session); + } #ifdef ENABLE_ZRTP if (zrtp_on) {