diff options
author | Joshua Colp <jcolp@digium.com> | 2008-06-16 12:32:02 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2008-06-16 12:32:02 +0000 |
commit | 523532204a734de28251528ab1f10eeb3a78a80d (patch) | |
tree | f545bd1e37b4988ef27a8b31c64a65e97bebfd74 | |
parent | 1c8f33b0d6d3e27f5bd3efca82774af1e88d32eb (diff) |
Merged revisions 122919 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r122919 | file | 2008-06-16 09:31:09 -0300 (Mon, 16 Jun 2008) | 6 lines
Only compare the first 15 characters so that even if the charset is specified we still accept it as SDP.
(closes issue #12803)
Reported by: lanzaandrea
Patches:
chan_sip.c.diff uploaded by lanzaandrea (license 496)
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@122920 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 3bb56dca9..562f4adeb 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6566,7 +6566,7 @@ static int find_sdp(struct sip_request *req) content_type = get_header(req, "Content-Type"); /* if the body contains only SDP, this is easy */ - if (!strcasecmp(content_type, "application/sdp")) { + if (!strncasecmp(content_type, "application/sdp", 15)) { req->sdp_start = 0; req->sdp_end = req->lines; return req->lines ? 1 : 0; |