From: Olle Johansson Date: Thu, 30 Nov 2006 09:12:30 +0000 (+0000) Subject: Clean up bad dialogs properly. Caused by GS 487 adapter without CSEQ on separate... X-Git-Tag: 1.4.0-beta4~59 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=073e937757cdce81f5d5e371afee9f5201106e91;p=thirdparty%2Fasterisk.git Clean up bad dialogs properly. Caused by GS 487 adapter without CSEQ on separate line 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 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 6ffa71017d..1e1c2e8ba1 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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; }