cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
538
Views
1
Helpful
5
Replies

Call routing from CUBE to SIP gateway

dpwaruna
Level 1
Level 1

Hi All

I have a CISCO SIP enabled standalone gateway and Cube terminating SIP trunks from service provider. Can you please help me to setup route incoming calls from cube to sip gateway and outgoing calls from sip gateway to cube.(We do not want to integrate the SIP gateway with CUCM. So would like to setup cube as SIP registrar and route calls via cube). Please help me to setup some translation rules in cube and sip gateway.

Extension numbers =3100, 3101, 3102...

DDI number range = 3878131..$

 

 

 

 

 

 

 

 

5 Replies 5

Jonathan Schulenberg
Hall of Fame
Hall of Fame

You’ll need CallManager Express (CME) licenses if you want the gateway to actively register. Assuming it’s a normal IOS-XE router, not an ATA, you could build normal dial-peers, same as any other SIP trunk-side connection on a Cisco router.

Hi Jonathan

Yes it is a C3900 router. I have configured some dial-peers and translation patterns to route inbound and outbound calls.

voice translation-rule 30
rule 1 /^[2-478]........$/ /00\0/
rule 2 /^\+\(.*\)/ /00011\1/
rule 3 /.*/ /0\0/
!
voice translation-rule 31
rule 10 /^38781\(31..\)$/ /\1/
!
voice translation-rule 32
rule 1 /^00\([2-478]........\)/ /0\1/
rule 2 /^0\([2-9].......\)/ /\1/
rule 3 /^0\(1.*\)/ /\1/
rule 4 /^00011\(.*\)/ /0011\1/
rule 5 /^0000$/ /000/
!
voice translation-rule 33
rule 10 /^31\(..\)$/ /3878131\1/

================================

dial-peer voice 50 voip
description ## Outgoing t##
preference 1
shutdown
session protocol sipv2
session server-group 1
destination e164-pattern-map 31
voice-class codec 10
voice-class sip options-ping 60
no voice-class sip outbound-proxy
voice-class sip options-keepalive up-interval 12 down-interval 65 retry 2
dtmf-relay rtp-nte sip-kpml sip-notify
fax protocol none
no vad
!
dial-peer voice 5000 voip
description ## Imcoming  ##
translation-profile incoming FROM_TIPT
preference 1
rtp payload-type nse 99
session protocol sipv2
session target sip-server
incoming called e164-pattern-map 30
voice-class codec 10
voice-class sip dtmf-relay force rtp-nte
voice-class sip bind control source-interface GigabitEthernet0/0
voice-class sip bind media source-interface GigabitEthernet0/0
dtmf-relay rtp-nte sip-notify sip-kpml sip-info
fax protocol none
no vad

================

When I try to call out getting below error.

SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 172.19.224.83:5060;branch=z9hG4bK3984A32DF
From: <sip:387813101@172.19.224.14>;tag=4A83B238-FEF
To: <sip:0416875727@172.19.224.14>;tag=1942229540-1684106496728
Call-ID: A2331DF0-F1BC11ED-88BDC5A2-9E46749C@172.19.224.83
CSeq: 101 INVITE
Timestamp: 1684089199
WWW-Authenticate: DIGEST realm="phcn.vic.gov.au",qop="auth",nonce="BroadWorksXlho1ixg8Ts7cjzgBW",algorithm=MD5
Content-Length: 0

===========================

Can please help on this.

Have you configured authentication for the realm that you get the request to authenticate with, realm="phcn.vic.gov.au",?

Apart from that you have some configuration on your inbound dial peer that you don’t need on an inbound. Remove session target sip-server and preference 1. From what I can see you have as well put your outbound dial peer in shutdown state. Why have you done that? You’ll need to have an outbound dial peer in operational state. On that topic, as you use a server group as your target you’ll need to use a little different configuration for SIP option ping. That and a lot of other useful things are outlined in this document, In Depth Explanation of Cisco IOS and IOS-XE Call Routing - Cisco Your also missing bind statements on that dial peer and if you don’t have any other dial peer that is used in the same direction you can remove the preference command.



Response Signature


dpwaruna
Level 1
Level 1

Thank you very much for the reply and the link for the document. I did not configure the realm phcn.vic.gov.au. it might be causing the authentication error. DO i need to set the credentials in cube first ?

I will go through with and will made the corrections as you mentioned.

If you want the Cube to register with something then yes you'd need to configure it. Look at this document for details on how to configure a router with Cube functionality as an SBC. Cisco Unified Border Element Configuration Guide Through Cisco IOS XE 17.5 



Response Signature