Presentation is loading. Please wait.

Presentation is loading. Please wait.

© 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-1 Gateway Deployments Implementing H.323 Gateways.

Similar presentations


Presentation on theme: "© 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-1 Gateway Deployments Implementing H.323 Gateways."— Presentation transcript:

1 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-1 Gateway Deployments Implementing H.323 Gateways

2 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-2 Overview of H.323 Gateways H.323 gateways perform these services: Translation between audio, video, and data formats Conversion between call setup signals and procedures Conversion between communication control signals and procedures

3 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-3 H.323 Call Flow H.323 Gateway PSTN Bearer or Media RTP Stream Setup Connect Signaling Call Proceeding Alerting Signaling Release Complete

4 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-4 Why H.323? Advantages of H.323 gateways: Dial plan can be configured directly on the gateway. Translations can be defined per gateway. Regional conditions can be met within multisite deployments. Call routing configuration can be more specific than on Cisco CallManager. There is no need for extra SRST-related call routing configuration. There is no dependency on the Cisco Unified CallManager version. More voice interface types are supported. ISDN NFAS is supported. Fax support is advanced. Call preservation was enhanced for PRI calls since Cisco IOS Software Release 12.4(9)T.

5 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-5 Example: Regional Requirements Calling party: Type: international U.S. Gateway Germany Gateway I’ve got an external call. To call back, I need to dial I’ve got an external call. To call back, I need to dial Calling Mel in the United States. Translate calling and route to destination. MelMax Calling Max in Germany. Translate calling and route to destination Madrid

6 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-6 h323-gateway voip bind srcaddr ip-address router(config-if)# Sets the IP address that is used as H.323 signaling source H.323 Commands (Cont.) Configuring a router interface as a gateway:

7 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-7 dtmf-relay router(config-dial-peer)# Specifies how DTMF tones are forwarded rtp payload-type type router(config-dial-peer)# Identifies the payload type of an RTP packet H.323 Commands (Cont.) Configuring a DTMF relay:

8 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-8 voice class codec tag router(config)# Enters voice class codec configuration mode and assigns an identification tag H.323 Commands (Cont.) Configuring voice classes voice class type router(config)# Enters voice class configuration mode for special voice classes like H.323 and assigns an identification tag

9 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-9 H.323 Commands (Cont.) Configuring codecs voice-class type tag router(config-dial-peer)# Specifies the voice class parameters voice class to be used codec router(config-dial-peer)# Specifies the single codec used codec preference codec-type [bytes payload-size] router(config-class)# Adds a codec to the class and defines its preference

10 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-10 H.323 Commands (Cont.) Tuning H.323 timers: h225 timeout tcp call-idle value minutes router(conf-voi-serv)# Defines the H.323 TCP call-idle timeout value h225 timeout setup seconds router(conf-voi-serv)# Defines the H.323 setup timeout value h225 timeout tcp establish seconds router(config-class)# Defines the H.323 TCP establish timeout value

11 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-11 Integrating H.323 Gateways with Cisco Unified CallManager Perform at least these steps to integrate an H.323 voice gateway into Cisco Unified CallManager: 1.Make sure that H.323 is enabled and specify the H.323 source address on the voice gateway. 2.Configure POTS and VoIP dial peer on the gateway. 3.Add a new gateway on Cisco Unified CallManager. 4.Configure the IP address and device pool for the gateway on Cisco Unified CallManager. 5.Add a new route pattern pointing to the gateway on Cisco Unified CallManager.

12 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-12 Phone Phone Integrating H.323 Gateways with Cisco Unified CallManager: Enable H.323 PSTN Router1 H.323 voice service voip h323 ccm-compatible no shutdown ! interface FastEthernet0/0 ip address h323-gateway voip bind srcaddr no shutdown

13 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-13 Phone Phone Integrating H.323 Gateways with Cisco Unified CallManager: Define the POTS Dial Peer PSTN Router1 H.323 dial-peer voice 9 pots destination-pattern 9T incoming called-number 2... direct-inward-dial port 1/0:23

14 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-14 Phone Phone Integrating H.323 Gateways with Cisco Unified CallManager: Add the First VoIP Dial Peer PSTN Router1 H.323 voice class h323 1 h225 timeout tcp establish 3 ! dial-peer voice 21 voip preference 1 destination-pattern 2... voice-class h323 1 session target ipv4: incoming called-number 9 codec g711alaw

15 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-15 Phone Phone Integrating H.323 Gateways with Cisco Unified CallManager: Add the Second VoIP Dial Peer PSTN Router1 H.323 dial-peer voice 22 voip preference 2 destination-pattern 2... voice-class h323 1 session target ipv4: incoming called-number 9 codec g711alaw

16 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-16 PSTN Router1 H.323 Integrating H.323 Gateways with Cisco Unified CallManager: Add the Gateway Phone Phone

17 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-17 PSTN Router1 H.323 Integrating H.323 Gateways with Cisco Unified CallManager: Configure Parameters Phone Phone

18 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-18 PSTN Router1 H.323 Integrating H.323 Gateways with Cisco Unified CallManager: Define the Route Pattern Phone Phone

19 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-19 show dial-peer voice tag router# Displays detailed information about the specified dial peer show dial-peer voice summary router# Displays a summary of all active dial peers Verifying an H.323 Integration with Cisco Unified CallManager Dial-peer show and debug commands: debug voip dialpeer router# Displays default debug output for all active VoIP dial peers

20 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-20 Verifying an H.323 Integration with Cisco Unified CallManager (Cont.) H.323 debug commands: debug h225 asn1 router# Displays ASN.1 content of H.225 messages on the router debug h225 q931 router# Displays H.225 Q931 information element details debug h245 events router# Displays H.245 events on the router

21 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-21 Summary H.323 gateways are used to interconnect H.323 VoIP networks to networks that are using different signaling and/or bearer types. An H.323 call flow consists of signaling and transmission of bearer and media packets. H.323 allows extremely flexible decentralized call processing and call handling. When implementing H.323 gateways, also consider DTMF and fax. To configure an H.323 gateway, you must define at least the H.323 voice service, voice ports, and VoIP and POTS dial peers.

22 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-22 Summary (Cont.) To integrate an H.323 gateway into Cisco Unified CallManager, at least a new gateway and a route pattern. To verify the Cisco Unified CallManager integration of a gateway, there are useful show and debug commands available on Cisco IOS voice gateways.

23 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-23

24 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-24 Gateway Deployments Implementing MGCP Gateways

25 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-25 Overview of MGCP Gateways Call processing is done by a call agent such as Cisco Unified CallManager. MGCP gateways translate voice streams between audio signals and the IP packet network. Configuration commands for MGCP define this information: –The path between the call agent and the gateway –The type of gateway –The type of calls handled by the gateway

26 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-26 Overview of MGCP Gateways (Cont.) MGCP uses endpoints and connections to construct a call. –Endpoints: Sources of or destinations for data Physical or logical locations in a device –Connections: Point-to-point Multipoint MGCP uses UDP for establishing audio connections over IP networks.

27 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-27 MGCP Call Flow MGCP Gateway RQNT PSTN Signaling Bearer or Media RTP Stream RQNT Response NTFY CRCX CRCX Response MDCX MDCX Response NTFY DLCX DLCX Response Signaling

28 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-28 Why MGCP? Advantages of MGCP gateways: Centralized dial plan configuration on the Cisco Unified CallManager Centralized gateway configuration on the Cisco Unified CallManager Simple Cisco IOS gateway configuration Supports QSIG supplementary services with Cisco Unified CallManager

29 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-29 Why MGCP? (Cont.) H.323 versus MGCP gateways: H.323MGCP Pros Dial plan directly on the gateway Translations defined per gateway Regional requirements can be met More specific call routing Advanced fax support Centralized dial-plan configuration Centralized gateway configuration Simple gateway configuration Easy implementation Support of QSIG supplementary services Cons Complex configuration Extra SRST-related call routing configuration

30 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-30 MGCP Configuration Considerations TFTP Server on Cisco Unified CallManager Cisco Unified CallManager Administration MGCP Gateway Configuration is done via the web-based Cisco Unified CallManager Administration page. The MGCP gateway downloads the configuration from the Cisco Unified CallManager TFTP server.

31 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-31 ccm-manager config server ip-address Router(config)# Identifies the server from which the MGCP configuration should be downloaded ccm-manager config router(config)# Enables the MGCP configuration download from the configured server Basic MGCP Configuration Configuring The MGCP configuration server:

32 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-32 Basic MGCP Configuration (Cont.) ccm-manager config server ccm-manager config ccm-manager mgcp ccm-manager music-on-hold ccm-manager config server ccm-manager config ! mgcp mgcp call-agent service-type mgcp version 0.1 mgcp dtmf-relay voip codec all mode out-of-band mgcp rtp unreachable timeout 1000 action notify mgcp modem passthrough voip mode nse mgcp package-capability rtp-package no mgcp package-capability res-package mgcp package-capability sst-package no mgcp package-capability fxr-package mgcp package-capability pre-package no mgcp timer receive-rtcp mgcp sdp simple mgcp rtp payload-type g726r16 static ! mgcp profile default Manually configured Configuration after TFTP download

33 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-33 mgcp Router(config)# Enables the MGCP protocol mgcp call-agent ip-address router(config)# Specifies the primary Cisco Unified CallManager MGCP Commands Enable MGCP and define the MGCP call agent: ccm-manager mgcp router(config)# Enables the MGCP gateway to support Cisco Unified CallManager

34 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-34 ccm-manager redundant-host ip-address Router(config)# Identifies up to two backup Cisco Unified CallManager servers ccm-manager switchback mode router(config)# Configures switchback mode for returning control to the primary Cisco Unified CallManager MGCP Commands (Cont.) Configuring MGCP redundancy: ccm-manager fallback-mgcp router(config)# Enables the MGCP fallback feature

35 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-35 ccm-manager music-on-hold Router(config)# Enables music-on-hold ccm-manager music-on-hold bind interface router(config)# Binds the multicast MOH feature to a designated interface MGCP Commands (Cont.) Configuring MOH and DTMF: mgcp dtmf-relay voip codec {all | low-bit-rate} mode {cisco | nse | out-of-band} Router(config)# Defines DTMF relay parameters

36 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-36 Integrating MGCP Gateways with Cisco Unified CallManager Perform at least these steps to integrate an MGCP-controlled voice gateway into Cisco Unified CallManager: 1.Add a new MGCP gateway on Cisco Unified CallManager. 2.Configure the device hardware on Cisco Unified CallManager. 3.Configure the ports on Cisco Unified CallManager. 4.Add a new route pattern pointing to the gateway on Cisco Unified CallManager. 5.Enable MGCP and define the Cisco Unified CallManager as the call agent on the voice gateway.

37 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-37 PSTN Router1 MGCP Integrating MGCP Gateways with Cisco Unified CallManager: Add the Gateway Phone Phone

38 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-38 PSTN Router1 MGCP Integrating MGCP Gateways with Cisco Unified CallManager: Configure the Device Phone Phone

39 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-39 PSTN Router1 MGCP Integrating MGCP Gateways with Cisco Unified CallManager: Configure the Port Phone Phone

40 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-40 PSTN Router1 MGCP Integrating MGCP Gateways with Cisco Unified CallManager: Define the Route Pattern Phone Phone

41 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-41 Phone Phone Integrating MGCP Gateways with Cisco Unified CallManager: Enable MGCP PSTN Router1 MGCP ccm-manager config server ccm-manager config

42 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-42 show mgcp Router# Displays the MGCP settings on the gateway show ccm-manager router# Displays the Cisco Unified CallManager failover options Verifying an MGCP Integration with Cisco Unified CallManager MGCP show commands: show ccm-manager fallback-mgcp router# Displays whether MGCP fallback is enabled and whether it is active or not (on or off)

43 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-43 show mgcp endpoint Router# Displays endpoints controlled by MGCP show isdn status router# Displays information about the status of ISDN Layers 1 to 3 Verifying an MGCP Integration with Cisco Unified CallManager (Cont.) MGCP show commands (Cont.):

44 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-44 Summary Within an MGCP environment, call routing is done on Cisco Unified CallManager. Within an MGCP environment, MGCP signaling is done between Cisco Unified CallManager and the gateway while RTP traffic is transferred between the phone and the gateway. MGCP simplifies and centralizes configuration. The MGCP configuration is downloaded from the Cisco Unified CallManager TFTP server by the gateway. There are several MGCP commands available on Cisco IOS gateways.

45 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-45 Summary (Cont.) To integrate an MGCP gateway into Cisco Unified CallManager, you must configure the device settings on the Cisco Unified CallManager. You use show commands to view the MGCP status on Cisco IOS gateways.

46 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-46

47 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-47 Dial Plans on Cisco IOS Gateways Implementing Dial Plans

48 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-48 PSTN Dial Plan Requirements PSTN RequirementsDial Plan Components Inbound call routing Call routing and path selection for inbound PSTN dial peer to outbound VoIP or local dial peer Digit manipulation to transform inbound DNIS to endpoints Outbound call routing Call routing and path selection for inbound VoIP or local dial peer to outbound PSTN dial peer Digit manipulation to transform outbound DNIS to PSTN requirements Correct ANI presentation Digit manipulation to transform ANI to meet PSTN requirements

49 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-49 Inbound PSTN Calls PSTN Phone Phone User dials Call setup from PSTN: DNIS H.323 Gateway DID XXX H.323 call setup: DNIS Phone1-1 rings Gateway modifies DNIS to 2001 and routes to CallManager. 3

50 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-50 Outbound PSTN Calls PSTN Phone Phone PSTN phone rings. Call setup: DNIS ANI´ H.323 Gateway DID: XXX H.323 call setup: DNIS ANI User dials Gateway modifies DNIS and ANI. 3

51 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-51 ISDN Dial Plan Requirements ISDN RequirementsDial Plan Components Correct PSTN inbound ANI presentation depending on TON Digit manipulation to transform inbound PSTN ANI according to TON Correct ISDN numbering plan and TON presentation Manipulate ISDN numbering plan or TON to meet PSTN/PBX requirements

52 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-52 Inbound ISDN Calls PSTN Phone Phone User dials San Jose DID range: XXX Call setup from PSTN: ANI TON National 2 H.323 Gateway CM H.323 call setup: ANI Phone1-1 rings. ANI Gateway prepends 91 to ANI due to TON. 3

53 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-53 Digit Manipulation Various mechanisms for digit manipulations: Simple digit manipulation to strip off or prefix digits for POTS dial peers: –digit-strip –forward-digits –prefix –clid Number expansion to globally inflate or deflate numbers: –num-exp –Typically used for short dials and site codes Voice translation rules and profiles: –Powerful and complex digit manipulation using regular expressions

54 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-54 Digit Manipulation (Cont.) 1.Inbound voice port digit manipulation 2.Global number expansion 3.Match inbound dial peer 4.Voice translation profile 5.CLID Inbound dial peer match Outbound dial peer match 1.Match outbound dial peer 2.Voice translation profile 3.CLID 1.Match outbound dial peer 2.Voice translation profile 3.Digit strip 4.Prefix 5.Forward digits 6.CLID 1.Global voice translation profiles 2.Global number expansion 3.Match inbound dial peer 4.CLID 5.Voice translation profile POTS VoIP

55 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-55 Simple Digit Manipulation for POTS Dial Peers PSTN Phone CommandDNIS no digit-strip digit-strip (default) forward-digits prefix 9 and digit-strip dial-peer voice 9 pots destination 9T H.323 Gateway DID: XXX User dials

56 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-56 Digit Manipulation with Number Expansion PSTN Phone num-exp dial-peer voice 9 pots destination 9T H.323 Gateway DID: XXX User dials Number is inflated to and routed to PSTN. Phone rings. 123

57 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-57 Voice Translation Rules and Profiles Voice translation rules define up to 15 sub rules to manipulate digits, TONs, and numbering plans. Voice translation profiles reference up to three rules: –Called: Translation rule for the called number –Calling: Translation rule for the calling number –Redirect-called: Translation rule for the redirect number Voice translation profiles can be referenced by: –Dial peers, voice ports, any inbound VoIP call, specific range of source IP addresses in VoIP calls, trunk groups, NFAS controllers, or SRST

58 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-58 Profile Voice Translation Rules and Profiles (Cont.) CalledRule Rule Rule Calling Redirected Called Incoming Outgoing Dial Peer Voice Port VoIP Incoming Source IP Group Trunk Group NFAS SRST

59 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-59 Voice Translation Rules and Profiles (Cont.) CharDescription ^Match the expression at the start of a line. $Match the expression at the end of the line. / Delimiter that marks the start and end of both the matching and replacement strings. \Escape the special meaning of the next character. -Indicates a range when not in the first or last position. Used with the'[' and ']'. [list]Match a single character in a list. [^list]Do not match a single character specified in the list..Match any single character. *Repeat the previous regular expression zero or more times. +Repeat the previous regular expression one or more times. ? Repeat the previous regular expression zero or one time (use CTRL-V in order to enter in IOS). \(\)Groups regular expressions. Use \1-9 to refer to matched groups. &Match the substring (matched string). Can also use \0.

60 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-60 Voice Translation Rule Search-and-Replace Examples RuleInput StringOutput String /^9/ // /^2001/ /3001/ /^[23]…/ /4000/2025 or /^2…/ /801&/ /^2…/ /801\0/ /.*/ /91&/ type national national type national type national

61 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-61 Voice Translation Rule Search-and-Replace Examples (Cont.) \(9\)\([^10].*\)\1\ //// Search Replace OutputInput Translation Rule: /\(9\)\([^10].*\)/ /\11408\2/

62 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-62 Voice Translation Profile Example: Search and Replace PSTN-IN CalledRule 1 Rule 2 Calling Redirected Called 1/^ / /2/ 1/^.*/ /9&/ type subscriber scubscriber 2/^.*/ /91&/ type national national 3/^.*/ /9011&/ type international international voice translation-rule 1 rule 1 /^ / /2/ voice translation-rule 2 rule 1 /^.*/ /9&/ type subscriber subscriber rule 2 /^.*/ /91&/ type national national rule 3 /^.*/ /9011&/ type international international voice translation-profile pstn-in translate called 1 translate calling 2

63 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-63 Cisco Unified CallManager Express with Voice Translation Profiles PSTN voice translation-rule 1 rule 1 /^ / /2/ voice translation-profile pstn-in translate called 1 voice-port 0/0/0:23 translation-profile incoming pstn-in dial-peer voice 2001 pots port 1/0/0 destination-pattern Phone rings. Profile modifies DNIS to User dials Replaces the dial plan pattern and covers inbound and outbound routing of any dial peers. FXS Phone CME DID: XXX

64 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-64 digit-strip router(config-dial-peer)# Enables stripping of matched digits (default) prefix digits router(config-dial-peer)# Prefixes the specified digits after the pattern has matched forward-digits [0-32]|all|extra router(config-dial-peer)# Specifies how many digits to forward, right-justified Digit Manipulation Commands

65 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-65 num-exp dialed-digits substitution router(config)# Matches on dialed digits and replaces them (wildcards allowed) voice translation-rule rule-tag router(config)# Creates or modifies a voice translation rule with the specified numeric tag rule precedence /match/ /replace/ [type {match-type replace-type} [plan {match-plan replace-plan}]] router(cfg-translation-rule)# Creates a match-and-replace rule Digit Manipulation Commands (Cont.)

66 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-66 Digit Manipulation Commands (Cont.) voice translation-profile profile-name router(config)# Creates or modifies a voice translation profile with the specified name translate {called | calling | redirect-called} translation-rule-number router(cfg-translation-profile)# Binds a translation rule to a profile

67 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-67 Digit Manipulation Commands (Cont.) translation-profile {incoming | outgoing} name router(dial-peer)# Binds a translation profile to a dial peer test voice translation-rule number input-test-string [type match-type [plan match-plan] ] router# Tests a translation rule with a user-defined test string

68 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-68 destination-pattern [+]string[T] router(config-dial-peer)# Defines the destination pattern of a dial peer that will be used during outbound dial-peer matching incoming called-number [+]string[T] router(config-dial-peer)# Specifies the incoming called number that will be used during inbound dial-peer matching answer-address [+]string[T] router(config-dial-peer)# Specifies the incoming calling number will be used during inbound dial-peer matching Call Routing and Path Selection Commands

69 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-69 direct-inward-dial router(config-dial-peer)# Uses the inbound POTS DNIS to match the outbound dial peer (usually required for any DID PSTN trunk) Call Routing and Path Selection Commands (Cont.) preference [0-9] router(config-dial-peer)# Specifies the preference of a dial peer; lower number = high priority default=0 no dial-peer outbound status-check pots router(config)# Disables status checking of outbound POTS dial peers during call setup; always includes dial peer in call routing, even if POTS status is down; and useful for some ISDN links

70 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-70 Configuring PSTN Dial Plans 1.Configure digit manipulation for inbound calls. 2.Define dial peers. 3.Configure inbound dial-peer matching. 4.Configure digit manipulation for outbound calls. 5.Configure digit manipulation for intersite calls.

71 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-71 PSTN Dial Plan Scenario PSTNIP WAN Phone Phone Phone Phone San Jose Chicago Router1 H.323 Router3 CME CM1: CM2: Users should be able to reach the other site via an extension. DID: XXXX DID: XXXX

72 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-72 Step 1: Configure Digit Manipulation for Inbound Calls Router1 H.323 Router3 CME voice translation-rule 1 rule 1 /^ / /2/ voice translation-rule 2 rule 1 /^.*/ /9&/ type subscriber subscriber rule 2 /^.*/ /91&/ type national national rule 2 /^.*/ /9011&/ type international international voice translation-profile pstn-in translate called 1 translate calling 2 voice-port 0/0/0:23 translation-profile incoming pstn-in voice translation-rule 1 rule 1 /^ / /3/ voice translation-rule 2 rule 1 /^.*/ /9&/ type subscriber subscriber rule 2 /^.*/ /91&/ type national national rule 2 /^.*/ /9011&/ type international international voice translation-profile pstn-in translate called 1 translate calling 2 voice-port 0/0/0:23 translation-profile incoming pstn-in

73 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-73 Step 2: Define Dial Peers Router1 H.323 Router3 CME dial-peer voice 9 pots destination-pattern 9T direct-inward-dial port 0/0/0:23 dial-peer voice 9 pots destination-pattern 9T direct-inward-dial port 0/0/0:23 dial-peer voice 20 voip destination-pattern 2... session-target ipv4: codec g711ulaw dial-peer voice 21 voip preference 1 destination-pattern 2... session-target ipv4: codec g711ulaw

74 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-74 Step 3: Configure Inbound Dial-Peer Matching Router1 H.323 Router3 CME dial-peer voice 9 pots destination-pattern 9T incoming called-number 2... direct-inward-dial port 0/0/0:23 dial-peer voice 20 voip answer-address 2... destination-patter 2... session-target ipv4: codec g711ulaw dial-peer voice 21 voip answer-address 2... preference 1 destination-patter 2... session-target ipv4: codec g711ulaw dial-peer voice 9 pots destination-pattern 9T incoming called-number 3... direct-inward-dial port 0/0/0:23

75 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-75 Step 4: Configure Digit Manipulation for Outbound Calls Router1 H.323 Router3 CME voice translation-rule 3 rule 1 /^2/ / / voice translation-profile pstn-out translate calling 3 voice-port 0/0/0:23 translation-profile outgoing pstn- out voice translation-rule 3 rule 1 /^3/ / / voice translation-profile pstn-out translate calling 3 voice-port 0/0/0:23 translation-profile outgoing pstn- out

76 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-76 Step 5: Configure Digit Manipulation for Intersite Calls Router1 H.323 Router3 CME num-exp num-exp

77 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-77 Inbound PSTN Call Flow PSTN H.323 Gateway DID: XXX dial-peer voice 9 pots destination-pattern 9T incoming called-number 2... direct-inward-dial port 0/0/0:23 voice-port 0/0/0:23 translation-profile incoming pstn-in dial-peer voice 20 voip answer-address 2... destination-patter 2... session-target ipv4: codec g711ulaw ANI DNIS OutgoingIncoming ANI DNIS OutgoingIncoming ANI DNIS OutgoingIncoming

78 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-78 Outbound PSTN Call Flow PSTN H.323 Gateway DID: XXX dial-peer voice 9 pots destination-pattern 9T incoming called-number 2... direct-inward-dial port 0/0/0:23 dial-peer voice 20 voip answer-address 2... destination-patter 2... session-target ipv4: codec g711ulaw voice-port 0/0/0:23 translation-profile outgoing pstn-out ANI DNIS OutgoingIncoming ANI DNIS OutgoingIncoming ANI DNIS OutgoingIncoming

79 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-79 Verifying PSTN Dial Plans show dialpeer voice summary router# Router1#show dial-peer voice summary dial-peer hunt 0 AD PRE PASS OUT TAG TYPE MIN OPER PREFIX DEST-PATTERN FER THRU SESS-TARGET STAT PORT 9 pots up up 9T 0 up 1/0:23 20 voip up up syst ipv4: voip up up syst ipv4: Displays a summary of all dial peers Destination Pattern Preference Voice PortSession Target Administrative and Operational State

80 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-80 Verifying PSTN Dial Plans (Cont.) debug isdn q931 router# Debugs ISDN Layer 3 information, which includes DNIS and ANI information debug voip dialpeer router# Debugs dial-peer matching debug voice translation router# Debugs voice-translation-rule operation

81 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-81 Summary Interworking with the PSTN requires appropriate call routing and digit manipulation. Digit manipulation based on a TON and numbering plan is required for ISDN networks. Voice translation profiles are powerful tools for digit manipulation but sometimes can be replaced by more simple mechanisms. Voice translation profiles consist of voice translation rules that use regular expressions for match and replace. Voice translation profiles can be used to work around issues with the dialplan-pattern command. Voice translation rules are configured to be used within voice translation profiles.

82 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-82 Summary (Cont.) Call routing and path selection are configured using dial peers. Configuring a PSTN dial plan includes configuration of digit manipulation, inbound dial peers, inbound dial-peer matching and outbound dial-peer matching. Verify correct dial-peer matching and digit manipulation using show and debug commands.

83 © 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-83


Download ppt "© 2006 Cisco Systems, Inc. All rights reserved. BSCI v3.0—6-1 Gateway Deployments Implementing H.323 Gateways."

Similar presentations


Ads by Google