]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5565 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 1 Jul 2013 17:16:47 +0000 (12:16 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 1 Jul 2013 17:16:47 +0000 (12:16 -0500)
src/switch_rtp.c

index 821c3753843b82137d01037d141b6579dcda9789..177fbffcc512d72de9a983f60d10f25a9a62cbbd 100644 (file)
@@ -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);