cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
449
Views
0
Helpful
3
Replies

dial peer not working

Joli Martinez
Beginner
Beginner

I am new to dial-peers.  I need to create a rule that would prepped my called number with the carrier's prefix.  If the user dials a 1 I would like to keep it if not add the 1.

So my call is user1 dials 2223334444 I need it to get translated to 12345*1222333444 before reaching the carrier, but also if user2 dials 15556667777 I need it to get translated to 12345*15556667777.

Not sure If I need two translations or just one.

 

The following is not working for me:

dial-peer voice 103 voip
 description 10 Digit Dialing
 destination-pattern [2-9].........
 progress_ind setup enable 3
 codec g711ulaw
 session protocol sipv2
 dtmf-relay rtp-nte 
 session target dns:sip.provider.com
 translation-profile outgoing ADD612345*1
 session transport udp
 ip qos dscp cs5 media
 ip qos dscp cs4 signaling
 no vad
 
 voice translation-rule 10
  rule 1 // /12345*1/
voice translation-profile ADD12345*1
translate called 1
1 Accepted Solution

Accepted Solutions
3 Replies 3

Muhammad Awais Khan
Rising star
Rising star

hi,

 

your translation rule seems to be fine, you can further confirm this also with 

Router#test voice translation-rule 10 2223334444

 

But my question here is about your carrier, carrier will accept the dialing pattern like 12345*….. in a single invite ? 

Yes that is how my provider wants the number dialed.  I see that it is working when I do the test, but when I call the number it does not get translated.  The number I call gets forward without any translations to the provider.  Is it not matching the correct dial-peer?  I have a catchall inbound to my Pots lines then the outbound dial-peers, they are as follows:

 

dial-peer voice 100 voip
description CatchAll Incomming
destination-pattern +1T
progress_ind setup enable 3
session protocol sipv2
session transport udp
dtmf-relay rtp-nte
codec g711ulaw
ip qos dscp cs5 media
ip qos dscp cs4 signaling
no vad
!
dial-peer voice 201 pots
destination-pattern 13052227925
port 1/0/0
!
dial-peer voice 101 voip
description Service Number (911, 411, etc)
destination-pattern [2-9]11
progress_ind setup enable 3
session protocol sipv2
session target ipv4:10.21.10.4
session transport udp
ip qos dscp cs5 media
ip qos dscp cs4 signaling
no vad
!
dial-peer voice 102 voip
description 11 Digit dialing
destination-pattern 1[2-9].........
progress_ind setup enable 3
session protocol sipv2
session target dns:sip.provider.com
session transport udp
dtmf-relay rtp-nte
codec g711ulaw
ip qos dscp cs5 media
ip qos dscp cs4 signaling
no vad
!
dial-peer voice 103 voip
description 10 Digit Dialing
translation-profile outgoing ADD12345*1
destination-pattern [2-9].........
progress_ind setup enable 3
session protocol sipv2
session target dns:sip.provider.com
session transport udp
dtmf-relay rtp-nte
codec g711ulaw
ip qos dscp cs5 media
ip qos dscp cs4 signaling
no vad

figured it out.

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: