diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-04 19:31:09 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-04 19:31:09 +0000 |
commit | d89418582414b6980a28a3c3279cb39884134235 (patch) | |
tree | f5680c0f5288ce4511f7cd5aa01ee972909260a1 /channels/chan_sip.c | |
parent | aa2dcddfae922a7bcdac32f1de88a596c9c52f58 (diff) |
Better handle SIP devices that say they have SDP content... but really don't. (issue #9398 reported by mthomasslo)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@67068 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 459d17d30..66840680e 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -4703,7 +4703,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 */ |