summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--channels/chan_sip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 6f67557f4..6354d6d0a 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -11197,7 +11197,7 @@ static void check_pendings(struct sip_pvt *p)
} else {
transmit_request_with_auth(p, SIP_BYE, 0, 1, 1);
ast_set_flag(&p->flags[0], SIP_NEEDDESTROY);
- ast_clear_flag(&p->flags[0], SIP_NEEDREINVITE);
+ ast_clear_flag(&p->flags[0], SIP_CAN_BYE);
}
} else if (ast_test_flag(&p->flags[0], SIP_NEEDREINVITE)) {
if (option_debug)