From e1ed386bb979651f76198bd63a2a8a845f8beeb5 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 1 Jul 2013 12:16:47 -0500 Subject: [PATCH] FS-5565 --resolve --- src/switch_rtp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 821c375384..177fbffcc5 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -681,10 +681,14 @@ static switch_status_t ice_out(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice) ice->next_run = now + RTP_STUN_FREQ; - if (ice == &rtp_session->rtcp_ice) { + if (ice == &rtp_session->rtcp_ice && rtp_session->rtcp_sock_output) { sock_output = rtp_session->rtcp_sock_output; } + if (!sock_output) { + return SWITCH_STATUS_FALSE; + } + switch_assert(rtp_session != NULL); switch_assert(ice->ice_user != NULL);