]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
fix up a few more places to find the SDP properly (fallout from fix for #7124)
authorKevin P. Fleming <kpfleming@digium.com>
Thu, 18 May 2006 20:43:42 +0000 (20:43 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Thu, 18 May 2006 20:43:42 +0000 (20:43 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@28384 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index da18e06f9fa4496de9b37852f1fee2a9250f0971..6c4091c1656b0cf4090256bccf7fde8e1c80c838 100644 (file)
@@ -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;
                        }