Summary:ASTERISK-08141: Asterisk sends CANCEL instead of BYE even if _state is UP
Reporter:Makoto Dei (makoto)Labels:
Date Opened:2006-11-16 04:50:17.000-0600Date Closed:2006-11-20 11:08:15.000-0600
Versions:Frequency of
 1. Call from phone A to phone B
 2. Answer phone B
 3. Hold phone A and hang up phone B at the same time
 4. Asterisk sends CANCEL to phone A

When phone B is hanged up, sip_hangup is called to hang up phone A.
But Asterisk is processing INVITE from phone A, so do not transmit
anything to phone A and just set SIP_PENDINGBYE.
After that, when Asterisk is received ACK from phone A,
check_pendings is called to transmit BYE to phone A.
But SIP_CAN_BYE is not set (because phone A is callee),
so CANCEL is sent instead.
Comments:By: Olle Johansson (oej) 2006-11-16 06:19:00.000-0600

Before you open a bug report, check if there are open bug reports with the same issue. There's at least two or three similar bug reports open.

Please check the invitestate branch where I try to fix this, and please read the bug guidelines before opening a new bug - you always need to upload a SIP debug if you report a SIP bug.

Meet you in the other bug reports.

By: Olle Johansson (oej) 2006-11-16 06:19:28.000-0600

Duplicate of ASTERISK-7293 and related bugs.