From: Anthony Minessale Date: Fri, 1 Mar 2013 15:29:47 +0000 (-0600) Subject: FS-5120 please update and test this version X-Git-Tag: v1.3.13^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d2457eddd5b2ccc652bf81dbebfa6db84f64bdc;p=thirdparty%2Ffreeswitch.git FS-5120 please update and test this version --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 88848dd777..fee2f95416 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -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);