[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 08:23:37 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 08:23 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 08:23  
---------------------------------------------------------------------- 
Because a CDR disposition of FAILED generally means that no call legs were
established.  One was established... from your SIP phone to Asterisk.  The
fact that the second leg did not go through translates to a NO ANSWER. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-22-08 08:23  Corydon76      Note Added: 0085807                          
======================================================================




More information about the asterisk-bugs mailing list