summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2006-11-10 19:01:12 +0000
committerOlle Johansson <oej@edvina.net>2006-11-10 19:01:12 +0000
commitd53979523c2d2651fb570f25dbce81800103874a (patch)
tree0eafc0b82b5afcd5ca7b97547cd7df954cf3bf21 /channels
parent8b1de34c454fb1283226e71f35fa006dd563a2d8 (diff)
Issue 8336- fix support for multipart SDP (imported from 1.2/1.4). (Alphaque)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47455 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index cb45e7652..262495223 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -4660,7 +4660,9 @@ static int find_sdp(struct sip_request *req)
for (x = 0; x < (req->lines - 2); x++) {
if (!strncasecmp(req->line[x], boundary, strlen(boundary)) &&
!strcasecmp(req->line[x + 1], "Content-Type: application/sdp")) {
- req->sdp_start = x + 2;
+ x += 2;
+ req->sdp_start = x;
+
/* search for the end of the body part */
for ( ; x < req->lines; x++) {
if (!strncasecmp(req->line[x], boundary, strlen(boundary)))