diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-16 12:32:56 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-16 12:32:56 +0000 |
commit | ee938509cce2291871793a0dbebf525d454a6fff (patch) | |
tree | 4963920ffe6e4a5ee8f5eac4ef725c57f91bb8b9 /channels/chan_sip.c | |
parent | 1f273c49809a3c821b1cf872b8d5cbb0ba2f9f80 (diff) |
Merged revisions 122920 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r122920 | file | 2008-06-16 09:32:02 -0300 (Mon, 16 Jun 2008) | 14 lines
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: http://svn.digium.com/svn/asterisk/branches/1.6.0@122921 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-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 0e5f6889b..c74362c0c 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6225,7 +6225,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; |