From 562b491a85aa2adc2111eecf407357e7a05c4e51 Mon Sep 17 00:00:00 2001 From: Olle Johansson Date: Sat, 9 Sep 2006 12:00:19 +0000 Subject: [PATCH] Clear proper flag git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@42521 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 6f67557f4d..6354d6d0a0 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)