]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Clean up bad dialogs properly. Caused by GS 487 adapter without CSEQ on separate...
authorOlle Johansson <oej@edvina.net>
Thu, 30 Nov 2006 09:12:30 +0000 (09:12 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 30 Nov 2006 09:12:30 +0000 (09:12 +0000)
in the REGISTER request. Imported from 1.2.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@48129 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 6ffa71017d65366700f696e26e588a13d7326631..1e1c2e8ba10a0c378fe201f5984515d4a164603e 100644 (file)
@@ -14323,7 +14323,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc
                error = 1;
        }
        if (error) {
-               if (!p->initreq.header) /* New call */
+               if (!p->initreq.headers)        /* New call */
                        ast_set_flag(&p->flags[0], SIP_NEEDDESTROY);    /* Make sure we destroy this dialog */
                return -1;
        }