aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-09 12:25:18 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-09 12:25:18 +0000
commit73317c595052ebdadb360eefe2e18cb717053822 (patch)
tree2a054d416dea07ce4d8a26c5f207a03a770ee119 /channels
parentb4ee9bd10c153dc70142a0106ad070c7947a7301 (diff)
importing rev 42535 from 1.2 (which by mistake was actually imported from svn trunk)
- Maybe the first circular commit? git-svn-id: http://svn.digium.com/svn/asterisk/trunk@42536 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 468da78c1..d419b2fdd 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -11189,14 +11189,13 @@ static void check_pendings(struct sip_pvt *p)
{
if (ast_test_flag(&p->flags[0], SIP_PENDINGBYE)) {
/* if we can't BYE, then this is really a pending CANCEL */
- if (!ast_test_flag(&p->flags[0], SIP_CAN_BYE)) {
+ if (!ast_test_flag(&p->flags[0], SIP_CAN_BYE))
transmit_request_with_auth(p, SIP_CANCEL, p->ocseq, 1, 0);
/* Actually don't destroy us yet, wait for the 487 on our original
INVITE, but do set an autodestruct just in case we never get it. */
- } else {
+ else
transmit_request_with_auth(p, SIP_BYE, 0, 1, 1);
- ast_clear_flag(&p->flags[0], SIP_CAN_BYE);
- }
+ ast_clear_flag(&p->flags[0], SIP_PENDINGBYE);
sip_scheddestroy(p, SIP_TRANS_TIMEOUT);
} else if (ast_test_flag(&p->flags[0], SIP_NEEDREINVITE)) {
if (option_debug)