Overview

SIP status codes are three digit numbers indicating the type of a SIP response. They are similar to HTTP status code from which SIP incorporates many elements.

Categories

Provisional1xxRequest received and being processed.
Success2xxThe action was successfully received, understood, and accepted.
Redirection3xxFurther action needs to be taken (typically by sender) to complete the request.
Client Error4xxThe request contains bad syntax or cannot be fulfilled at the server.
Server Error5xxThe server failed to fulfill an apparently valid request.
Global Failure6xxThe request cannot be fulfilled at any server.

Sample Codes

We have the following codes so far being logged:

codedescriptionmapped to
200OKANSWERED
401UnauthorizedFAILED
403ForbiddenFAILED
404Not FoundFAILED
408Request TimeoutNO ANSWER
476?FAILED
480Temporarily UnavailableFAILED
483Too Many HopsFAILED
484Address IncompleteFAILED
486Busy HereBUSY
487Request TerminatedCANCELED
488Not Acceptable HereFAILED
502Bad GatewayFAILED
503Service UnavailableFAILED

So we code in the 2xx, 4xx and 5xx categories, and we need to map them to one of the following:

  • NULL
  • FAILED
  • CANCELED
  • ANSWERED
  • BUSY
  • NO ANSWER

Mappings

qr/1\d{2}/ => ‘NULL’,
qr/2\d{2}/ => ‘ANSWERED’,
qr/3\d{2}/ => ‘NULL’,
qr/4\d{2}/ => ‘FAILED’,
qr/5\d{2}/ => ‘FAILED’,
qr/6\d{2}/ => ‘FAILED’,

My tags:
 
Popular tags:
 
Powered by MojoMojo