]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix regression with proxy_packet flag
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 3 Jul 2012 18:17:38 +0000 (13:17 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 3 Jul 2012 18:17:38 +0000 (13:17 -0500)
src/switch_rtp.c

index c8e6ff94cb7c15bf45060fe7a642eafeb28ab6a9..bbb3dfdb6e7ba0a70e59342ef4e56d994bc06943 100644 (file)
@@ -4426,7 +4426,8 @@ SWITCH_DECLARE(int) switch_rtp_write_frame(switch_rtp_t *rtp_session, switch_fra
                return -1;
        }
        
-       if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_PROXY_MEDIA) || switch_test_flag(rtp_session, SWITCH_RTP_FLAG_UDPTL)) {
+       if (switch_test_flag(frame, SFF_PROXY_PACKET) || switch_test_flag(frame, SFF_UDPTL_PACKET) ||
+               switch_test_flag(rtp_session, SWITCH_RTP_FLAG_PROXY_MEDIA) || switch_test_flag(rtp_session, SWITCH_RTP_FLAG_UDPTL)) {
                switch_size_t bytes;
                //char bufa[30];