[Home]

Summary:ASTERISK-00911: [patch] Send ACK on CANCEL
Reporter:z_smurf (z_smurf)Labels:
Date Opened:2004-01-25 20:15:32.000-0600Date Closed:2008-01-15 14:42:09.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) ast_CANCEL1.txt
Description:If a SIP-phone sends an CANCEL, * is supposed do send a "200 OK" and then a "ACK".
If * does know about an ongoing call, the ACK will be missing, and instead a WARNING-message will be shown in CLI.

****** ADDITIONAL INFORMATION ******

Demonstration of sip debug output (with patch 850, debug level 1), the phone sends a CANCEL:

SIP Debug level 1 Enabled
DIR Sip data                                                                         Peer       CSeq  IP
<-- CANCEL sip:2016@192.168.10.1 SIP/2.0                                             2013       35222 192.168.10.3
--> SIP/2.0 200 OK                                                                   2013       35222 192.168.10.3
Jan 26 03:58:01 WARNING[6151]: chan_sip.c:2577 __transmit_response: Unable to determine sequence number from ''
telebox*CLI>


This is the output with this patch applied:

telebox*CLI> sip debug 1
SIP Debug level 1 Enabled
DIR Sip data                                                                         Peer       CSeq  IP
<-- CANCEL sip:2016@192.168.10.1 SIP/2.0                                             2013       35222 192.168.10.3
--> SIP/2.0 200 OK                                                                   2013       35222 192.168.10.3
--> SIP/2.0 487 Request Terminated                                                   2013       35222 192.168.10.3
telebox*CLI>
Comments:By: Brian West (bkw918) 2004-01-25 23:37:37.000-0600

Fixed in CVS.

By: Digium Subversion (svnbot) 2008-01-15 14:42:09.000-0600

Repository: asterisk
Revision: 2071

U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r2071 | markster | 2008-01-15 14:42:09 -0600 (Tue, 15 Jan 2008) | 2 lines

Send 481 if call leg does not exist on CANCEL, and send 487 before 200 as per rfc3261 (bug ASTERISK-911)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=2071