The sip_stat_code Keyword

A three-digit status code in each SIP response indicates the outcome of the requested action. You can use the sip_stat_code keyword to test SIP responses for specific status codes.

You can specify a one-digit response-type number 1-9, a specific three-digit number 100-999, or a comma-separated list of any combination of either. A list matches if any single number in the list matches the code in the SIP response.

The following table describes the SIP status code values you can specify.

Table 1. sip_stat_code Values

To detect...

Specify...

For example...

Detects...

a specific status code

the three-digit status code

189

189

any three-digit code that begins with a specified single digit

the single digit

1

1xx; that is, 100, 101, 102, and so on

a list of values

any comma-separated combination of specific codes and single digits

222, 3

222 plus 300, 301, 302, and so on

Note also that the rules engine does not use the fast pattern matcher to search for the value specify using the sip_stat_code keyword, regardless of whether your rule includes a content keyword.