content_type = get_header(req, "Content-Type"); /* if the body contains only SDP, this is easy */ if (!strcasecmp(content_type, "application/sdp")) { req->sdp_start = 0; req->sdp_end = req->lines; return req->lines ? 1 : 0; } //begin of added code /* specific patch fo MS Office Mediation Server 2007, which send us content_type=application/sdp; charset=utf-8 */ if (!strcasecmp(content_type, "application/sdp; charset=utf-8")) { ast_log(LOG_WARNING, "Found SIP Header with charset=utf-8 %s\n", content_type); req->sdp_start = 0; req->sdp_end = req->lines; return req->lines ? 1 : 0; } //end of added code /* if it's not multipart/mixed, there cannot be an SDP */ if (strncasecmp(content_type, "multipart/mixed", 15)) return 0;