Skip to content
Snippets Groups Projects
Commit ea64cd39 authored by Olle Johansson's avatar Olle Johansson
Browse files

Small fix for uncommon scenario.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent d8b355bc
Branches
Tags
No related merge requests found
...@@ -10753,7 +10753,7 @@ static void sip_dump_history(struct sip_pvt *dialog) ...@@ -10753,7 +10753,7 @@ static void sip_dump_history(struct sip_pvt *dialog)
{ {
int x = 0; int x = 0;
struct sip_history *hist; struct sip_history *hist;
static errmsg = 0; static int errmsg = 0;
   
if (!dialog) if (!dialog)
return; return;
...@@ -14058,7 +14058,8 @@ static int handle_request_bye(struct sip_pvt *p, struct sip_request *req) ...@@ -14058,7 +14058,8 @@ static int handle_request_bye(struct sip_pvt *p, struct sip_request *req)
int res; int res;
struct ast_channel *bridged_to; struct ast_channel *bridged_to;
if (p->pendinginvite && !ast_test_flag(&p->flags[0], SIP_OUTGOING) && !ast_test_flag(req, SIP_PKT_IGNORE)) /* If we have an INCOMING invite that we haven't answered, terminate that transaction */
if (p->pendinginvite && !ast_test_flag(&p->flags[0], SIP_OUTGOING) && !ast_test_flag(req, SIP_PKT_IGNORE) && !p->owner)
transmit_response_reliable(p, "487 Request Terminated", &p->initreq); transmit_response_reliable(p, "487 Request Terminated", &p->initreq);
   
copy_request(&p->initreq, req); copy_request(&p->initreq, req);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment