Dial-peer for 7-digit DID to 4 digit conversion

Unanswered Question
Jan 10th, 2008

The Telco is sending 7 digits for DID over PRI that we convert to 4 digis, which works ok from the MGCP gateway settings. But in SRST mode, we need to convert 7 to 4 with a Dial-peer and translate some of the numbers. Does anyone have a dial-peer and related translation example?


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Brandon Buffin Thu, 01/10/2008 - 12:46

If your DIDs match up with your extensions, one option is to use the dialplan-pattern command under call-manager-fallback, such as:


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

In this example, 1231234 would get translated to extension 1234. If that doesn't work, what kind of translation do you need to do?

Hope this helps. If so, please rate the post.


jbarcena Thu, 03/27/2008 - 11:42

You can also use the num expand command:

num-exp 245090. 090.


This Discussion