![]() |
Dial Peer Configuration on Voice Gateway Routers, Cisco IOS Release 15M&T
|
Dial Peer Configuration Examples
![]() |
|
Contents
Finding Feature InformationLast Updated: December 3, 2012
Your software release may not support all the features documented in this module. For the latest caveats and feature information, see Bug Search Tool and 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 module. 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. Dial Peer Configuration ExamplesLast Updated: December 3, 2012
This appendix contains a series of configuration examples featuring the minimum required components and critical Cisco IOS command lines extracted from voice gateway configuration files necessary to complete an endpoint-to-endpoint call. Each example is designed to focus on a specific combination of components or configuration concept essential to voice over IP (VoIP) communication. This appendix covers the following topics: Two Analog PhonesThe simplest and most ubiquitous implementation of dial peer configuration involves connecting two standard analog telephones over an IP network. The following two examples illustrate the minimum required configurations necessary to connect two analog phones, where they are attached to the same voice gateway router and where each phone is attached to its own voice gateway router via FXS ports installed in the voice gateway routers in question.
Each Connected to Their Own Voice Gateway Routers Using the G.711 CodecEach Connected to Their Own Voice Gateway Routers Using the G.729r8 CodecVoice Gateway Router 1 Configuration Filevoice class codec 1 codec preference 1 g729r8 codec preference 2 g711ulaw ! voice-port 1/0/0 ! voice-port 1/0/1 ! ! dial-peer voice 1 pots destination-pattern 5551234 port 1/0/0 ! dial-peer voice 2 voip destination-pattern 5555678 voice-class codec 1 session target ipv4:10.5.6.7 Voice Gateway Router 2 Configuration Filevoice class codec 1 codec preference 1 g729r8 codec preference 2 g711ulaw ! voice-port 1/0/0 ! voice-port 1/0/1 ! ! dial-peer voice 1 pots destination-pattern 5555678 port 1/0/0 ! dial-peer voice 2 voip destination-pattern 5551234 voice-class codec 1 session target ipv4:10.2.3.4 Two Fax MachinesOnce the connection between two analog phones over the IP network can be set up, you can then alter the configuration slightly to enable fax communication over the IP network. The figure below illustrates the configuration files necessary to establish T.38 Fax Relay functionality over the IP network. Voice Gateway Router 1 Configuration Fileinterface FastEthernet0/0 ip address 10.21.9.4 255.255.255.0 ! voice-port 1/0/0 ! voice-port 1/0/1 ! dial-peer voice 1 pots destination-pattern 5551234 port 1/0/0 ! dial-peer voice 2 voip destination-pattern 5555678 session target ipv4:10.5.6.7 codec g711ulaw fax protocol t38 ls-redundancy 0 hs-redundancy 0 fallback cisco fax rate voice Voice Gateway Router 2 Configuration Fileinterface FastEthernet0/0 ip address 10.21.7.61 255.255.255.0 ! voice-port 1/0/0 ! voice-port 1/0/1 ! dial-peer voice 1 pots destination-pattern 5555678 port 1/0/0 ! dial-peer voice 2 voip destination-pattern 5551234 voice-class codec 1 session target ipv4:10.2.3.4 codec g711ulaw fax protocol t38 ls-redundancy 0 hs-redundancy 0 fax rate voice An Analog Phone and an IP Phone Connected over an IP NetworkOnce you are able to establish the connection of two analog phones over an IP network, you can then expand the scope of configuration coverage to include an analog phone and an IP phone connected over the IP network. The configuration for each of the voice gateway routers is essentially the same as if you were connecting two analog phones; you will need to ensure that you have allowed for a Cisco CallManager server connection to the appropriate Cisco voice gateway router to accommodate the introduction of the IP phone. Two IP Phones Connected via a Voice over Frame Relay NetworkThe examples thus far in this appendix have described connecting endpoints over an IP network based primarily on Ethernet connections. However, you may find that you must configure a Frame Relay WAN to effectively serve the voice communications demands for your system. The figure below and the subsequent Cisco voice gateway router configuration examples illustrate the dial peer configuration and Frame Relay Cisco IOS commands necessary to enable Frame Relay communication across your IP network. Voice Gateway Router 1 Configuration FileThe configuration for this voice gateway features a Cisco 3620 running Cisco IOS Release 12.2(11)T6. interface Serial0/0 ip address 10.2.1.1 255.0.0.0 encapsulation frame-relay ! voice-port 1/0/0 ! voice-port 1/0/1 ! voice-port 1/1/0 ! voice-port 1/1/1 ! dial-peer cor custom ! dial-peer voice 1 pots destination-pattern 5551234 port 1/0/0 ! dial-peer voice 1000 voip preference 1 destination-pattern 5555678 session target ipv4:10.5.6.7 Voice Gateway Router 2 Configuration FileThe configuration for this voice gateway features a Cisco 3620 running Cisco IOS Release 12.2(15)T. interface Serial0/0 ip address 10.2.3.4 255.0.0.0 encapsulation frame-relay clockrate 2000000 no fair-queue ! voice-port 1/0/0 ! voice-port 1/0/1 ! voice-port 1/1/0 ! voice-port 1/1/1 ! dial-peer cor custom ! dial-peer voice 1 pots destination-pattern 5555678 port 1/0/0 ! dial-peer voice 2000 voip preference 1 destination-pattern 5551234 session target ipv4:10.2.3.4 Using Digit Manipulation to Overcome the Obstacle of an IP Network FailureThe figure below and the subsequent Cisco voice gateway router configuration examples illustrate the dial peer configuration necessary to automatically route an outgoing voice call over the PSTN in the event of a temporary IP network outage. An advantage to this method of setting up and connecting the call over the PSTN (while still originating the transmission from a voice gateway router) is more commonly known as "toll bypass." Voice Gateway Router 1 Configuration FileThe configuration for this voice gateway features a Cisco 3620 running Cisco IOS Release 12.2(15)T. translation-rule 21 Rule 1 ^2 5552 ! translation-rule 11 Rule 1 ^5551 1 ! interface FastEthernet0/0 ip address 10.1.1.2 255.255.255.0 duplex auto speed auto ! voice-port 1/0/0 translate called 11 ! voice-port 1/0/1 ! voice-port 1/1/0 ! voice-port 1/1/1 ! dial-peer cor custom ! dial-peer voice 1 pots destination-pattern 1000 port 1/1/0 ! dial-peer voice 2000 voip preference 1 destination-pattern 2000 session target ipv4:10.1.1.3 ! dial-peer voice 20 pots preference 2 destination-pattern 2000 translate-outgoing called 21 port 1/0/0 forward-digits all Voice Gateway Router 2 Configuration FileThe configuration for this voice gateway features a Cisco 3620 running Cisco IOS Release 12.2(11)T6. translation-rule 11 Rule 1 ^1 5551 ! translation-rule 21 Rule 1 ^5552 2 ! interface Ethernet0/0 ip address 10.1.1.3 255.255.255.0 full-duplex ! voice-port 1/0/0 ! voice-port 1/0/1 ! voice-port 1/1/0 translate called 21 ! voice-port 1/1/1 ! dial-peer cor custom ! dial-peer voice 1 pots destination-pattern 2000 port 1/0/0 ! dial-peer voice 1000 voip preference 1 destination-pattern 1000 session target ipv4:10.1.1.2 ! dial-peer voice 10 pots preference 2 destination-pattern 1000 translate-outgoing called 11 port 1/1/0 forward-digits all Last Updated: December 3, 2012
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. © 2012 Cisco Systems, Inc. All rights reserved.
|
|
|
|