[asterisk-users] SIP response 480 "Do Not Disturb"

Johansson Olle E oej at edvina.net
Tue Apr 15 05:52:04 CDT 2008


15 apr 2008 kl. 12.06 skrev Stefan Guenther:
> Hello,
>
> I have switched on DND on a SNOM 360. When I call this phone, I get  
> the
> following output:
>
>   -- Executing [93 at local:1] Dial("SIP/user4-0821b0e8",
> "SIP/user3|20|tr") in new stack
>     -- Called user3
>     -- Got SIP response 480 "Do Not Disturb" back from 192.168.0.34
>     -- SIP/user3-081f8d20 is circuit-busy
>   == Everyone is busy/congested at this time (1:0/1/0)
>     -- Executing [93 at local:2] Goto("SIP/user4-0821b0e8",
> "fehler|s-CONGESTION|1") in new stack
>     -- Goto (fehler,s-CONGESTION,1)
>     -- Executing [s-CONGESTION at fehler:1] NoOp("SIP/user4-0821b0e8",
> ""xCONGESTION"") in new stack
>     -- Executing [s-CONGESTION at fehler:2] Hangup("SIP/user4-0821b0e8",
> "") in new stack
>
> I'm using a separate context to catch the dialstatus
>
> [fehler]
> exten => s-NOANSWER,1,NoOp("xNOANSWER")
> exten => s-NOANSWER,2,Hangup
>
> exten => s-CHANUNAVAIL,1,NoOp("xCHANUNAVAIL")
> exten => s-CHANUNAVAIL,2,Hangup
>
> exten => s-BUSY,1,NoOp("xBUSY")
> exten => s-BUSY,2,Hangup
>
> exten => s-CONGESTION,1,NoOp("xCONGESTION")
> exten => s-CONGESTION,2,Hangup
>
> exten => _s-.,1,NoOp("????")
> exten => _s-.,2,Hangup
>
> Now my question is: Is it possible to tell asterisk that SIP 480
> shouldn't result in dialstatus CONGESTION, but in dialstatus BUSY?
>
Well, 480 translates to AST_CAUSE_NOANSWER - cause 19 - check by  
checking HANGUPCAUSE instead of DIALSTATUS and you will get many more  
details.

/Olle



More information about the asterisk-users mailing list