[asterisk-users] Overview of SIP error codes and possible causes?

Stefan at WPF stefan.at.wpf at googlemail.com
Wed Jun 20 13:16:34 CDT 2012


Hello,

is there anywhere an overview of SIP error codes and under which condition
they are reported by Asterisk?
There are general definitions for SIP error codes, but they are quite
general and it's Asterisk that actually checks what's wrong and then
reports an error. Now, currently I could check the source code to get more
informations what could have caused the error, but that's very time
consuming.

An example:
I recently had the "488 Not acceptable here" error. There were no more
details, only this error code. I had no idea what could cause this error
(what is not acceptable?) and where to start looking for problems (except
maybe check the source code of Asterisk). A documentation of all possible
SIP errors and under which conditions they are reported - like the
following example - would be very helpful in such cases:

Description of "488 Not acceptable here"
- Could be caused by codec problems, when codec negotiation failed. You can
check if the negotiation failed by ....
- Can be paused by a phone offering encryption, but only offering RTP/AVP
instead of RTP/SAVP profile. Check if the sip log contains a crypto line
and only RTP/AVP, if yes, change the phone settings from RTP/AVP to
RTP/SAVP or disable RTP encryption in the phone's settings.
[Even better: Besides throwing the error message also add the reason for
it, at least in the Asterisk log files. I had a warning from Asterisk
before the error code, but a warning is still something different than an
error, for me the relation between both, the warning and the error message,
weren't clear]


Is there something like this already? How about introducing it, e.g. every
Asterisk developer throwing an error message in his code adds the reason
for throwing the error message to an explanation of possible causes, like
in the example above?

Best regards
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120620/aa0f1acb/attachment.htm>


More information about the asterisk-users mailing list