voice-class sip error-code-override
To configure the Session Initiation Protocol (SIP) error code that a dial peer uses for options-keepalive failures, call spike, or cac-bandwidth failures, use the voice-class sip error-code-override command in dial peer voice configuration mode. To disable the SIP error code configuration, use the no form of this command.
voice-class sip error-code-override {options-keepalive failure | call spike failure | cac-bandwidth failure} {sip-status-code-number | system}
no voice-class sip error-code-override {options-keepalive failure | call spike failure | cac-bandwidth failure}
Syntax Description
options-keepalive failure |
Configures the SIP error code for options-keepalive failures. |
call spike failure |
Configures the SIP error code for call spike failures. |
cac-bandwidth failure |
Configures the SIP error code for Call Admission Control bandwidth failures. |
sip-status-code-number |
The SIP status code that is sent for the options keepalive, call spike, or cac-bandwidth failure. The range is from 400 to 699. The default value is 503. The table below in the “Usage Guidelines” section describes these error codes. |
system |
Specifies the system configuration used for keepalive, call spike, or cac-bandwidth failures. |
Command Default
By default the SIP error code is not configured.
Command Modes
Dial peer voice configuration (config-dial-peer)
Command History
Release |
Modification |
---|---|
15.0(1)XA |
This command was introduced. |
15.1(1)T |
This command was integrated into Cisco IOS Release 15.1(1)T. |
15.1(3)T |
This command was modified. The call spike failure keyword was added. |
15.2(2)T |
This command was modified. The cac-bandwidth failure keyword was added. |
Usage Guidelines
The voice-class sip error-code-override command in dial peer voice configuration mode configures the error code response for keepalive options, call spike, or cac-bandwidth failures at the dial peer level. The error-code-override command in voice service SIP configuration mode configures the error code responses for options-keepalive, call spike, or cac-bandwidth failures globally.
The table below describes the SIP error codes.
Error Code Number |
Description |
---|---|
400 |
Bad request |
401 |
Unauthorized |
402 |
Payment required |
403 |
Forbidden |
404 |
Not found |
408 |
Request timed out |
416 |
Unsupported Uniform Resource Identifier (URI) |
480 |
Temporarily unavailable |
482 |
Loop detected |
484 |
Address incomplete |
486 |
Busy here |
487 |
Request terminated |
488 |
Not acceptable here |
500–599 |
SIP 5xx—server/service failure |
500 |
Internal server error |
502 |
Bad gateway |
503 |
Service unavailable |
600–699 |
SIP 6xx—global failure |
Examples
The following example shows how to configure the SIP error code for options-keepalive failures using the voice-class sip error-code-override command:
Router(config)# dial-peer voice 432 voip system
Router(config-dial-peer)# voice-class sip error-code-override options-keepalive failure 502
The following example shows how to configure the SIP error code for call spike failures using the voice-class sip error-code-override command:
Router(config)# dial-peer voice 432 voip system
Router(config-dial-peer)# voice-class sip error-code-override call spike failure 502
The following example shows how to configure the SIP error code for Call Admission Control bandwidth failures:
Router(config)# dial-peer voice 432 voip system
Router(config-dial-peer)# voice-class sip error-code-override cac-bandwidth failure 502