aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-30 09:12:30 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-30 09:12:30 +0000
commitc170da02ebccf93058c2bb78945c0a5ff08c723e (patch)
tree72de385e1452b17566d619091d447ebd9e35d59a /channels
parent289e908488d6c6fd7f3d829f43de59bff840fc41 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@48129 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 6ffa71017..1e1c2e8ba 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;
}