[asterisk-bugs] [Asterisk 0012491]: "502 Bad Gateway" is translated as "NO ANSWER" instead of "FAILED", why?
noreply at bugs.digium.com
noreply at bugs.digium.com
Tue Apr 22 10:32:12 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=12491
======================================================================
Reported By: ibc
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 12491
Category: Channels/chan_sip/Interoperability
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Asterisk Version: 1.4.15
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 04-22-2008 05:48 CDT
Last Modified: 04-22-2008 10:32 CDT
======================================================================
Summary: "502 Bad Gateway" is translated as "NO ANSWER"
instead of "FAILED", why?
Description:
Hi, IMHO it's clear that receiving a "502" from a SIP server means that
some kind of error has occurred:
21.5.3 502 Bad Gateway
The server, while acting as a gateway or proxy, received an invalid
response from the downstream server it accessed in attempting to
fulfill the request.
But Asterisk translates it into "NO ANSWER" instead of "FAILED":
-- Got SIP response 502 "Bad Gateway" back from XXX.XXX.XXX.XXX
== Everyone is busy/congested at this time (1:0/0/1)
And this originates a "disposition=NO ANSWER" entry in CDR.
I think HANGUPCAUSE 27 ("502 Bad Gateway") should be mapped to "FAILED"
call disposition instead of "NO ANSWER".
Regards.
======================================================================
----------------------------------------------------------------------
Corydon76 - 04-22-08 10:32
----------------------------------------------------------------------
Try this patch, and see if it behaves the way you'd like.
Issue History
Date Modified Username Field Change
======================================================================
04-22-08 10:32 Corydon76 Note Added: 0085815
======================================================================
More information about the asterisk-bugs
mailing list