cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

1031
Views
10
Helpful
7
Replies
Highlighted
Enthusiast

translation rule for SIP dial-peer

Hi Guys,

I have outgoing Voip dialpeer where i cannot remove prefix. But we can make translation rule to omit prefix like 9 and then add outbound DID for outgoing calls. Any idea/suggestion?

 

dial-peer voice 2 voip
 description OUTGOING CALLS
 translation-profile outgoing outbound-DID
 destination-pattern 9T
 session protocol sipv2
 session target sip-server
 voice-class codec 1
 voice-class sip dtmf-relay force rtp-nte
 dtmf-relay rtp-nte
 no vad

!

voice translation-rule 2
 rule 1 /.*/ /35366850/
!
!
voice translation-profile outbound-DID
 translate calling 2

 

 

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Beginner

Re: translation rule for SIP dial-peer

Just add it as below

 

Try as below

 

voice translation-rule 2
 rule 1 /.*/ /35366850/

 

 

voice translation-rule 3
rule 1 /^9\ (........\)/ /\1/

!
voice translation-profile outbound-DID
 translate calling 2

 translate called 3

View solution in original post

7 REPLIES 7
Highlighted
VIP Advisor

Re: translation rule for SIP dial-peer

Didn't get exactly what you are looking for?
Highlighted
Enthusiast

Re: translation rule for SIP dial-peer

I want dial outside with prefix 9 but ITSP accepts calls with specific DID without any prefix. How can we achieve it thru translation rule which can used in Voip dialpeer
In POTS dialpeer we can alter the destination pattern like prefix, forward digits etc..
Highlighted
Cisco Employee

Re: translation rule for SIP dial-peer

If all you are looking to do is drop the 9, use this -

voice translation-rule 2
rule 1 /9/ //

voice translation-profile outbound-DID
translate calling 2

Nipun Singh Raghav
"We cannot solve our problems with the same thinking we used when we created them"
Highlighted
Enthusiast

Re: translation rule for SIP dial-peer

Thanks for the reply.

 

Im looking for to not only drop 9 but send outgoing calls with one specific number as DID.

Highlighted
Beginner

Re: translation rule for SIP dial-peer

Just add it as below

 

Try as below

 

voice translation-rule 2
 rule 1 /.*/ /35366850/

 

 

voice translation-rule 3
rule 1 /^9\ (........\)/ /\1/

!
voice translation-profile outbound-DID
 translate calling 2

 translate called 3

View solution in original post

Highlighted
Enthusiast

Re: translation rule for SIP dial-peer

Can we use below
/^9\(.*\)/ instead of using /^9\ (........\)/ /\1/ becasue there could be other digits numbers too
Highlighted
Cisco Employee

Re: translation rule for SIP dial-peer

Ok, so you are confusing things. You need to strip 9 from your dnis i.e called number and you want the calls to go out as a specific DID number i.e ANI or calling. Is that what you are looking for ?
If yes, then the one that I mentioned was for called number. For calling you need a different rule. You the one that you pointed out in your last post. My rule will be “translate called” while yours will be “translate calling”. You can apply it to a single profile.

And yes to your translation query. You can use that. Add a ^ before the 9 in the match pattern and you should be set.


Nipun Singh Raghav
"We cannot solve our problems with the same thinking we used when we created them"
CreatePlease to create content
Content for Community-Ad
Future of Work Virtual Summit Day 5

Cisco COVID-19 Survey