12-17-2020 10:10 AM
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.
Solved! Go to Solution.
12-18-2020 07:01 AM - edited 12-19-2020 12:38 AM
@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.
12-18-2020 01:22 AM
Share dial-peer config and logs as well. Have you applied SIP profile on dial peer?
12-18-2020 03:01 AM
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!
12-18-2020 07:01 AM - edited 12-19-2020 12:38 AM
@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.
01-04-2021 12:35 PM
Very helpful, thanks.
Note: This has removed the proceeding country code on both the main Request-Line-URI and To header fields.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide