cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1143
Views
10
Helpful
4
Replies

Cisco CUBE remove international prefix

RockSteadyEddie
Level 1
Level 1

I've had a good go at this before raising a discussion on here (and have found a few strings which offer similar advise) however cannot find a fix to my problem.

 

Issue: Carrier has asked that all INVITE messages for outbound calls to them come in 9 digit CLI format removing the international country code (so +61 for example on Australian numbers). 

 

Tried solutions: (Adding both as outbound rules on the dial-peer in question).

 

voice-class sip profiles 1 

request INVITE sip-header From modify "sip:+61(.*\)$

request INVITE sip-header To modify "sip:+61(.*\)$

request INVITE sip-header SIP-Req-URI modify "sip:+61(.*\)" "sip:\1"

 

and/or 

 

voice translation-rule 1
rule 1 /^.*\(.........\)$/ /\1/

 

I am not an expert with these rules however, in the case of the above I have run the test voice translation-rule command and it amends as desired - just not when I make calls!

 

Any assistance on how to achieve this properly would be appreciated.

1 Accepted Solution

Accepted Solutions


@RockSteadyEddie wrote:

Dial peer configuration as below:

dial-peer voice 6100 voip
translate-outgoing called 1


The marked part is not correct it should be bound to a voice translation profile.
Try this:

voice translation-rule 30
 rule 1 /^\+.*\(.........\)$/ /\1/
!
voice translation-profile PSTN-OUT
 translate called 30
!
dial-peer voice 6100 voip
 translation-profile outgoing PSTN-OUT

 For the SIP profile part please see my reply to your other post.



Response Signature


View solution in original post

4 Replies 4

nagaraj789
Level 1
Level 1

Share dial-peer config and logs as well. Have you applied SIP profile on dial peer?

Dial peer configuration as below:

 

dial-peer voice 6100 voip
description default to carrier
destination-pattern +61123456789 (matching test number for call - obviously not the number specified)
translate-outgoing called 1
session protocol sipv2

session target ipv4:**sbc ip address**:5060
session transport udp
voice-class codec 10
voice-class sip profiles 1
dtmf-relay rtp-nte
no vad

 

The carrier is responding to the INVITE message with a 403 Forbidden of which they tell me is due to using E164 format and not 9 digit CLI, as well as the requirement to use @domain name not IP address.

 

Voice translation and SIP profile rules as above also. Thanks!

 

 


@RockSteadyEddie wrote:

Dial peer configuration as below:

dial-peer voice 6100 voip
translate-outgoing called 1


The marked part is not correct it should be bound to a voice translation profile.
Try this:

voice translation-rule 30
 rule 1 /^\+.*\(.........\)$/ /\1/
!
voice translation-profile PSTN-OUT
 translate called 30
!
dial-peer voice 6100 voip
 translation-profile outgoing PSTN-OUT

 For the SIP profile part please see my reply to your other post.



Response Signature


RockSteadyEddie
Level 1
Level 1

Very helpful, thanks.

 

Note: This has removed the proceeding country code on both the main Request-Line-URI and To header fields.

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: