From ae298182c2fadfc79af2d8a90beee96585a3c835 Mon Sep 17 00:00:00 2001 From: Moises Silva Date: Fri, 4 Jun 2010 08:16:51 -0400 Subject: [PATCH] switch rtp: check for the channel too --- src/switch_rtp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {