summaryrefslogtreecommitdiff
path: root/channels/chan_sip.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r--channels/chan_sip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 068636e00..7084ef82a 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -26524,6 +26524,10 @@ static int handle_request_bye(struct sip_pvt *p, struct sip_request *req)
transmit_response(p, "200 OK", req);
}
+ /* Destroy any pending invites so we won't try to do another
+ * scheduled reINVITE. */
+ AST_SCHED_DEL_UNREF(sched, p->waitid, dialog_unref(p, "decrement refcount from sip_destroy because waitid won't be scheduled"));
+
return 1;
}