![]() |
Dial Peer Configuration on Voice Gateway Routers, Cisco IOS Release 12.4T
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Dial Peer Features and Configuration
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Contents
Dial Peer Features and ConfigurationLast Updated: December 15, 2011
Establishing voice communication over a packet network is similar to configuring a static route: You are establishing a specific voice connection between two defined endpoints. Call legs define the discrete segments that lie between two points in the call connection. A voice call over the packet network comprises four call legs, two on the originating router and two on the terminating router; a dial peer is associated with each of these four call legs.
Finding Feature InformationYour software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the Feature Information Table at the end of this document. Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required. Common PracticesThe following three sections cover the bare essential configuration steps necessary to support voice transmission and reception on a typical voice gateway router in your network: Voice PortsYour dial peer configuration cannot function until you have logically assigned a voice port to one or more dial peers. Assigning voice ports to dial peers identifies the physical hardware in the router that will be employed to complete voice communication to and from associated voice network endpoints. Assigning Voice PortsThe purpose of this task is to assign a voice port to a plain old telephone system (POTS) dial peer. DETAILED STEPS
Session TargetsThe session target is the network address of the remote router to which you want to send a call once a local voice-network dial peer is matched. It is configured in voice-network dial peers by using the session target command. For outbound dial peers, the destination pattern is the telephone number of the remote voice device that you want to reach. The session target represents the path to the remote router that is connected to that voice device. The figure below illustrates the relationship between the destination pattern and the session target, as shown from the perspective of the originating router. The address format of the session target depends on the type of voice-network dial peer:
Configuring Session Targets
SUMMARY STEPS
DETAILED STEPS Destination PatternsThe destination pattern associates a dialed string with a specific telephony device. It is configured in a dial peer by using the destination-pattern command. If the dialed string matches the destination pattern, the call is routed according to the voice port in POTS dial peers, or the session target in voice-network dial peers. For outbound voice-network dial peers, the destination pattern may also determine the dialed digits that the router collects and then forwards to the remote telephony interface, such as a PBX, a telephone, or the public switched telephone network (PSTN). You must configure a destination pattern for each POTS and voice-network dial peer that you define on the router. Configuring Destination Patterns
SUMMARY STEPS
DETAILED STEPS Digit ManipulationThe router may need to manipulate digits in a dial string before it passes the dial string to the telephony device. Which can be necessary, for instance, when calling PBXs with different capabilities to accept digits, or for PSTN and international calls. You may need to consider different strategies for configuring digit manipulation within your dial peers depending on your existing dial plan, the digits users are expected to dial, and the capabilities of your PBX or key system unit (KSU). These digit-manipulation options, in conjunction with the destination pattern, determine the dial string that the router forwards to the telephony device.
WildcardsThe destination pattern can be either a complete telephone number or a partial telephone number with wildcard digits, represented by a period (.) character. Each "." represents a wildcard for an individual digit that the originating router expects to match. For example, if the destination pattern for a dial peer is defined as "555....", then any dialed string beginning with 555, plus at least four additional digits, matches this dial peer. In addition to the period (.), several other symbols can be used as wildcard characters in the destination pattern. These symbols provide additional flexibility in implementing dial plans and decrease the need for multiple dial peers in configuring telephone number ranges. The table below shows the wildcard characters that are supported in the destination pattern.
The table below shows some examples of how these wildcard symbols are applied to the destination pattern and the dial string that results when dial string 4085551234 is matched to an outbound POTS dial peer. The wildcard symbols follow regular expression rules.
1 These examples apply only to one-stage dialing, where direct inward dialing (DID) is enabled on the inbound POTS dial peer. If the router is using two-stage dialing and collecting digits one at a time as dialed, then the call is routed immediately after a dial peer is matched and any subsequent dialed digits are lost.
In addition to wildcard characters, the following characters can be used in the destination pattern:
Multiple digits can also be called out within brackets to eliminate more than one initial digit from dial peer matching. For example, a destination pattern including [^4^6^8] would not match any digit string beginning with 4, 6, or 8.
To eliminate a multiple digit string from dial peer matching consideration, you must represent each digit in the string as a succession of individual exceptions. For example, if you wanted to eliminate matching any digit string beginning with 537 from consideration for dial peer matching, you must ensure that your destination pattern includes [^5][^3][^7]. The same destination pattern can be shared across multiple dial peers to form hunt groups. Digit Stripping and PrefixesWhen a terminating router receives a voice call, it selects an outbound POTS dial peer by comparing the called number (the full E.164 telephone number) in the call information with the number configured as the destination pattern in the POTS dial peer. The access server or router then strips off the left-justified digits that match the destination pattern. If you have configured a prefix, the prefix is added to the front of the remaining digits, creating a dial string, which the router then dials. If all numbers in the destination pattern are stripped out, the user receives a dial tone. For example, consider a voice call whose E.164 called number is 1(408) 555-2222. If you configure a destination-pattern of "1408555" and a prefix of "9," the router strips off "1408555" from the E.164 telephone number, leaving the extension number of "2222." It then appends the prefix, "9," to the front of the remaining numbers, so that the actual numbers dialed are "9, 2222." The comma in this example means that the router will pause for 1 second between dialing the "9" and dialing the "2" to allow for a secondary dial tone. When the terminating router matches a dial string to an outbound POTS dial peer, by default the router strips off the left-justified digits that explicitly match the destination pattern. Any remaining digits, called> excess digits, are forwarded to the telephony interface, such as a PBX or the PSTN. Some telephony interfaces require that any digits stripped from the dial string be recovered to support a particular dial plan. You can strip these digits either by using the no digit-strip dial-peer voice configuration command to disable the default digit-stripping behavior or by using the prefix dial-peer voice configuration command to add digits to the beginning of the dial string before it is forwarded to the telephony interface. These commands are supported only in POTS dial peers. The no digit-strip command disables the automatic digit-stripping function so that matching digits are not stripped from the dialed string before it is passed to the telephony interface. For example, in the following dial peer configuration, the entire seven-digit dialed string is passed to the telephony interface: dial-peer voice 100 pots destination-pattern 555.... no digit-strip port 1/0:1 Disabling digit stripping is useful when the telephony interface requires the full dialed string. With some dial plans, however, the dialed digits must be manipulated according to specific rules. The prefix command can be used to add specific digits to the beginning of the dialed string before it is forwarded to the telephony interface. For example, consider a telephone whose E.164 called number is 1(408)555-1234. This telephone can be reached within the company by dialing its extension number, 51234. If you configure a destination pattern of "1408555...." (the periods represent wildcards) for the associated outbound POTS dial peer, the terminating gateway will strip off the digits "1408555" when it receives a call for 1(408)555-1234. For the terminating gateway to forward the call to the appropriate destination, the digit "5" needs to be prepended to the remaining digits. In this case, you would configure a prefix of 5, as shown in the following dial peer configuration. dial-peer voice 100 pots destination-pattern 1408555.... prefix 5 port 1/0:1 A prefix can also include commas (,). Each comma indicates a 1-second pause in dialing. For example, consider a telephone whose E.164 called number is 1(408)555-1234; to reach this device, you must dial "9." In this case, you might configure "1408......." as the destination pattern, and "9" as the prefix. In this example, the terminating router will strip the digits "1408" from the called number and append the digit "9" to the front of the remaining digits, so that the actual number dialed is" 9,5551234." The router pauses for 1 second between dialing the "9" and the "5551234" to allow for a secondary dial tone. In this example, you would configure the router as follows: dial-peer voice 100 pots destination-pattern 1408....... prefix 9, port 1/0:1 Using a comma with the prefix command is useful when the router must allow for a secondary dial tone; otherwise the router does not wait for the dial tone before playing out excess digits. Putting commas in the prefix makes the router pause 1 second per comma, allowing for a dial tone to occur before the router transmits the remaining digits. The figure below shows an example of a network using the no digit-strip command. In this example, a central site (Site D) is connected to remote sites through routers (Sites A, B, and C), and through a Centrex system for sites still using the PSTN (Sites E and F). The Centrex service requires the full 7-digit dial string to complete calls. The dial peers are configured with a fixed-length 7-digit dial plan. When Site E (8204...) dials 8201999, the full 7-digit dialed string is passed through the Centrex to the router at Site D. Router D matches the destination pattern 8201... and forwards the 7-digit dial string to Router A. Router A matches the destination pattern 8201..., strips off the matching 8201, and forwards the remaining 3-digit dial string to the PBX. The PBX matches the correct station and completes the call to the proper extension. Calls in the reverse direction are handled similarly, but because the Centrex service requires the full 7-digit dial string to complete calls, the POTS dial peer at Router D is configured with digit stripping disabled. Alternatively, digit stripping could be enabled and the dial peer could instead be configured with a 4-digit prefix, in this case 8204, which would result in forwarding the full dial string to the Centrex service.
Forwarding DigitsThe forward-digits command controls the number of digits that are stripped before the dialed string is passed to the telephony interface. On outbound POTS dial peers, the terminating router normally strips off all digits that explicitly match the destination pattern in the terminating POTS dial peer. Only digits matched by the wildcard pattern are forwarded. The forward-digits command can be used to forward a fixed number of dialed digits, or all dialed digits, regardless of the number of digits that explicitly match the destination pattern. For example, the forward-digits 4 command tells the router to forward the last four digits in the dialed string. The forward-digits all command instructs the router to forward the full dialed string. If the length of the dialed string is longer than the length of the destination pattern, the forward-digits extra command forwards the extra trailing digits. Extra digits are not forwarded, however, if the dial peer destination pattern is variable length; for example, 123T, 123...T.
The figure below shows an example of routing voice calls through a PBX using forward digits. In this configuration, Routers T1 and T2 are tandem nodes that must support forward digits so that calls from Routers A, B, or C can make a call to extension 8208. In this example, all digits matched with destination 8... are forwarded to the appropriate port. For a call from Router A to reach extension 8208, the call first terminates at Router T1, which transmits the digits 8208 to the voice port connected to the PBX. The PBX then routes the voice call to Router T2. The forward-digits all command is used here, but the forward-digits 4command could also be used in this example. The following dial peer configurations are required on each router for this example:
Number ExpansionIn most corporate environments, the telephone network is configured so that you can reach a destination by dialing only a portion (an extension number) of the full E.164 telephone number. You can define an extension number as the destination pattern for a dial peer. The router can be configured to recognize the extension number and expand it into its full E.164 dialed number when the num-exp global configuration command is used with the destination-pattern dial-peer voice configuration command. Number expansion is a globally applied rule that enables you to define a set of digits for the router to prepend to the beginning of a dialed string before passing it to the remote telephony device. Automatically prepending digits in the dial peer configuration reduces the number of digits that a user must dial to reach a remote location. Number expansion is similar to using a prefix, except that number expansion is applied globally to all dial peers. Using a simple telephony-based example, suppose that user A works in a company where employees extensions are reached by dialing the last four digits of the full E.164 telephone number. The E.164 telephone number is 555-2123; user A's extension number is 2123. Suppose that every employee on user A's floor has a telephone number that begins with the same first four digits: 5552. You could define each dial peer's destination pattern using each extension number, and then use number expansion to prepend the first four digits onto the extension. In this example, the router could be configured as follows: num-exp 2... 5552... dial peer voice 1 pots destination pattern 2123 Number expansion can also be used to replace a dialed number with another number, as in the case of call forwarding. Suppose that for some reason, user A needs to have all of his telephone calls forwarded to another number, 555-6611. In this example, you would configure the router as follows: num-exp 2123 5556611 dial peer voice 1 pots destination pattern 2123 In this example, every time the device receives a call for extension 2123, the dialed digits will be replaced with 555-6611 and the call will be forwarded to that telephone. Before you configure the num-exp command, it is helpful to map individual telephone extensions to their full E.164 dialed numbers. This task can be done easily by creating a number expansion table. Creating a Number Expansion Table The figure below shows a network for a small company that wants to use VoIP to integrate its telephony network with its existing IP network. The destination patterns (or expanded telephone numbers) associated with Router A are 408 115-xxxx, 408 116-xxxx, and 408 117-xxxx, where xxxx identifies the individual dial peers by extension. The destination pattern (or expanded telephone number) associated with Router B is 729 555-xxxx. The table below shows the number expansion table for this scenario. The information included in this example must be configured on both Router A and Router B.
The period (.) character represents wildcards (such as extension numbers) in a telephone number. Configuring Number Expansion The purpose of this task is to expand an extension number into its full telephone number. DETAILED STEPS
Translation RulesDigit translation rules are used to manipulate the calling number (ANI) or called number (DNIS) digits for a voice call, or to change the numbering type of a call. Translation rules are used to convert a telephone number into a different number before the call is matched to an inbound dial peer or before the call is forwarded by the outbound dial peer. For example, within your company you may dial a 5-digit extension to reach an employee at another site. If the call is routed through the PSTN to reach the other site, the originating gateway must use translation rules to convert the 5-digit extension into the 10-digit format that is recognized by the central office switch. Translation rules are defined by using the translation-rule command. After you define a set of translation rules, you can apply the rules to all inbound VoIP calls, to all inbound calls that terminate at a specific voice port, and to individual inbound or outbound call legs according to the dial peer. The following example shows a dial peer that is configured to use translation-rule set 1, which contains ten translation rules. The first rule defined is rule 0, in which 910 is the pattern that must be matched and replaced, and 0 is the pattern that is substituted for 910. translation-rule 1 rule 0 ^910 0 rule 1 ^911 1 rule 2 ^912 2 rule 3 ^913 3 rule 4 ^914 4 rule 5 ^915 5 rule 6 ^916 6 rule 7 ^917 7 rule 8 ^918 8 rule 9 ^919 9 ! ! dial-peer voice 2 voip destination-pattern 91.......... translate-outgoing called 1 session target ras The configuration results in the stripping of the leading digits 91 from any called number that begins with 91 before the number is forwarded by the outbound VoIP dial peer. Use the caret (^) symbol to specify that the matched digits must occur at the start of a dial string.
Translation rules can also be used to change the numbering type for a call. For example, some gateways may tag any number with more than 11 digits as an international number, even when the user must dial a 9 to reach an outside line. The following example shows a translation rule that converts any called number that starts with 91, and that is tagged as an international number, into a national number without the 9 before sending it to the PSTN: translation-rule 20 rule 1 91 1 international national ! ! dial-peer voice 10 pots destination-pattern 91.......... translate-outgoing called 20 port 1:D !
To create digit translation rules, perform the tasks in the following sections:
To apply digit translation rules to VoIP calls, perform one or more of the following procedures: CreatingDigitTranslationRulesThe purpose of this task is to enter translation-rule configuration mode and specify a set of translation rules. To create additional individual translation rules to include in the translation-rule set, repeat Step 4 .
DETAILED STEPS
Applying Translation Rules to Inbound POTS CallsThe purpose of this task is to apply a translation rule set to all inbound POTS calls that terminate on the same voice port.
DETAILED STEPS
Applying Translation Rules to Inbound VoIP CallsThe purpose of this task is to apply a translation rule set to all inbound VoIP calls that originate at an H.323 gateway.
DETAILED STEPS
Applying Translation Rules to Outbound Call LegsThe purpose of this task is to apply a translation rule set to an outbound VoIP or POTS call leg.
DETAILED STEPS
Data Dial PeersIn addition to standard voice-network and POTS dial peers, a newer type of dial peer has been introduced to service modem calls over POTS lines with automatic dial peer matching and priority assignment. These new dial peers are called data dial peers. Traditionally, if a modem call came over a POTS line connected to a voice-network gateway, a procession of matching criteria was required to determine the nature of the incoming call. Only after it was determined that an incoming call was not a voice call could it then be assumed that the transmission was, in fact, a data-based modem call. Now, however, you have the ability to specify particular daily peers as data dial peers and even assign them priority in relation to other dial peers in the system. Configuring Data Dial Peers
SUMMARY STEPS
DETAILED STEPS
Configuring a Search for Dial Peers by Type
SUMMARY STEPS
DETAILED STEPS
Inbound and Outbound Dial PeersDial peers are used for both inbound and outbound call legs. It is important to remember that these terms are defined from the perspective of the router. An inbound call leg originates when an incoming call comes to the router. An outbound call leg originates when an outgoing call is placed from the router. The first figure below illustrates call legs from the perspective of the originating router; the second figure below illustrates call legs from the perspective of the terminating router.
For inbound calls from a POTS interface that are destined for the packet network, the router matches a POTS dial peer for the inbound call leg and a voice-network dial peer, such as VoIP or VoFR, for the outbound leg. For inbound calls from the packet network, the router matches a POTS dial peer to terminate the call and a voice-network dial peer to apply features such as codec or QoS. For inbound POTS call legs going to outbound voice-network dial peers, the router forwards all digits that it collects. On outbound POTS call legs, the router strips off explicitly matching digits and forwards any excess digits out the designated port. The following examples show basic configurations for POTS and VoIP dial peers: dial-peer voice 1 pots destination-pattern 555.... port 1/0:1 dial-peer voice 2 voip destination-pattern 555.... session target ipv4:192.168.1.1 The router selects a dial peer for a call leg by matching the string that is defined by using the answer-address, destination-pattern, or incoming called-number command in the dial peer configuration. Matching Inbound Dial PeersTo match inbound call legs to dial peers, the router uses three information elements in the call setup message and four configurable dial peer attributes. The three call setup elements are:
The five configurable dial peer attributes are:
The router selects an inbound dial peer by matching the information elements in the setup message with the dial peer attributes. The router attempts to match these items in the following order:
The router must match only one of these conditions. It is not necessary for all the attributes to be configured in the dial peer or that every attribute match the call setup information; only one condition must be met for the router to select a dial peer. The router stops searching as soon as one dial peer is matched and the call is routed according to the configured dial peer attributes. Even if there are other dial peers that would match, only the first match is used.
Variable-Length MatchingWhen matching dial peers, the router defaults to variable-length matching, which means that as long as the left-justified digits in the dial string match the configured pattern in the dial peer, any digits beyond the configured pattern are ignored for the purposes of matching. For example, dial string 5551212 would match both of the following dial peers: dial-peer voice 1 voip destination-pattern 555 session target ipv4:10.10.1.1 dial-peer voice 2 voip destination-pattern 5551212 session target ipv4:10.10.1.2 To disable variable-length matching for a dial peer, add the dollar sign ($) to the end of the destination pattern, as shown: dial-peer voice 1 voip destination-pattern 555$ session target ipv4:10.10.1.1 The $ character in the configuration prevents this dial peer from being matched for dial string 5551212 because the extra digits beyond 555 are considered in the matching. With two-stage dialing, the router collects the dialed string digit by digit. It attempts to match a dial peer after each digit is received. As soon as it finds a match, it immediately routes the call. For example, given the following configurations, the router would immediately match dial string 5551212 to dial peer 1. dial-peer voice 1 voip destination-pattern 555 session target ipv4:10.10.1.1 dial-peer voice 2 voip destination-pattern 5551212 session target ipv4:10.10.1.2 If the router is performing two-stage dialing and you want to make sure that the full dial string is collected before a dial peer is matched, you can use the timeout T-indicator as in variable-length dial plans. For example, after the router waits until the full dial string is collected, dial string 5551212 would match both of the following dial peers: dial-peer voice 1 voip destination-pattern 555T session target ipv4:10.10.1.1 dial-peer voice 2 voip destination-pattern 5551212T session target ipv4:10.10.1.2 How the router selects a dial peer also depends on whether the dial peer is being matched for the inbound or outbound call leg. Configuring the incoming called-number CommandWhen a Cisco router is handling both modem and voice calls, it needs to identify the service type of the call--that is, whether the incoming call to the router is a modem or a voice call. When the router handles only modem calls, the service type identification is handled through modem pools. Modem pools associate calls with modem resources based on the called number (DNIS). In a mixed environment, where the router receives both modem and voice calls, you need to identify the service type of a call by using the incoming called-number command. If the incoming called-number command is not configured, the router attempts to resolve whether an incoming call is a modem or voice call on the basis of the interface over which the call comes. If the call comes in over an interface associated with a modem pool, the call is assumed to be a modem call; if a call comes in over a voice port associated with a POTS dial peer, the call is assumed to be a voice call. The purpose of this task is to identify the service type of a call as voice. DETAILED STEPS
answer-address Command
SUMMARY STEPS
DETAILED STEPS
Configuring the destination-pattern CommandSee the Configuring Destination Patterns for information on configuring the destination pattern for a dial peer. Configuring the port CommandSee the Assigning Voice Ports for information on associating a voice port with a dial peer. Matching Outbound Dial PeersThe method a router uses to select an outbound dial peer depends on whether ISDN DID is configured in the inbound POTS dial peer. If DID is not configured in the inbound POTS dial peer, the router collects the incoming dialed string digit by digit. As soon as one dial peer is matched, the router immediately places the call using the configured attributes in the matching dial peer. If DID is configured in the inbound POTS dial peer, the router uses the full incoming dial string to match the destination pattern in the outbound dial peer. With DID, the setup message contains all the digits necessary to route the call; no additional digit collection is required. If more than one dial peer matches the dial string, all of the matching dial peers are used to form a rotary group. The router attempts to place the outbound call leg using all of the dial peers in the rotary group until one is successful. Using Default RoutesDefault routes reduce the number of dial peers that must be configured when calls that are not terminated by other dial peers are sent to a central router, usually for forwarding to a PBX. A default route is a dial peer that automatically matches any call that is not terminated by other dial peers. For example, in the following configuration, the destination pattern 8... is a voice default route because all voice calls with a dialed string that starts with 8 followed by at least three additional digits will either match on 8208 or end with 8..., which is the last-resort voice route used by the router if no other dial peer is matched. dial-peer voice 8 pots destination-pattern 8208 port 1/1 ! dial-peer voice 1000 pots destination-pattern 8... port 1/1 A default route could also be defined by using a single wildcard character with the timeout T-indicator in the destination pattern, as shown in the following example: dial-peer voice 1000 voip destination-pattern .T session-target ipv4:10.10.1.2 You should be careful, however, when using the T-indicator for default routes. Remember, when matching dial peers for outbound call legs, the router places the call as soon as it finds the first matching dial peer. The router could match on this dial peer immediately even if there were another dial peer with a more explicit match and a more desirable route.
Additional Features
One Stage and Two Stage DialingWith two-stage dialing, when a voice call enters the network, the originating router collects dialed digits until it can match an outbound dial peer. As soon as the router matches a dial peer, it immediately places the call and forwards the associated dial string. No additional dialed digits are collected. The digits and wildcards that are defined in the destination pattern determine how many digits the originating router collects before matching the dial peer. Any digits dialed after the first dial peer is matched are dropped. For example, if the dialed string is "1234599" and the originating router matches a dial peer with a destination pattern of 123.., then the digits "99" are not collected. The call is placed immediately after the digit "5" is dialed, and the dial string "12345" is forwarded to the next call leg. On the terminating router, the left-justified digits that explicitly match the terminating POTS dial peer are stripped off. Any trailing wildcard digits are considered excess digits. The terminating router forwards these excess digits to the telephony interface. For example, if the dial string "1234599" is matched on a terminating router to a destination pattern of "123..," the digits "4599" are excess digits and are forwarded to the telephony interface. The figure below illustrates how the originating router collects a dial string and the terminating router forwards the digits to the telephony device. The examples in the table below demonstrate how the originating router collects dialed digits for a given destination pattern in the outbound voice-network dial peer.
2 These examples apply only to two-stage dialing, in which the router collects the dialed string digit by digit. If DID is enabled in the inbound POTS dial peer, the router performs one-stage dialing, which means that the full dialed string is used regardless of the destination pattern that is matched.
Direct Inward DialingUnless otherwise configured, when a voice call comes into the router, the router presents a dial tone to the caller and collects digits until it can identify an outbound dial peer. This process is called two-stage dialing . After the outbound dial peer is identified, the router forwards the call through to the destination as configured in the dial peer. The DID feature in dial peers enables the router to use the called number (DNIS) to directly match an outbound dial peer when receiving an inbound call from a POTS interface. When DID is configured on the inbound POTS dial peer, the called number (DNIS) is automatically used to match the destination pattern for the outbound call leg.
You may prefer that the router use the called number (DNIS) to find a dial peer for the outbound call leg--for example, if the switch connecting the call to the router has already collected all the dialed digits. DID enables the router to match the called number to a dial peer and then directly place the outbound call. With DID, the router does not present a dial tone to the caller and does not collect digits; it forwards the call directly to the configured destination. This is called one-stage dialing . The figure below shows a call scenario using DID. In the figure above, the POTS dial peer that matches the incoming called-number has DID configured: dial-peer voice 100 pots incoming called-number 5552020 direct-inward-dial port 0:D The direct-inward-dialcommand in the POTS dial peer tells the gateway to look for a destination pattern in a dial peer that matches the DNIS. For example, if the dialed number is 5552020, the gateway matches the following VoIP dial peer for the outbound call leg: dial-peer voice 101 voip destination-pattern 5552020 session target ipv4:10.1.1.2 The call is made across the IP network to 10.1.1.2, and a match is found in that terminating gateway: dial-peer voice 555 pots destination-pattern 5552020 port 0:D prefix 5274200 This dial peer matches on the dialed number and changes that number to 5274200 with the prefix command. The result is that the user dials a number, gets connected, and never knows that the number reached is different from the number dialed. Configuring Direct Inward Dialing
SUMMARY STEPS
DETAILED STEPS
Hunt GroupsThe router supports the concept of hunt groups, sometimes called rotary groups , in which multiple dial peers are configured with the same destination pattern. Because the destination of each POTS dial peer is a single voice port to a telephony interface, hunt groups help ensure that calls get through even when a specific voice port is busy. If the router is configured to hunt, it can forward a call to another voice port when one voice port is busy. For example, in the following configuration for Router A, four POTS dial peers are configured with different destination patterns. Because each dial peer has a different destination pattern, no backup is available if the voice port mapped to a particular dial peer is busy with another call. With a hunt group, if a voice port is busy, the router hunts for another voice port until it finds one that is available. In the following example for Router B, each dial peer is configured using the same destination pattern of 3000, forming a dial pool to that destination pattern.
To give specific dial peers in the pool a preference over other dial peers, you can configure the preference order for each dial peer by using the preference command. The router attempts to place a call to the dial peer with the highest preference. The configuration example given for Router B shows that all dial peers have the same destination pattern, but different preference orders. The lower the preference number, the higher the priority. The highest priority is given to the dial peer with preference order 0. If the same preference is defined in multiple dial peers with the same destination pattern, a dial peer is selected randomly. By default, dial peers in a hunt group are selected according to the following criteria, in the order listed:
You can change this default selection order or choose different methods for hunting dial peers by using the dial-peer hunt global configuration command. An additional selection criterion is "least recent use," which selects the destination pattern that has waited the longest since being selected. You can mix POTS and voice-network dial peers when creating hunt groups. Mixing dial peer types can be useful if you want incoming calls to be sent over the packet network, except that if network connectivity fails, you want to reroute the calls back through the PBX to the PSTN. This type of configuration is sometimes referred to as hairpinning . Hairpinning is illustrated in the figure below. The following configuration shows an example of sending calls to the PSTN if the IP network fails: dial-peer voice 101 voip destination-pattern 472.... session target ipv4:192.168.100.1 preference 0 ! dial-peer voice 102 pots destination-pattern 472.... prefix 472 port 1/0:1 preference 1 You cannot use the same preference numbers for POTS and voice-network dial peers within a hunt group. You can set a separate preference order for each dial peer type, but the preference order does not work on both at the same time. For example, you can configure preference order 0, 1, and 2 for POTS dial peers, and you can configure preference order 0, 1, and 2 for the voice-network dial peers, but the two preference orders are separate. The system resolves preference orders among POTS dial peers first. Configuring Dial Peer Hunting OptionsDial peer hunting is enabled by default. The purpose of this task is to disable dial peer hunting on an individual dial peer. DETAILED STEPS
Configuring Dial Peer Hunting OptionsUse the no huntstopcommand to enable dial peer hunting if it has been disabled. The purpose of this task is to configure dial peer hunting options for all dial peers. DETAILED STEPS
Modem Pass ThroughLike T.38 Fax Relay and Modem Relay, Modem Pass Through functionality can be enabled and configured on a per-dial peer basis. Modem Pass Through behavior enables you to take advantage of features such as the following:
The figure below illustrates a network featuring Modem Pass Through capability. When a call over the network is identified as a modem call, both the originating and terminating voice gateway routers automatically "roll over" to using the G.711 codec for the duration of the modem call. Once the modem call has ceased, the digital signal processors (DSPs) in both the originating and terminating voice gateways revert to default operation, enabling fax and voice calls to be placed and received using those DSPs. The version of the G.711 codec you use (either a-law or u-law) is determined by the type of network on which your voice gateways are operating and the configuration you specify using the modem passthrough command in dial-peer voice configuration mode. Configuring Modem Pass Through Capability for Individual Dial Peers
SUMMARY STEPS
DETAILED STEPS
Dual Tone Multifrequency RelayDual tone multifrequency (DTMF) tones are generated when a button on a touch-tone phone is pressed. When the tone is generated, it is compressed, transported to the other party, and then decompressed. If a low-bandwidth codec, such as G.729 or G.723, is used without a DTMF relay method, the tone may be distorted during compression and decompression. DTMF relay sends DTMF tones out of band, or separately from the voice stream. Cisco gateways currently support the following methods of DTMF relay:
Cisco H.323 gateways advertise capabilities using the H.245 capabilities messages. By default, they advertise that they can receive all DTMF relay modes. If the capabilities of the remote gateway do not match, the Cisco H.323 gateway sends DTMF tones as in-band voice. Configuring DTMF relay on the Cisco H.323 gateway sets preferences for how the gateway handles DTMF transmission. If multiple methods are configured, the priority is as follows:
In addition to support for NTE, DTMF Relay provides support for asymmetrical payload types. Payload types can differ between local and remote endpoints. Therefore, the Cisco gateway can transmit one payload type value and receive a different payload type value. Configuring DTMF Relay and Payload TypeThe purpose of this task is to configure DTMF Relay capability and the respective payload type for individual dial peers. DETAILED STEPS
Connection PLARYou can configure dial peers on your Cisco voice gateway router to take advantage of one-way and two-way private-line automatic ringdown (PLAR) functionality. By using the connection plar command you can enhance your voice network to offer a number of useful features including the following:
In addition to the features described, connection PLAR behavior does not dedicate bandwidth to a call unless one or the other of the privately associated endpoints goes off-hook.
Configuring Connection PLAR
SUMMARY STEPS
DETAILED STEPS
Connection PLAR Design ConsiderationsTake the following items into consideration when planning to configure Connection PLAR behavior on your VoIP network:
Connection TrunkIn addition to configuring Connection PLAR, you can configure your dial peers to employ the Connection Trunk feature using the connection trunk command. Connection Trunk functionality offers some of the same advantages as Connection PLAR, such as eliminating the need for user dialing because both of the endpoints for the VoIP call are statically configured. In addition, Connection Trunk behavior offers you the ability to pass supplemental call signaling capability like hookflash and point-to-point Hoot-n-Holler between endpoints on the trunk. However, unlike Connection PLAR, Connection Trunk endpoints are always active (or off-hook) as far as the voice network is concerned, so bandwidth is always being allocated to a trunk that you have configured.
Configuring Connection Trunk
SUMMARY STEPS
DETAILED STEPS
Class of RestrictionsThe Class of Restrictions (COR) feature provides the ability to deny certain call attempts based on the incoming and outgoing class of restrictions provisioned on the dial peers. This functionality provides flexibility in network design, allows users to block calls (for example, to 900 numbers), and applies different restrictions to call attempts from different originators. COR is used to specify which incoming dial peer can use which outgoing dial peer to make a call. Each dial peer can be provisioned with an incoming and an outgoing COR list. The incoming COR list indicates the capability of the dial peer to initiate certain classes of calls. The outgoing COR list indicates the capability required for an incoming dial peer to deliver a call via this outgoing dial peer. If the capabilities of the incoming dial peer are not the same or a superset of the capabilities required by the outgoing dial peer, the call cannot be completed using this outgoing dial peer. A typical application of COR is to define a COR name for the number that an outgoing dial peer serves, then define a list that contains only that COR name, and assign that list as corlist outgoing for this outgoing dial peer. For example, dial peer with destination pattern 5T can have a corlist outgoing that contains COR 5x, as shown in the following configuration. The next step, in the typical application, is to determine how many call permission groups are needed, and define a COR list for each group. For example, group A is allowed to call 5x and 6x, and group B is allowed to call 5x, 6x, and 1900x. Then, for each incoming dial peer, we can assign a group for it, which defines what number an incoming dial peer can call. Assigning a group means assigning a corlist incoming to this incoming dial peer. dial-peer cor custom name 5x name 6x name 1900x ! dial-peer cor list listA member 5x member 6x ! dial-peer cor list listB member 5x member 6x member 1900x ! dial-peer cor list list5x member 5x ! dial-peer cor list list6x member 6x ! dial-peer cor list list1900x member 1900x ! outgoing dialpeer 100, 200, 300 dial-peer voice 100 pots destination-pattern 5T corlist outgoing list5x dial-peer voice 200 pots destination-pattern 6T corlist outgoing list6x dial-peer voice 300 pots destination-pattern 1900T corlist outgoing list1900x ! ! incoming dialpeer 400, 500 dial-peer voice 400 pots answer-address 525.... corlist incoming listA dial-peer voice 500 pots answer-address 526 corlist incoming listB
DETAILED STEPS
Verifying Classes of RestrictionsTo check the validity of your classes of restrictions configuration, perform the following tasks:
Router# show dial-peer voice 210
VoiceEncapPeer210
information type = voice,
tag = 210, destination-pattern = `221',
answer-address = `', preference=0,
numbering Type = `unknown'
group = 210, Admin state is up, Operation state is up,
incoming called-number = `221', connections/maximum = 4/unlimited,
DTMF Relay = disabled,
Modem = system passthrough ,
huntstop = disabled,
application associated:
permission :both
incoming COR list:maximum capability
outgoing COR list:minimum requirement
type = pots, prefix = `221',
forward-digits default
session-target = `', voice-port = `1/0/8:D',
direct-inward-dial = enabled,
digit_strip = enabled,
Router# show dial-peer cor
Class of Restriction
name:900block
name:800_call
name:Catchall
COR list <list1>
member:900block
member:800_call
COR list <list2>
member:900block
COR list <list3>
member:900block
member:800_call
member:Catchall
Configuring an iLBC CodecThis section includes the following tasks: Configuring an iLBC Codec on a Dial PeerThe internet Low Bit-rate Codec (iLBC) is intended for packet-based communication. Perform the following steps to configure the iLBC codec on a dial peer. Before You Begin
SUMMARY STEPS
iLBC is supported on the following:
DETAILED STEPS
Configuring an iLBC Codec in the Voice ClassWhen using multiple codecs, you must create a voice class in which you define a selection order for codecs; then, you can apply the voice class to VoIP dial peers. The voice class codec global configuration command allows you to define the voice class that contains the codec selection order. Then, use the voice-class codec dial-peer configuration command to apply the class to individual dial peers. To configure an iLBC codec in the voice class for multiple-codec selection order, perform the following steps. Follow these procedures to create a voice class. For the complete dial-peer configuration procedure, see the Common Practices. You can configure more than one voice class codec list for your network. Configure the codec lists and apply them to one or more dial peers based on which codecs (and the order) you want supported for the dial peers. Define a selection order if you want more than one codec supported for a given dial peer. DETAILED STEPS
Where to Go for Dial Peer Troubleshooting InformationDial peer troubleshooting consists of a vast array of techniques applicable to a variety of dial peer configuration practices. This document does not cover the techniques necessary to effectively troubleshoot potential pitfalls relating to dial peer configuration. Instead, refer to the TAC Web Site at http://www.cisco.com/public/support/tac/technologies.shtml. Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: www.cisco.com/go/trademarks. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1110R) Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental. 1 These examples apply only to one-stage dialing, where direct inward dialing (DID) is enabled on the inbound POTS dial peer. If the router is using two-stage dialing and collecting digits one at a time as dialed, then the call is routed immediately after a dial peer is matched and any subsequent dialed digits are lost. 2 These examples apply only to two-stage dialing, in which the router collects the dialed string digit by digit. If DID is enabled in the inbound POTS dial peer, the router performs one-stage dialing, which means that the full dialed string is used regardless of the destination pattern that is matched. © 2011 Cisco Systems, Inc. All rights reserved.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|