CUCM Basics Training

CUCM Basics

Configuring Voice Gateways

Cisco Unified Communications Manager supports several types of Cisco Unified Communications gateways. The Voice Gateways are used for call termination when the internal IP Telephony infrastructure has to communicate with the PSTN and other non-IP telecommunications devices, such as private branch exchanges (PBXs), key systems, analog phones, fax machines, and modems.

Trunk interfaces specify how the gateway communicates with the PSTN or other external devices by using time-division-multiplexing (TDM) signaling. Cisco Unified Communications Manager and Cisco gateways use a variety of TDM interfaces, however the supported TDM interfaces may vary based on the gateway generation. In general the Cisco Unified Communications Manager supports two major types of gateways based on the protocol being used to control them – Media Gateway Control Protocol (MGCP) and H.323 gateways. However, in the recent time there are more and more implementations of SIP trunks between the CUCM and the Voice gateway, sometimes referred as Cisco Unified Border Element (CUBE).

Task 1: Add a H.323 Gateway to Cisco Unified Communications Manager

In this task we will add both routers as an H.323 gateways to Cisco Unified Communications Manager.

Activity Procedure

Complete these steps:

  1. On Cisco Unified Communications Manager Administration page, from the menu select Device > Gateway and click Add New.
  2. For gateway type, select H.323 Gateway, and click Next.
  3. On the Gateway Configuration page, use the following parameters:
    - Device Name: 10.1.1.101 (the IP address of the H323 Gateway connected to the Voice LAN)
    - Device Pool: SanJose
    - Uncheck 
    - Significant Digits: 4 (four)
    - Leave other parameters to default.
  4. Click Save.
  5. Click Reset button, and another Reset button.
  6. Now the IP address of the H323 gateway will appear.
  7. Repeat steps 1 - 5 for the second router with the following parameters:
    - Device Name: 10.1.1.102 (the IP address of the H323 Gateway connected to the Voice LAN)
    - Device Pool: Chicago
    - Uncheck 
    - Significant Digits: 4 (four)
    - Leave other parameters to default.

Activity Verification

You have completed this task when you attain these results:

  • Both router are listed as a H.323 gateway in Cisco Unified Communications Manager.

Configured H.323 Gateways

Task 2: Configure a voice gateway for Cisco Unified Communications Manager controlled H.323 SIP Trunk

In this task we will configure both routers as a H.323 voice gateways controlled by Cisco Unified Communications Manager.

Activity Procedure

Complete these steps:

  1. Open a telnet session to the router Site 1.
  2. Type in configure terminal to access the configuration mode.
  3. Type in voice service voip command to enter into Voice over IP configuration.
  4. Type in allow-connections h323 to sip in order to enable H.323 to SIP communication.
  5. Type in allow-connections sip to h323 in order to enable SIP to H.323 communication.
  6. Enter exit to leave Voice over IP configuration.
  7. Enter interface configuration mode with interface FastEthernet 0/0 command.
  8. Type in h323-gateway voip bind srcaddr 10.1.1.101 command.
  9. Enter exit to leave interface configuration mode.
  10. Type in dial-peer voice 14085552 voip command to create dial peer.
  11. Enter a destination pattern with destination-pattern 14085552... command.
  12. Enter session target with session target ipv4:10.1.1.10 command.
  13. Specify the codec to be used when establishing a session through this dial-peer with codec g711ulaw.
  14. Type Exit.
  15. Type in dial-peer voice 9 voip command to create another dial peer.
  16. Enter a destination pattern with destination-pattern 9.T command.
  17. Enter session target with session target ipv4:10.1.2.2 command.
  18. Configure the signalling protocol with session protocol sipv2.
  19. Specify the codec to be used when establishing a session through this dial-peer with codec g711ulaw.
  20. Enter exit to leave dial peer configuration mode.
  21. Type in exit to leave configuration mode.
  22. Save router configuration with write command.
  23. Repeat steps 111111 to configure the second router but change the parameters to match the specification:
    - dial-peer voice 9 voip - session target ipv4:10.1.2.1
    - dial-peer voice 13124443 voip - destination-pattern 13124443...

Activity Verification

You have completed this task when you attain these results:

- Execute the command show dial-peer voice summary and get the following output

R1#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
14085- voip  up   up             14085552...        0  syst ipv4:10.1.1.10
552
9      voip  up   up             9.T                0  syst ipv4:10.1.2.2

R2#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      voip  up   up             9.T                0  syst ipv4:10.1.2.1
13124- voip  up   up             13124443...        0  syst ipv4:10.1.1.10
443