Table Of Contents
Gateway Codec Order Preservation and Shutdown Control
Information About Gateway Codec Order Preservation
Information About Gateway Shutdown Control
Shutdown Behavior in H.323 Networks
Shutdown Behavior in SIP Networks
How to Shutdown or Enable VoIP Services on a Cisco Gateway
Shutting Down and Enabling VoIP Service on Cisco Gateways
Shutting Down and Enabling VoIP Submodes on Cisco Gateways
Verifying H.323 Gateway Status
Gateway Codec Order Preservation and Shutdown Control
The Gateway Codec Order Preservation and Shutdown Control feature enables Cisco gateways to pass codec preferences from the originating leg to the terminating leg of a VoIP call. This feature also enables users to gracefully shutdown VoIP services on Cisco H.323 and Session Initiation Protocol (SIP) gateways.
Feature Specifications for the Gateway Codec Order Preservation and Shutdown Control Feature
Finding Support Information for Platforms and Cisco IOS Software Images
Use Cisco Feature Navigator to find information about platform support and Cisco IOS software image support. Access Cisco Feature Navigator at http://www.cisco.com/go/fn. You must have an account on Cisco.com. If you do not have an account or have forgotten your username or password, click Cancel at the login dialog box and follow the instructions that appear.
Contents
•
Information About Gateway Codec Order Preservation
•
Information About Gateway Shutdown Control
•
How to Shutdown or Enable VoIP Services on a Cisco Gateway
Information About Gateway Codec Order Preservation
Codec order preservation enables a Cisco gateway to pass codec preferences to the terminating leg of a VoIP call. This feature was developed primarily for Cisco Multiservice IP-to-IP Gateways (IPIPGW), which are configured to use a transparent codec. The transparent codec enables an IPIPGW to pass codecs from the originating endpoint to the terminating endpoint, however, previous versions of the IPIPGW did not preserve the preferential order of the codecs.
With codec order preservation, the IPIPGW passes codecs transparently from the originating device, listed in order of preference, to the terminating device. It also enables Cisco gateways to pass user-configured codecs in their preferred order when the endpoints exchange capabilities, enabling endpoints to use the codec that best suits both devices.
Codec order preservation is enabled by default in Cisco gateways running Cisco IOS Release 12.3(1) and later releases. No further configuration is needed.
Information About Gateway Shutdown Control
Shutdown control enables administrators to shut down VoIP service on live Cisco H.323 and SIP gateways. You can shut down a gateway in one of two ways:
•
Graceful shutdown—New calls are refused, and all in-progress calls are allowed to complete before the gateway unregisters with gatekeepers.
•
Forced shutdown—New calls are refused, all in-progress calls are immediately terminated, and the gateway unregisters with gatekeepers.
Shutdown control introduces two new voice service commands. The shutdown command shuts down all VoIP services on the gateway. The call service stop command shuts down only a submode of VoIP calls. For example, you can use the call service stop command to shut down only H.323 calls, leaving SIP call processing unaffected on the gateway. The default shutdown behavior for both commands is graceful, meaning the gateway will allow all calls to clear normally before shutting down. Both commands can be used with the forced keyword, which causes the gateway to terminate all calls at once.
A gateway's shutdown status is stored in nonvolatile RAM (NVRAM), so a gateway remains out of service following a reload or power off. The gateway resumes processing new calls only when you enter the appropriate no shutdown or no call service stop command.
Note
The use of call service stop overrides the functionality of the shutdown command for the affected submode. For example, if no call service stop is entered under the H323 submode, the shutdown command only affects the processing of SIP calls.
Shutdown Behavior in H.323 Networks
When you initiate a shutdown, be it graceful or forced, the gateway sends a Resource Availability Indicator (RAI) message to the gatekeeper with the AlmostOutOfResources field flagged. This message prevents the gatekeeper from routing new calls to the gateway. If the gateway is configured to report call capacities, the gateway reports zero capacity in the RAI message.
You can use maintain-registration keyword with the call service stop command to force the gateway to remain registered with the gatekeeper.
Note
The maintain-registration keyword is available only on H.323 gateways.
Shutdown Behavior in SIP Networks
The shutdown of call processing on a SIP gateway causes the SIP subsystem to reject all new incoming or outgoing call attempts. Unlike H.323 gateways, a SIP gateway has no means of notifying location servers that it is shutting down. The SIP subsystem continues to run on the gateway, rejecting any new call attempts received during the shutdown period.
How to Shutdown or Enable VoIP Services on a Cisco Gateway
This section contains the following procedures:
•
Shutting Down and Enabling VoIP Service on Cisco Gateways (optional)
•
Shutting Down and Enabling VoIP Submodes on Cisco Gateways (optional)
Shutting Down and Enabling VoIP Service on Cisco Gateways
To shut down or enable all VoIP services on a Cisco gateway, use the following commands:
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
voice service voip
4.
[no] shutdown
DETAILED STEPS
Shutting Down and Enabling VoIP Submodes on Cisco Gateways
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
voice service voip
4.
h323 | sip
5.
[no] call service stop
DETAILED STEPS
Verifying Gateway Status
The following sections show how to verify whether a Cisco gateway is enabled or shut down:
•
Verifying H.323 Gateway Status
Verifying H.323 Gateway Status
The following example displays output for the show gateway command after the gateway has been shut down:
Router# show gatewayH.323 ITU-T Version: 4.0 H323 Stack Version: 0.1H.323 service is shutdownGateway Router is not registered to any gatekeeperThe following example displays output for the show gateway command after a graceful shutdown with calls in progress:
Router# show gatewayH.323 ITU-T Version: 4.0 H323 Stack Version: 0.1H.323 service is shutting downGateway Router is registered to Gatekeeper GK1The following example displays output for the show gateway command when H.323 call service has been shut down with the call service stop maintain-registration command:
Router# show gatewayH.323 ITU-T Version: 4.0 H323 Stack Version: 0.1H.323 service is shutdownGateway Router is registered to Gatekeeper GK1Verifying SIP Gateway Status
The Codec Order Preservation and Shutdown Feature adds a new command, show sip service, that enables you to verify the status of a SIP gateway. The following example displays output for the show sip service command when SIP call service is enabled:
Router# show sip serviceSIP Service is upThe following example displays output for the show sip service command when SIP call service is shut down with the shutdown command:
Router# show sip serviceSIP service is shut globallyunder 'voice service voip'The following example displays output for the show sip service command when SIP call service is shut down with the call service stop command:
Router# show sip serviceSIP service is shutunder 'voice service voip', 'sip' submodeThe following example displays output for the show sip service command when SIP call service is shut down with the shutdown forced command:
Router# show sip serviceSIP service is forced shut globallyunder 'voice service voip'The following example displays output for the show sip service command when SIP call service is shut down with the call service stop forced command:
Router# show sip serviceSIP service is forced shutunder 'voice service voip', 'sip' submodeAdditional References
For additional information related to Codec Order Preservation and Shutdown Control, refer to the following references:
Related Documents
Related Topic Document TitleCisco Multiservice IP-to-IP Gateways
Cisco Multiservice IP-to-IP Gateway Application Guide
Cisco IOS voice configuration library
Standards
Standards TitleNo new or modified standards are supported by this feature, and support for existing standards has not been modified by this feature.
MIBs
RFCs
RFCs TitleNo new or modified RFCs are supported by this feature, and support for existing RFCs has not been modified by this feature.
Technical Assistance
Command Reference
This section documents new commands. All other commands used with this feature are documented in the Cisco IOS Release 12.3 voice command reference publications.
•
call service stop
•
show sip service
•
shutdown (gateway)
call service stop
To shut down VoIP call service under the H.323 or SIP submode on a gateway, use the call service stop command in voice service configuration mode. To enable VoIP call service, use the no form of this command.
call service stop [forced] [maintain-registration]
no call service stop
Syntax Description
forced
(Optional) Forces the gateway to immediately terminate all in-progress calls.
maintain-registration
(Optional) Forces the gateway to remain registered with the gatekeeper.
Usage Guidelines
The call service stop command affects call processing only for the given submode. This command overrides the functionality of the shutdown command for the affected submode.
Defaults
Call service is enabled
Command Modes
Voice service configuration
Command History
Examples
The following example shows SIP call service being shutdown on a Cisco gateway:
enableconfigure terminalvoice service voipsipcall service stopThe following example shows H.323 call service being enabled on a Cisco gateway:
enableconfigure terminalvoice service voiph323no call service stopRelated Commands
show sip service
To display the status of SIP call service on a SIP gateway, use the show sip service command in voice configuration mode.
show sip service
Syntax Description
This command has no arguments or keywords
Defaults
No default behaviors or values
Command Modes
Voice service configuration
Command History
Examples
The following example displays output for the show sip service command when SIP call service is enabled:
Router# show sip serviceSIP Service is upThe following example displays output for the show sip service command when SIP call service is shut down with the shutdown command:
Router# show sip serviceSIP service is shut globallyunder 'voice service voip'The following example displays output for the show sip service command when SIP call service is shut down with the call service stop command:
Router# show sip serviceSIP service is shutunder 'voice service voip', 'sip' submodeThe following example displays output for the show sip service command when SIP call service is shut down with the shutdown forced command:
Router# show sip serviceSIP service is forced shut globallyunder 'voice service voip'The following example displays output for the show sip service command when SIP call service is shut down with the call service stop forced command:
Router# show sip serviceSIP service is forced shutunder 'voice service voip', 'sip' submodeshutdown (gateway)
To shut down all VoIP call service on a gateway, use the shutdown command in voice service configuration mode. To enable VoIP call service, use the no form of this command.
shutdown [forced]
no shutdown
Syntax Description
Usage Guidelines
The shutdown command affects call processing on the gateway, except for submodes where [no] call service stop has been entered.
Defaults
Call service is enabled
Command Modes
Voice service configuration
Command History
Examples
The following example shows VoIP call service being shut down on a Cisco gateway:
voice service voipshutdownThe following example shows VoIP call service being enabled on a Cisco gateway:
voice service voipno shutdownRelated Commands

