From 57184dc20e2a0d9e90710fda50b9b26014d8efc5 Mon Sep 17 00:00:00 2001
From: Anthony Minessale <anthm@freeswitch.org>
Date: Sat, 28 Dec 2013 01:39:03 +0500
Subject: [PATCH] FS-6007 FS-5083 FS-4514 --resolve

---
 src/switch_rtp.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/switch_rtp.c b/src/switch_rtp.c
index 90bd4d9275..560647daf9 100644
--- a/src/switch_rtp.c
+++ b/src/switch_rtp.c
@@ -4205,6 +4205,9 @@ static int rtp_common_write(switch_rtp_t *rtp_session,
 
 	if (send_msg) {
 		bytes = datalen;
+
+		m = send_msg->header.m;
+
 		if (flags && *flags & SFF_RFC2833) {
 			send_msg->header.pt = rtp_session->te;
 		}