I’m newbie of asterisk. I have faced an issue with sip respone code. When use not answer, i got sip 503 instead of 480.
I got sip SIP/2.0 503 Service Unavailable but in
sip message said:“X-Asterisk-HangupCause: No user responding, X-Asterisk-HangupCauseCode: 18”
how can i remapping the cause code or fix that issue
According to RFC 3398, that should be 408, not 480, for an 18 internal code. Asterisk is an ISDN PABX with SIP bolted on. It is a back to back user agent. As such SIP response codes are not sent end to end but rather translated into ISDN codes then translated back.
However, chan_sip only has community support, so it is unlikely that the code will be changed.
However cause2sip() does translate ISDN 18 into SIP 408. I think the most likely reason for getting 503 is that chan_sip received an, internal Asterisk, AST_CONTROL_CONGESTION message, which I would suggest would be the result of explicitly calling the Congestion () application.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.