From 35fcf0a8aac93a9933fd033df12bbd4672df83ab Mon Sep 17 00:00:00 2001
From: Russell Bryant <russell@russellbryant.com>
Date: Thu, 17 Nov 2005 20:25:40 +0000
Subject: [PATCH] Add missing carriage return and line feed to the SDP line
 indicating that we don't support VAD (issue #5780)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7130 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 ChangeLog           | 4 ++++
 channels/chan_sip.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 37caadb193..621cbd2b81 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-11-16  Russell Bryant  <russell@digium.com>
+
+	* channels/chan_sip.c: Add missing carriage return and line feed to the SDP line indicating that we don't support VAD (issue #5780)
+
 2005-11-16  Kevin P. Fleming  <kpfleming@digium.com>
 
 	* Asterisk 1.2.0 released.
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index d44655a953..c3b6e9b1da 100755
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4267,7 +4267,7 @@ static void add_codec_to_sdp(const struct sip_pvt *p, int codec, int sample_rate
 			 sample_rate);
 	if (codec == AST_FORMAT_G729A)
 		/* Indicate that we don't support VAD (G.729 annex B) */
-		ast_build_string(a_buf, a_size, "a=fmtp:%d annexb=no", rtp_code);
+		ast_build_string(a_buf, a_size, "a=fmtp:%d annexb=no\r\n", rtp_code);
 }
 
 static void add_noncodec_to_sdp(const struct sip_pvt *p, int format, int sample_rate,
-- 
GitLab