Do proper test and don't leave dialogs hanging...

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@48127 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2
Olle Johansson 20 years ago
parent d707910edb
commit faee7ae5f1

@ -11207,7 +11207,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, SIP_NEEDDESTROY); /* Make sure we destroy this dialog */
return -1;
}

Loading…
Cancel
Save