diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-30 09:05:07 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-30 09:05:07 +0000 |
commit | eb38770dbe60e2496657184344eae6f9c7c34fda (patch) | |
tree | a10c94a6199e80c563c45fc420d5439f228901ab | |
parent | 78099d6452c9e469e5f7ffa5099d0deba170823d (diff) |
Do proper test and don't leave dialogs hanging...
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@48127 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | channels/chan_sip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 75b7068ae..1e7f22161 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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; } |