[asterisk-bugs] [Asterisk 0014575]: BYE to 408 Request Timeout
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon Mar 30 08:21:17 CDT 2009
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=14575
======================================================================
Reported By: chris-mac
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 14575
Category: Channels/chan_sip/General
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Asterisk Version: SVN
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1
SVN Revision (number only!): 178608
Request Review:
======================================================================
Date Submitted: 2009-03-01 06:59 CST
Last Modified: 2009-03-30 08:21 CDT
======================================================================
Summary: BYE to 408 Request Timeout
Description:
Noticed * is generating BYE request to "408 Request Timeout" response.
I don't think this is correct, as 4xx,5xx and 6xx responses to INVITE
should
be only acknowledged with ACK (RFC3261 - 13.2.2.3).
Proxy Asterisk
|<-----------------------(sdp) INVITE F8<|
|>F9 100 Giving a try ------------------>|
|>F13 408 Request Timeout -------------->|
|<------------------------------ ACK F14<|
|<------------------------------ BYE F15<| <= THIS SHOULD NOT BE HERE
|>F18 404 Not here --------------------->|
Please see 408-flow.html attached for detailed call flow.
How to reproduce:
1. You will need a SIP proxy (eg. OpenSER)
2. Edit sip.conf attached and modify <ASTERISK_IP>, <PROXY_IP>,
<DEAD_HOST>
3. Start * with sip.conf and extensions.conf attached.
4. Dial into * with any SIP phone
======================================================================
----------------------------------------------------------------------
(0102373) Shivaprakash (reporter) - 2009-03-30 08:21
http://bugs.digium.com/view.php?id=14575#c102373
----------------------------------------------------------------------
I am noticing the same behaviour for 487 response also
Asterisk sends ACK for 487 and immediately sends BYE
Accoring to RFC, an UAS may send BYE to terminate an early dialog also.
But here, as only 100 Trying is received, and as it doesnt create an early
dialog, it seems to be a bug
Adding
sip_alreadygone(p); in chan_sip.c
in the function handle_response() under the case 408 and 487 solves the
problem.
Issue History
Date Modified Username Field Change
======================================================================
2009-03-30 08:21 Shivaprakash Note Added: 0102373
======================================================================
More information about the asterisk-bugs
mailing list