summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
Diffstat (limited to 'channels')
-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 */