Translation pattern to convert number to pilot number

Answered Question
Apr 18th, 2007

I would appreciate some help in suitable method of translating a published number for a group XXXXXXX9640 and would like this translated to a ephone-hunt group pilot number (i.e. 5002), can anyone suggest the best method?

I have this problem too.
0 votes
Correct Answer by Chris Deren about 9 years 7 months ago

Use either translation rule or num-exp. You did not specify how many digits you are getting from telco. For the following example lets assume it's 4.

voice translatio-rule 1

rule 1 /^9640/ /5002/

voice translation-profile 1

tranlsate called 1

dial-peer voice 1 pots

incoming called number 9640

translation-profile incoming 1

you can also apply the translation profile to voice-port.

http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml

num-exp is slighly easier all you would need to do is:

num-exp 9640 5002

HTH, please rate helpful posts!

Chris

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (4 ratings)
Loading.
Paolo Bevilacqua Wed, 04/18/2007 - 03:57

Hi,

you don't even need to translate, but if you have DID, likely you are translating already.

Eg:

ephone-hunt 1 sequential

pilot 5002 secondary xxxxxx9640

If were translating already on incoming, leaving the DID portion only, that would be:

pilot 5002 secondary 9640.

Hope this helps, please rate post if it does

Correct Answer
Chris Deren Wed, 04/18/2007 - 03:59

Use either translation rule or num-exp. You did not specify how many digits you are getting from telco. For the following example lets assume it's 4.

voice translatio-rule 1

rule 1 /^9640/ /5002/

voice translation-profile 1

tranlsate called 1

dial-peer voice 1 pots

incoming called number 9640

translation-profile incoming 1

you can also apply the translation profile to voice-port.

http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a0080325e8e.shtml

num-exp is slighly easier all you would need to do is:

num-exp 9640 5002

HTH, please rate helpful posts!

Chris

lfulgenzi Tue, 05/15/2007 - 13:50

Thanks Chris. This link helped.

I had seen it before and thought to myself, when would I ever need the 'number slice' feature....well, I just found one!

Thanks again.

Actions

This Discussion