From 89da27667854a06562bb270550320b48be5a709b Mon Sep 17 00:00:00 2001 From: "Kevin P. Fleming" Date: Thu, 18 May 2006 20:43:42 +0000 Subject: [PATCH] fix up a few more places to find the SDP properly (fallout from fix for #7124) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28384 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index da18e06f9f..6c4091c165 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -10045,7 +10045,7 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_ } else if ((resp >= 100) && (resp < 200)) { if (sipmethod == SIP_INVITE) { sip_cancel_destroy(p); - if (!ast_strlen_zero(get_header(req, "Content-Type"))) + if (find_sdp(req)) process_sdp(p, req); if (p->owner) { /* Queue a progress frame */ @@ -10425,7 +10425,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int return 0; } /* Process the SDP portion */ - if (!ast_strlen_zero(get_header(req, "Content-Type"))) { + if (find_sdp(req)) { if (process_sdp(p, req)) { transmit_response(p, "488 Not acceptable here", req); ast_set_flag(p, SIP_NEEDDESTROY); @@ -11162,7 +11162,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc if (seqno == p->pendinginvite) { p->pendinginvite = 0; __sip_ack(p, seqno, FLAG_RESPONSE, 0); - if (!ast_strlen_zero(get_header(req, "Content-Type"))) { + if (find_sdp(req)) { if (process_sdp(p, req)) return -1; } -- 2.47.2