]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Be sure to process SDP if we already have an owner (bug #3701)
authorRussell Bryant <russell@russellbryant.com>
Wed, 2 Mar 2005 17:38:27 +0000 (17:38 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 2 Mar 2005 17:38:27 +0000 (17:38 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@5120 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 714aea02dbec2f3c6e6ac740a6973f39cce35052..ff37f3ee17cc7eb71ecf1b879643105de4fd41d9 100755 (executable)
@@ -7268,6 +7268,16 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
                        p->pendinginvite = seqno;
                        copy_request(&p->initreq, req);
                        check_via(p, req);
+                       if (p->owner) {
+                               /* Handle SDP here if we already have an owner */
+                               if (!ast_strlen_zero(get_header(req, "Content-Type"))) {
+                                       if (process_sdp(p, req))
+                                               return -1;
+                               } else {
+                                       p->jointcapability = p->capability;
+                                       ast_log(LOG_DEBUG, "Hm....  No sdp for the moment\n");
+                               }
+                       }
                } else if (debug)
                        ast_verbose("Ignoring this request\n");
                if (!p->lastinvite && !ignore && !p->owner) {