diff options
Diffstat (limited to 'channels')
-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 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 */ |