summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2008-04-09 14:41:58 +0000
committerMark Michelson <mmichelson@digium.com>2008-04-09 14:41:58 +0000
commit925924386aa6ea6fc36bab150f9c1152d3435307 (patch)
tree101f2e1f959cebbf848038b4268a561e26ec12f1
parent1c691646a9e1d13f36a7d25ba2363ca64f2f4e7f (diff)
Merged revisions 113681 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r113681 | mmichelson | 2008-04-09 09:40:05 -0500 (Wed, 09 Apr 2008) | 9 lines If Asterisk receives a 488 on an INVITE (not a reinvite), then we should not send a BYE. (closes issue #12392) Reported by: fnordian Patches: chan_sip.patch uploaded by fnordian (license 110) with small modification from me ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@113682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r--channels/chan_sip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 6e60c4308..501a50c41 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -14876,6 +14876,9 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru
if (p->owner && !req->ignore)
ast_queue_control(p->owner, AST_CONTROL_CONGESTION);
p->needdestroy = 1;
+ /* If there's no dialog to end, then mark p as already gone */
+ if (!reinvite)
+ sip_alreadygone(p);
}
break;
case 491: /* Pending */