[asterisk-dev] SIP error codes interpreted by Asterisk as?

Antonio Gallo agx at linux.it
Thu Mar 20 02:27:05 CDT 2008


Johansson Olle E ha scritto:
>> Because when a call is made through Asterisk, and let’s say it’s a  
>> disconnected number, Asterisk returns “Call failed, reason 0” or a  
>> reason number from 1-10. What makes Asterisk decide what reason is a  
>> SIP error code classified as?
> In chan_sip we translate those error codes to the ISDN hangup causes  
> we use internally in Asterisk, which you can reach
> in the HANGUPCAUSE dialplan variable. We follow the IETF standards  
> where available, or the Cisco implementation.

If you go to voip-info.org there is a really nice page about it.

I've an unofficial patch for chan_misdn to break a DIAL() with the 
option "Q" after the ISDN DISCONNECT message has been returned that can 
be used by telemarketing for quickly classify the dialed number without 
messing around with the Telco post-call audio (like, the number does not 
exists, the mobile is shutted off now, etc.)




More information about the asterisk-dev mailing list