access-code
To configure trunk access codes for each type of line so that the Cisco IP phones can access the trunk lines only during Cisco Unified Communications Manager fallback when the Cisco Unified SRST feature is enabled, use the access-code command in call-manager-fallback configuration mode. To remove the telephone access code configuration from the Cisco IP phones, use the no form of this command.
FXO and EandM Line Types
access-code {fxo | e&m} dial-string
no access-code {fxo | e&m} dial-string
BRI and PRI Line Types
access-code {bri | pri} dial-string [direct-inward-dial]
no access-code {bri | pri} [dial-string] [direct-inward-dial]
Syntax Description
fxo |
Enables a Foreign Exchange Office (FXO) interface. |
e&m |
Enables an analog ear and mouth (E&M) interface. |
dial-string |
Sets up dial access codes for each specified line type by creating dial peers. |
bri |
Enables a BRI interface. |
pri |
Enables a PRI interface. |
direct-inward-dial |
(Optional) Enables direct inward dialing on a POTS dial peer. |
Command Default
No default behavior or values.
Command Modes
Call-manager-fallback configuration
Command History
Cisco IOS Release |
Cisco Product |
Modification |
---|---|---|
12.1(5)YD |
Cisco Unified SRST 1.0 |
This command was introduced on the following platforms: Cisco 2600 series and Cisco 3600 series multiservice routers, and Cisco IAD2420 series IADs. |
12.2(2)XT |
Cisco Unified SRST 2.0 |
This command was implemented on Cisco 1750 and Cisco 1751 multiservice routers. |
12.2(8)T |
Cisco Unified SRST 2.0 |
This command was integrated into Cisco IOS Release 12.2(8)T and implemented on the Cisco 3725, Cisco 3745, and Cisco MC3810-V3 routers. |
Usage Guidelines
The access-code command configures trunk access codes for each type of line—BRI, E&M, FXO, and PRI—so that the Cisco IP phones can access the trunk lines during Cisco Unified Communications Manager fallback when Cisco Unified SRST is enabled. This provides systemwide access.
Note |
The access-code command creates temporary dial peers during Cisco Unified Communications Manager fallback. In many cases, you may already have the local PSTN ports configured with appropriate access codes provided by dial peers (for example, dial 9 to select an FXO PSTN line), in which case this command is not needed. |
The access-code command creates temporary POTS voice dial peers for all the selected types of voice ports during Cisco Unified Communications Manager fallback. Use this command only if your normal network dial-plan configuration prevents you from configuring permanent POTS voice dial peers to provide trunk access for use in the fallback mode. When the access-code command is used, it is important to ensure that all ports covered by the command have valid trunk connections. Selection between ports for outgoing calls is random.
The dial string is used to set up temporary dial peers for each specified line type. If there are multiple lines of the same type, a dial peer is set up for each line. The dial peers are active only during Cisco Unified Communications Manager fallback when the Cisco Unified SRST feature is enabled. The result of this configuration is that all PSTN interfaces of the same type, for example BRI, are treated as equivalent, and any port may be selected to place the outgoing PSTN call. The direct-inward-dial keyword enables you to set direct-inward-dialing access for PRI and BRI trunk lines.
Examples
The following example sets the access-code command for BRI 8:
Router(config)# call-manager-fallback
Router(config-cm-fallback)# access-code bri 8 direct-inward-dial
The following example sets the access-code
command for E&M 8:
Router(config)# call-manager-fallback
Router(config-cm-fallback)# access-code e&m 8
The following example sets the access-code command for FXO 9:
Router(config)# call-manager-fallback
Router(config-cm-fallback)# access-code fxo 9
The following example sets the access-code command for PRI 9:
Router(config)# call-manager-fallback
Router(config-cm-fallback)# access-code pri 9 direct-inward-dial