summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-06-04 19:32:08 +0000
committerJoshua Colp <jcolp@digium.com>2007-06-04 19:32:08 +0000
commite3492b95112a1def1d9b6945e871ee192fe1abca (patch)
tree9d21064165f0421efdd84517c9fe60f60e2ba8e7 /channels
parentbae04fd90e03d975062b5f86588fedc748547add (diff)
Merged revisions 67068 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r67068 | file | 2007-06-04 15:31:09 -0400 (Mon, 04 Jun 2007) | 2 lines Better handle SIP devices that say they have SDP content... but really don't. (issue #9398 reported by mthomasslo) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67069 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index b22bad08b..6f7ccca50 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -5148,7 +5148,7 @@ static int find_sdp(struct sip_request *req)
if (!strcasecmp(content_type, "application/sdp")) {
req->sdp_start = 0;
req->sdp_end = req->lines;
- return 1;
+ return req->lines ? 1 : 0;
}
/* if it's not multipart/mixed, there cannot be an SDP */