diff --git a/src/switch_rtp.c b/src/switch_rtp.c index 46823754dc..bec73885a7 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -1513,6 +1513,8 @@ static int rtp_common_write(switch_rtp_t *rtp_session, if (flags && *flags & SFF_RFC2833) { send_msg->header.pt = rtp_session->te; } + data = send_msg->body; + datalen -= rtp_header_len; } else { uint8_t m = 0;