850 likes | 1.11k Views
Gateway Deployments. Implementing H.323 Gateways. 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. PSTN.
E N D
Gateway Deployments Implementing H.323 Gateways
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
PSTN Setup Call Proceeding Alerting Connect RTP Stream Release Complete Signaling H.323 Call Flow H.323 Gateway Signaling Bearer or Media
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.
Germany Gateway Example: Regional Requirements Calling party: 43917216111Type: international 1 Calling Mel in the United States. Calling Max in Germany. 2 Madrid 5 I’ve got an external call. To call back, I need to dial 901143917216111. I’ve got an external call. To call back, I need to dial 00043917216111. 4 7 U.S. Gateway Translate calling and route to destination. Translate calling and route to destination. 3 6 Mel Max
H.323 Commands (Cont.) • Configuring a router interface as a gateway: router(config-if)# h323-gateway voip bind srcaddr ip-address • Sets the IP address that is used as H.323 signaling source
H.323 Commands (Cont.) • Configuring a DTMF relay: router(config-dial-peer)# dtmf-relay • Specifies how DTMF tones are forwarded router(config-dial-peer)# rtp payload-type type • Identifies the payload type of an RTP packet
H.323 Commands (Cont.) • Configuring voice classes router(config)# voice class codec tag • Enters voice class codec configuration mode and assigns an identification tag router(config)# voice class type • Enters voice class configuration mode for special voice classes like H.323 and assigns an identification tag
H.323 Commands (Cont.) • Configuring codecs router(config-class)# codec preference codec-type [bytes payload-size] • Adds a codec to the class and defines its preference router(config-dial-peer)# codec codec • Specifies the single codec used router(config-dial-peer)# voice-class typetag • Specifies the voice class parameters voice class to be used
H.323 Commands (Cont.) • Tuning H.323 timers: router(conf-voi-serv)# h225 timeout setup seconds • Defines the H.323 setup timeout value router(config-class)# h225 timeout tcp establish seconds • Defines the H.323 TCP establish timeout value router(conf-voi-serv)# h225 timeout tcp call-idle value minutes • Defines the H.323 TCP call-idle timeout value
Integrating H.323 Gateways with Cisco Unified CallManager • Perform at least these steps to integrate an H.323 voice gateway into Cisco Unified CallManager: • Make sure that H.323 is enabled and specify the H.323 source address on the voice gateway. • Configure POTS and VoIP dial peer on the gateway. • Add a new gateway on Cisco Unified CallManager. • Configure the IP address and device pool for the gateway on Cisco Unified CallManager. • Add a new route pattern pointing to the gateway on Cisco Unified CallManager.
PSTN Router1 H.323 Phone1-1 2001 Phone1-2 2002 Integrating H.323 Gateways with Cisco Unified CallManager: Enable H.323 voice service voip h323 ccm-compatible no shutdown ! interface FastEthernet0/0 ip address 10.1.1.1 255.255.255.0 h323-gateway voip bind srcaddr 10.1.1.1 no shutdown
PSTN Router1 H.323 Phone1-1 2001 Phone1-2 2002 Integrating H.323 Gateways with Cisco Unified CallManager: Define the POTS Dial Peer dial-peer voice 9 pots destination-pattern 9T incoming called-number 2... direct-inward-dial port 1/0:23
PSTN Router1 H.323 Phone1-1 2001 Phone1-2 2002 Integrating H.323 Gateways with Cisco Unified CallManager: Add the First VoIP Dial Peer 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:10.1.1.2 incoming called-number 9 codec g711alaw
PSTN Router1 H.323 Phone1-1 2001 Phone1-2 2002 Integrating H.323 Gateways with Cisco Unified CallManager: Add the Second VoIP Dial Peer dial-peer voice 22 voip preference 2 destination-pattern 2... voice-class h323 1 session target ipv4:10.1.1.3 incoming called-number 9 codec g711alaw
PSTN Router1 H.323 Phone1-1 2001 Phone1-2 2002 Integrating H.323 Gateways with Cisco Unified CallManager: Add the Gateway
PSTN Router1 H.323 Phone1-1 2001 Phone1-2 2002 Integrating H.323 Gateways with Cisco Unified CallManager: Configure Parameters
PSTN Router1 H.323 Phone1-1 2001 Phone1-2 2002 Integrating H.323 Gateways with Cisco Unified CallManager: Define the Route Pattern
Verifying an H.323 Integration with Cisco Unified CallManager • Dial-peer show and debug commands: router# show dial-peer voice tag • Displays detailed information about the specified dial peer router# show dial-peer voice summary • Displays a summary of all active dial peers router# debug voip dialpeer • Displays default debug output for all active VoIP dial peers
Verifying an H.323 Integration with Cisco Unified CallManager (Cont.) • H.323 debug commands: router# debug h225 asn1 • Displays ASN.1 content of H.225 messages on the router router# debug h225 q931 • Displays H.225 Q931 information element details router# debug h245 events • Displays H.245 events on the router
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.
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.
Gateway Deployments Implementing MGCP Gateways
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
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.
PSTN MDCX CRCX Response DLCX Response RQNT Response CRCX NTFY RQNT DLCX NTFY MDCX Response RTP Stream MGCP Call Flow MGCP Gateway Signaling Bearer or Media Signaling
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
Why MGCP? (Cont.) • H.323 versus MGCP gateways:
MGCP Configuration Considerations The MGCP gateway downloads the configuration from the Cisco Unified CallManager TFTP server. Cisco Unified CallManagerAdministration Configuration is done via the web-based Cisco Unified CallManager Administration page. TFTP Server onCisco Unified CallManager MGCPGateway
Basic MGCP Configuration • Configuring The MGCP configuration server: Router(config)# ccm-manager config server ip-address • Identifies the server from which the MGCP configuration should be downloaded router(config)# ccm-manager config • Enables the MGCP configuration download from the configured server
Basic MGCP Configuration (Cont.) ccm-manager config server 192.168.1.1 ccm-manager config ccm-manager mgcp ccm-manager music-on-hold ccm-manager config server 192.168.1.1 ccm-manager config ! mgcp mgcp call-agent 192.168.1.1 2427 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
MGCP Commands • Enable MGCP and define the MGCP call agent: Router(config)# mgcp • Enables the MGCP protocol router(config)# mgcp call-agent ip-address • Specifies the primary Cisco Unified CallManager router(config)# ccm-manager mgcp • Enables the MGCP gateway to support Cisco Unified CallManager
MGCP Commands (Cont.) • Configuring MGCP redundancy: Router(config)# ccm-manager redundant-host ip-address • Identifies up to two backup Cisco Unified CallManager servers router(config)# ccm-manager switchback mode • Configures switchback mode for returning control to the primary Cisco Unified CallManager router(config)# ccm-manager fallback-mgcp • Enables the MGCP fallback feature
MGCP Commands (Cont.) • Configuring MOH and DTMF: Router(config)# ccm-manager music-on-hold • Enables music-on-hold router(config)# ccm-manager music-on-hold bind interface • Binds the multicast MOH feature to a designated interface Router(config)# mgcp dtmf-relay voip codec {all | low-bit-rate} mode {cisco | nse | out-of-band} • Defines DTMF relay parameters
Integrating MGCP Gateways with Cisco Unified CallManager • Perform at least these steps to integrate an MGCP-controlled voice gateway into Cisco Unified CallManager: • Add a new MGCP gateway on Cisco Unified CallManager. • Configure the device hardware on Cisco Unified CallManager. • Configure the ports on Cisco Unified CallManager. • Add a new route pattern pointing to the gateway on Cisco Unified CallManager. • Enable MGCP and define the Cisco Unified CallManager as the call agent on the voice gateway.
PSTN Router1 MGCP Phone1-1 2001 Phone1-2 2002 Integrating MGCP Gateways with Cisco Unified CallManager: Add the Gateway
PSTN Router1 MGCP Phone1-1 2001 Phone1-2 2002 Integrating MGCP Gateways with Cisco Unified CallManager: Configure the Device
PSTN Router1 MGCP Phone1-1 2001 Phone1-2 2002 Integrating MGCP Gateways with Cisco Unified CallManager: Configure the Port
PSTN Router1 MGCP Phone1-1 2001 Phone1-2 2002 Integrating MGCP Gateways with Cisco Unified CallManager: Define the Route Pattern
PSTN Router1 MGCP Phone1-1 2001 Phone1-2 2002 Integrating MGCP Gateways with Cisco Unified CallManager: Enable MGCP ccm-manager config server 10.1.1.1 ccm-manager config
Verifying an MGCP Integration with Cisco Unified CallManager • MGCP show commands: Router# show mgcp • Displays the MGCP settings on the gateway router# show ccm-manager • Displays the Cisco Unified CallManager failover options router# show ccm-manager fallback-mgcp • Displays whether MGCP fallback is enabled and whether it is active or not (on or off)
Verifying an MGCP Integration with Cisco Unified CallManager (Cont.) • MGCP show commands (Cont.): Router# show mgcp endpoint • Displays endpoints controlled by MGCP router# show isdn status • Displays information about the status of ISDN Layers 1 to 3
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.
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.
Dial Plans on Cisco IOS Gateways Implementing Dial Plans
PSTN H.323 Gateway DID 4085552XXX Phone1-1 2001 Phone1-2 2002 Inbound PSTN Calls 4 H.323 call setup: DNIS 2001 3 Gateway modifies DNIS to 2001 and routes to CallManager. 5 Phone1-1 rings. 13125556666 User dials 14085552001. Call setup from PSTN: DNIS 4085552001 1 2
PSTN H.323 Gateway DID: 4085552XXX Phone1-1 2001 Phone1-2 2002 Outbound PSTN Calls 2 H.323 call setup: DNIS 913125556666 ANI 2001 3 Gateway modifies DNIS and ANI. 1 User dials 913125556666. 3125556666 Call setup: DNIS 13125556666 ANI´4085552001 PSTN phone rings. 5 4