×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Implementing SIP Gateways in CUCM

Blog

Fri, 12/09/2016 - 00:30
Feb 21st, 2014
User Badges:
  • Gold, 750 points or more

 

Introduction

I have created this blog based on my work experience in implementing PSTN Gateways in the Service Providers (SP) network and I will cover the Basics, Configuration and Troubleshooting part.

To help all types of readers I will start from Basics and then I will cover the Network Configuration and Troubleshooting part.

I'm writing this blog in continuation to my previous Blog post Implementing PSTN Gateways in CUCM

 

PSTN Gateways in CUCM

To place external calls, Cisco Unified Communications Network (CUCM) deployment needs a connection the Public Switched Telephone Network (PSTN). PSTN connections are provided through Gateways, which connect traditional time-division-multiplexing (TDM) telephony interface (digital T1/E1 or analog FXO port) and VOIP domains.

 

Gateways can be integrated in CUCM by using different protocols such as Media Gateway Control Protocol (MGCP), H.323 or Session Initiation Protocol (SIP) for signaling on VOIP call legs.

 

Gateway Protocol functions for CUCM Integration

 

Three main signaling protocols - MGCP, H.323 and SIP provides different feature support. There are Pros and Cons in each protocol.

 

MGCP: Centralized dial plan configuration and Centralized gateway configuration hence it will be easy to implement in a large SP network.

 

H.323: Dial plan configured directly on the gateway. More specific call routing and it support third-party integration on SP network.

 

SIP: Dial plan configured directly on the gateway. It supports third-party telephony integration and end devices.

 

SIP Gateway Implementation

 

SIP Gateways are integrated with CUCM by using SIP Trunks provisioned from CUCM. A gateway is a device that can translate between different types of signaling and media.

 

sipgw-5.png

 

 

 

1. Configure a SIP Gateway in CUCM

2. Configure SIP Gateway on the Cisco IOS router

Add a SIP Trunk

 

Step1: In CUCM Administration Page, choose Device > Trunk

 

Step2: Enter the following information as shown here, Trunk Type as SIP Trunk and Device Protocol as SIP

 

[Place the cursor on the image to get a clear view]

sipgw-2.png

 

Step3: Click Next

 

Step4: Enter the Trunk configuration as shown here, Device Name, Description and Device Pool

 

 

[Place the cursor on the image to get a clear view]

 

sipgw-3.png

 

Step5: Scroll down and Enter the SIP Information as shown here,

 

Enter Destination IP Address --> Will be the Gateway IP address and the Destination Port - 5060

SIP Trunk Security Profile, SIP Profile.

 

sipgw-4.png

 

Step6: Click > Save and Apply Config

 

 

 

Configuration on IOS Gateway

 

!

voice service voip

sip

bind control source-interface LoopBack0

bind media source-interface LoopBack0

session transport tcp

!

interface LoopBack0

ip address 10.106.91.92 255.255.255.0

!

 

! --- Change the Transport layer to TCP

 

! --- Configure the gateway to use the Loopback 0 interface IP address of 10.106.91.92 on the router as a source IP address when communicating with CUCM.

 

 

Dial Peer Configuration

 

!

dial-peer voice 1 voip

destination-pattern 2...

session protocol sipv2

session target ipv4: 10.106.91.80

codec g711ulaw

dtmf-relay rtp-nte sip-notify

!

 

VOIP Dial-peer configuration for routing Inbound calls from the PSTN terminated at the SIP Gateway. Calls with a called party number starts with 2 and that will be routed to the CUCM with ip address 10.106.91.80.  If the PSTN carrier was routing 10 digit for the called party digits, a translation profile is required and could be directly attached to the incoming TDM interface. Translation profile would match one of the customer's ten digit DID range and convert the dialed digits from ten digit to four digits.

 

! --- session protocol sipv2 command converts the VOIP dial peer from the default H.323 to SIP. The default signaling protocol on VOIP dial peer is H.323.

 

! ---  dtmf-relay command specifies the use of RFC 2833 in-band DTMF relay as first priority and out-of-band DTMF relay using the SIP Notify method, second priority

 

 

I hope the information in this blog is helpful. Thanks.

Loading.
Aman Soi Sat, 02/22/2014 - 01:04
User Badges:
  • Purple, 4500 points or more
  • Cisco Designated VIP,

    2017 IP Telephony

Sure, the information shared would be helpful while config SIP GW.


regds,

aman

wilsonsant Thu, 05/21/2015 - 13:15
User Badges:
  • " /> Participante em Destaque,

    Prêmio"Escolha dos membros": novembro de 2014

Hi Muthurani,

 

My Customer is configuring the SIP to connect with celular interface, but, didn´t worked. The interface SIP configuration is this way:

 

dial-peer voice 998131812 voip
 description Bast_TotalVox
 translation-profile outgoing Bastidor_Totalvox_RLG_2
 destination-pattern 999735690$
 session target ipv4:10.4.240.2
 voice-class codec 1 
 voice-class h323 1
 dtmf-relay h245-alphanumeric

 

Is there any configuration error?

 

Thanks,

 

Wilson

nastrii21 Fri, 11/20/2015 - 07:00
User Badges:

Is the IP 10.4.240.2 a Call Manager where the DNIS 999735690$ is registered, or is it a PSTN number? If 999735690$ is on a Call Manager, then your config should work, provided the IP 10.4.240.2 is the IP of the Call Manager. If 999735690$ is a PSTN number, then the dial peer should be a POTS dial peer like below sample and the cellular interface is configured where the signaling and media is bind.

example:

dial-peer voice 1 pots
destination-pattern 999735690$
no digit-strip

The IP 10.4.240.2 is either the SIP proxy IP, the CUCM, or the voice gateway of the DNIS 999735690$ if it is used as the session target in a voip dial peer.

Suresh Hudda Sat, 02/22/2014 - 04:48
User Badges:
  • Gold, 750 points or more
  • Cisco Designated VIP,

    2017 IP Telephony

Informative one !!!


Regards, Suresh

Pallavi Chandrakar Wed, 05/28/2014 - 00:41
User Badges:

hello frnds

                As I m new to SIP , i.e facing many problems . By looking upon the configuration , I configured sip cucm config , then sip gateway . Now m confused how to make a call to pstn number (lyk 911, sb national call .....) . Will you please explain me in brief . It will be very helpful for me .  Thankyou so much .

ASANTOS_SJ Wed, 08/19/2015 - 06:17
User Badges:

Hi All,

Excelent Post in relation SIP Gateway,

Regards,

Angel Santos

wilsonsant Wed, 08/19/2015 - 08:26
User Badges:
  • " /> Participante em Destaque,

    Prêmio"Escolha dos membros": novembro de 2014

Hi Angel,

 

Thanks a lot for documentation.

 

Wilson

t00845883 Tue, 05/10/2016 - 10:42
User Badges:

Good blog. but one correction or suggestion I have:


> if your carrier is sending more than 4 digits, 7 or 10, you dont have to have translation profiles. you can configure the SIP Trunk on Gateway to only allow 4 (i.e. if you are using 4 digit DNs). That is a simpler way that works like a charm.

Pasha Teplitsky Fri, 12/09/2016 - 00:30
User Badges:

Hi Muthurani,

Thanks for the post! 5 stars!

wanted to let you know that it encouraged me to write an in depth SIP Gateway post, explaining all the parameters and best practices.

I also thought it might be a good idea to build a SIP gw Config Utility to create consistent, best practice driven configuration.

Thanks for the motivation. keep up the great work!

Actions

This Blog

Related Content