cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2897
Views
0
Helpful
14
Replies

Cisco SRST - different dial-patterns

Daniov1
Level 1
Level 1

Hi ,

 

I have SRST gateway with 2 PRI .

Each of the PRI connected to different provider.

SRST configured with SIP protocol ,Each of the PRI has a different DID.

 

voice register global 

 defualt mode

 no allow-hash-in-dn

 max-dn 600

 max-pool 500

 dialplan-pattern 1 6834... extension-lenght 4

 dialplan-pattern 2 683454... extension-lenght 4

 

when calling to 6834... it's works properly, when calling to 683454... it's not working.
If I will change the configuration that 683454... will be "dialplan-pattern 1" it's will work propely but 6834... isn't.

 

Any suggest?

14 Replies 14

Try the following

dialplan-pattern 1 6834[0-4].. extension-lenght 4

dialplan-pattern 2 6834[6-9].. extension-lenght 4

dialplan-pattern 3 683454... extension-lenght 4

Hi ,

Thank you for your response.

 

I was wrong.
DID 1 is 6404...

DID 2 is 733294...

 

voice register global 

 defualt mode

 no allow-hash-in-dn

 max-dn 600

 max-pool 500

 dialplan-pattern 1 6404... extension-lenght 4

 dialplan-pattern 2 733294... extension-lenght 4

 

when calling to 6404... it's works properly, when calling to 733294... it's not working.
If I will change the configuration that 733294... will be "dialplan-pattern 1" it's will work propely but 6404... isn't.

 

Check the command show dialpeer voice summary. For each extension you
should see 3 dialpeers. For example, extension 4001, you should see the
following dialpeers

4001$
6404001$
733294001$

**** Please remember to rate useful posts

Hi,

The issue is with incoming calls from PSTN to Phone registered to SRST when the second dialplan-pattern not match, just dialplan-pattern 1 match.

 

attached is "show dial-peer voice sammery"

dialpeer.png

Your dialplan-pattern 2 is 733294... and your dial-peer voice 30 is 73329....

I wonder if making them match would solve the problem. Spitballing here...

Maren

Hi ,

Thanks for your response .
It's not the issue , if I will configure the dialplan-pattern 1 for 733294.. it's will work .

The issue is that the second dialplan-pattern (2) isn't work no matter what I define.

Can you try it using voice translation-rule instead of using dialplan-pattern? Here is the configuration:

!
voice translation-rule 1
 rule 1 /^640\(4...\)$/ /\1/
!
voice translation-rule 2
 rule 1 /^73329\(4...\)$/ /\1/
!
voice translation-profile PRI1-PSTN-IN
 translate called 1
!
voice translation-profile PRI2-PSTN-IN
 translate called 2
!
dial-peer voice 9001 pots
 description # Incoming Calls on PRI-1 #
 translation-profile incoming PRI1-PSTN-IN
 incoming called-number 6404...
 direct-inward-dial
 port 0/0/1:23 --------------------------------------> Change PRI Port number according to your setup. 
!
dial-peer voice 9002 pots
 description # Incoming Calls on PRI-2 #
 translation-profile incoming PRI2-PSTN-IN
 incoming called-number 733294...
 direct-inward-dial
 port 0/0/2:23 --------------------------------------> Change PRI Port number according to your setup. 
!

 

 

Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Vaijanath S.

Hi ,
Thanks for your response.

This configuration working in SRST mode , but i have a problem to configure it because incoming calls which route to CUCM needs to forward all the pattern include 6404... (the cucm discard digits) and if i will configure the below dial-peer 9001 will match and discard the first three digits and i can't forward just 4 digits to CUCM because i have a lot a manipulations on CUCM.

In SRST mode i need to forward 4 digit using dialpeer pots.

In CUCM mode i need to forward digit all using dialpeer voip.


Thanks,

Danielo.

Hi,

Do you just want to forward 6404... to CUCM or you want to forward both 6404... and 733294...?

 

 

Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Vaijanath S.

Hi,

I want forward both 6404... and 733294...to cucm.

 

Thanks,

Danielo. 

What protocol are you using between SRST Router and CUCM for PRI lines? 

 

 

Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Vaijanath S.

Hi,

CUCM mode:

Provider-> E1 PRI -> VGW -> SIP -> CUCM ->sip ip phone 

 

SRST mode:

Provider -> E1 PRI -> VGW -> sip ip phone. 

 

Thanks, 

Danielo.

 

Thanks,

Danielo.

I am assuming that you have unique 4-digit numbers in DID range 6404... and 733294... for example 6404[1-4]XX and 733294[5-8]XX; then here is the configuration you can try for non-SRST and SRST mode:

!
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g729r8
!
voice class server-group 1000
ipv4 10.10.200.21 preference 1--------------------------------------> Change CUCM IP according to your setup. 
ipv4 10.10.200.22 preference 2--------------------------------------> Change CUCM IP according to your setup. 
description ** CUCM SERVER GROUP **
!
voice translation-rule 1
 rule 1 /^640\(4[1-4]..\)$/ /\1/
!
voice translation-rule 2
 rule 1 /^73329\(4[5-8]..\)$/ /\1/
!
voice translation-rule 3
 rule 1 /^\(4[1-4]..\)$/ /640\1/
 rule 2 /^\(4[5-8]..\)$/ /73329\1/
!
voice translation-profile PRI1-PSTN-IN
 translate called 1
!
voice translation-profile PRI2-PSTN-IN
 translate called 2
!
voice translation-profile CUCM-OUT
 translate called 3
!
dial-peer voice 1001 voip
preference 1
description ** OUTBOUND CALLS TO CUCM CLUSTER **
translation-profile outgoing CUCM-OUT
destination-pattern 4...$
session protocol sipv2
session server-group 1000
voice-class codec 1 
voice-class sip early-offer forced
voice-class sip bind control source-interface GigabitEthernet0/0/0-------> Change interface according to your setup.
voice-class sip bind media source-interface GigabitEthernet0/0/0-------> Change interface according to your setup.
dtmf-relay rtp-nte
ip qos dscp cs5 media
ip qos dscp cs4 signaling
no vad
!
dial-peer voice 9001 pots
 description # Incoming Calls on PRI-1 #
 translation-profile incoming PRI1-PSTN-IN
 incoming called-number 6404...
 direct-inward-dial
 port 0/0/1:23 --------------------------------------> Change PRI Port number according to your setup. 
!
dial-peer voice 9002 pots
 description # Incoming Calls on PRI-2 #
 translation-profile incoming PRI2-PSTN-IN
 incoming called-number 733294...
 direct-inward-dial
 port 0/0/2:23 --------------------------------------> Change PRI Port number according to your setup. 
!

During normal operation, the dial-peer 1001 will be used to prefix the digits and send the calls to CUCM. During SRST mode, the IP Phones will register to SRST router with 4-digit DN and it will create dial peers automatically.

 

 

Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Vaijanath S.

I think dialpeer 30 is matched before dial-pattern. SIP registered dns will
have dialpeers from 4000xx which won't be matched with your dialpeer 30 in
place.
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: