[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:37:20 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:37 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.
====================================================================== 

---------------------------------------------------------------------- 
 ibc - 04-22-08 08:37  
---------------------------------------------------------------------- 
Sorry but I don't understand.

- If Asterisk calls to a SIP server and receives a "503 Service
Unavailable" from that server this is translated into "FAILED" in Asterisk
CDR.

- If Asterisk calls to a SIP server and receives a "502 Bad Gateway" from
that server this is translated into "NO ANSWER" in Asterisk CDR.

There is no difference at all between the above two cases related to call
legs, in both cases there are the same so I don't understnad what you mean. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-22-08 08:37  ibc            Note Added: 0085808                          
======================================================================




More information about the asterisk-bugs mailing list