dialplan-pattern command in srst

Unanswered Question
Oct 13th, 2005
User Badges:

Can anyone point to a detailed document on what this command does with in a router and what impact it has? The srst documents give some information on it but it is minimal. Also, can anyone give me an example of where they have used this command and what the purpose was?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
pbarman Thu, 10/13/2005 - 08:32
User Badges:
  • Silver, 250 points or more

For Inbound Calls say you have 10 digits coming in from Telco, but your internal extensions are 4 digits. In that case, you can use the dialplan-pattern command to strip the first 6 digits and accept only the last 4 digits. An example here -


dialplan-pattern 1 4085254... extension-length 4

For outbound calls, the dialplan-pattern command will transform the calling number to a 10 digit number. So, if your ip phone 4321 placed an outbound call, the calling number will be transformed to 4085254321 when a call setup is sent to the PSTN.

Command Reference:


I haven't found any better link.



dan.gallagher Fri, 10/14/2005 - 05:23
User Badges:

We are using translation rules to do this in our outbound dial peers. We include translate called 1 in our srst config. 1 being our translation rule that sets the calling number to 10 digit NPA. It seems like we are being redundant by using the dial-plan pattern command. It seems like they are doing the same thing. I read a srst 2.1 document on this command that stated if the calling number matches the pattern then the phone will ring an internal ring. Do you know if that is true? I could see some use for it if that is the case.

Thanks for your response

pbarman Fri, 10/14/2005 - 10:50
User Badges:
  • Silver, 250 points or more

The way that you are doing is an alternate option and ofcourse is working. The internal ring thing is true, but the calling number of the outside caller should be matching this pattern (e.g.4085254...) which is less likely. So, you may not need this command at all for your scenario.

jt1103 Fri, 10/14/2005 - 07:08
User Badges:

Partha, I hope you can help with a problem I am having. In SRST I cannot get numbers coming in from the PRI to be routed to the phones. I have tried the above suggestion, (dialplan-pattern 1 7755... extension-length 5 extension-pattern 55...) but I am still not able to complete calls. Are there any other steps that I am missing? BTW, the calling phone receives re-order tones after what seems to be an extended period.



pbarman Fri, 10/14/2005 - 11:00
User Badges:
  • Silver, 250 points or more

So, I assume your IP Phones have an extension of 55XXX, correct? How many digits does Telco send you, 7 or 4? You can do a debug isdn q931 and find out. If they send you 7 digits, the below should work:

dialplan-pattern 1 7755... extension-length 5

Post your config please if the above doesn't work.

If Telco sends you 4 digits only, then you have to use translation patterns on voice ports on inbound pots dial-peer to translate the number to 5 digit number.

dan.gallagher Mon, 10/17/2005 - 04:11
User Badges:

Looks like you are missing this command

ccm-manager fallback-mgcp

It looks like one pri is MGCP and one is H.323. If the inbound calls are coming in on the MGCP pri then when in fallback without the above command it will not work.

dan.gallagher Mon, 10/17/2005 - 04:16
User Badges:

This command is also required.

call application alternate DEFAULT

But you may be ok with the commands you are using.



service alternate Default

When you go in fallback mode make sure the sh isdn status command shows the pri as multiframe established. I ran in to a situation when using MGCP and the default command did not work so the pri would not establish. The sapi rx coming from the ISP was not getting processed.

jt1103 Mon, 10/17/2005 - 06:15
User Badges:

Thanks, the ccm-manager fallback worked when I added the dialplan command back as well.

Thanks again for the help.


This Discussion