]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5120 please update and test this version v1.3.13
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 1 Mar 2013 15:29:47 +0000 (09:29 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 1 Mar 2013 15:29:47 +0000 (09:29 -0600)
src/switch_rtp.c

index 88848dd777694c9ca34ae164043099734e0d77ae..fee2f954160611606b6b7128f5de7779cb9da250 100644 (file)
@@ -1597,6 +1597,14 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_udptl_mode(switch_rtp_t *rtp_session)
 {
        switch_socket_t *sock;
 
+       if (!switch_rtp_ready(rtp_session)) {
+               return SWITCH_STATUS_FALSE;
+       }
+
+       if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_PROXY_MEDIA)) {
+               ping_socket(rtp_session);
+       }
+
        READ_INC(rtp_session);
        WRITE_INC(rtp_session);