--- chan_sip.c.orig Fri Sep 22 14:07:58 2006 +++ chan_sip.c Fri Sep 22 14:05:40 2006 @@ -4477,6 +4477,8 @@ if (!strncasecmp(req->line[x], boundary, strlen(boundary)) && !strcasecmp(req->line[x + 1], "Content-Type: application/sdp")) { req->sdp_start = x + 2; + /* increment x to start searching after boundary */ + x = x + 2 ; /* search for the end of the body part */ for ( ; x < req->lines; x++) { if (!strncasecmp(req->line[x], boundary, strlen(boundary)))