cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
8883
Views
5
Helpful
4
Replies

Cisco Gateway config for SIP to PRI conversion

CiscoRunner
Level 1
Level 1

Hello folks,

I am looking for some assistance with my configuration. We have ordered a SIP trunk from our telco but we only want to use an E1 PRI line on our voice gateway. So, we want to install an additional 2800 cisco router which will act as a converter (SIP-to-PRI). It will connect to the SIP trunk and also connect 2 x E1 PRI lines to our production voice gateway.

I am not 100% confident on the configuration to do this, so was hoping someone could take a look at my config and advise. So far, this is the configuration that I have:

 

CONFIG GUIDE FROM SIP PROVIDER:

Customer IP Address:       172.29.57.234 /30
SIP provider IP address: 172.29.57.233 /30

the folowing parameters have to be defined:

Protocol= SIP
SIP Port = 5060
Transport Protocol=UDP
Voice Codec= G711 A-Law
DTMF = IN-Band DTMF with RFC2833
SIP Server IP address = 10.200.7.157
RANGE : 112127400 -112127499
VLAN= 2122

Numbers should be defined in both ways:
1. Locally as 7 digits
2. Nationally as 9 digits

 

GATEWAY CONFIG:

!

controller E1 1/1
pri-group timeslots 1-31
!

interface Serial1/1:15
no ip address
isdn switch-type primary-net5  
isdn incoming-voice voice   
no cdp enable
no shutdown
!
voice translation-rule 1
 rule 1 /^9/ //
!
voice translation-profile Outbound_SIP
 translate called 1
!
dial-peer voice 100 pots
description **Dial-Peer to match Incoming calls from SIP TRUNK and to send across PRI**
incoming called number .
direct-inward-dial
port 1/1:15
!
dial-peer voice 1000 voip
translation-profile outgoing Outbound_SIP
destination-pattern 9T
voice-class codec 1
session protocol sipv2
session target ipv4:172.29.57.233
dtmf-relay rtp-nte
no vad
!

sip-ua
!
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g729r8

 

 

Is there anything else that I might be missing in my configuration to get calls working both inbound from SIP Trunk and then across E1...and also inbound from E1 and outbound via SIP trunk.

Any assistance appreciated!

 

 

 

4 Replies 4

Niranjan Durairaj
Cisco Employee
Cisco Employee

Hello,

destination-pattern is not configured in the pots dial-peer. You would need destination-pattern in the pots dial-peer to route the call to VGW thro PRI.

Thanks,

Niranjan

@Tagir, thank you very much for your input, much appreciated.

@Niranjan, thanks, I will add "destination-pattern 5..." under the POTS dial peer. For example, the provider will send in 4 digits to us (5xxx) when calling a DDi number, so this should send that call across PRI, right ??

 

Hi,

I have a customer that need's to implement this same setup, would you happen to have a link were they can download the doc's for the hardware and configuration install?

Thanks

Tagir Temirgaliyev
Spotlight
Spotlight

interface GigabitEthernet0/0.2122
 description *** SIP_to provider
 encapsulation dot1Q 2122
 ip address 172.29.57.234 255.255.255.252

ip route 10.200.7.157 255.255.255.255 172.29.57.233

 

 

dial-peer voice 1000 voip

translation-profile outgoing Outbound_SIP
destination-pattern 9T
no voice-class codec 1

codec  g711alaw
session protocol sipv2
session target ipv4:10.200.7.157     --- ?

voice-class sip bind control source-interface GigabitEthernet0/0.2122
voice-class sip bind media source-interface GigabitEthernet0/0.2122

dtmf-relay rtp-nte
no vad

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: