[Asterisk-Dev] Handling SIP response 480
Mikael Magnusson
mikaelmagnusson at glocalnet.net
Tue Jan 3 05:53:14 MST 2006
Papadopoulos Georgios wrote / skrev:
> Hello,
>
> I have been using Asterisk for quite some time, but this is the first
> time I am digging into the code. (version is 1.2.1)
>
> I have a SIP client that when in DND (Do Not Disturb) mode sends back a
> 480 Temporarily Unavailable response. Asterisk then forwards to the
> calling party a 500 Server Internal Error. Looking into the code I found
> that function hangup_sip2cause in chan_sip.c translates 480 to
> AST_CAUSE_FAILURE. Shouldn't it be AST_CAUSE_NO_ANSWER?
>
Or ISDN cause code 18 "No user responding" (AST_CAUSE_NO_USER_RESPONSE)
which is used in RFC 3398 "Integrated Services Digital Network (ISDN)
User Part (ISUP) to Session Initiation Protocol (SIP) Mapping" section
8.2.6.1 "SIP Status Code to ISDN Cause Code Mapping".
/Mikael
More information about the asterisk-dev
mailing list