]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
use a lower level write func for cng packets
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 26 Sep 2012 17:10:37 +0000 (12:10 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 26 Sep 2012 17:10:37 +0000 (12:10 -0500)
src/switch_rtp.c

index 0b966d8ba2a8dfd7d8ff7be0d3b62caa7dda7e0e..de842c5db7fe81ea2e9532c64f2d3fec8cf3e3a0 100644 (file)
@@ -977,7 +977,7 @@ static int check_srtp_and_ice(switch_rtp_t *rtp_session)
                        switch_frame_flag_t frame_flags = SFF_NONE;
                        data[0] = 65;
                        rtp_session->cn++;
-                       rtp_common_write(rtp_session, NULL, (void *) data, 2, rtp_session->cng_pt, 0, &frame_flags);
+                       switch_rtp_write_manual(rtp_session, (void *) data, 2, 0, rtp_session->cng_pt, ntohl(rtp_session->send_msg.header.ts), &frame_flags);
                }