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
This commit is contained in:
Olle Johansson 2006-11-10 19:01:12 +00:00
parent 8b1de34c45
commit d53979523c
1 changed files with 3 additions and 1 deletions

View File

@ -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)))