incoming voice-port digit strip

Unanswered Question
Oct 12th, 2007

Our Telco is sending us 10 digits on incoming calls. We would like to strip the first 6 digits, and just keep that last 4. We have 4 digit pattern internally. This is to make our voice-mail accessible from off campus. Does anyone have suggestions on how to do this? Here is what I was thinking might work;

translation-rule 1

rule 0 /^90774[5,6]..../ /..../

voice-port 0/0/0:23

translate calling-number 1

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
dezoconnor Fri, 10/12/2007 - 22:26

If you're using an H.323 Gateway then that should work. If using MGCP then you would need to add a translation pattern on your communications manager.

You can test your translation-rule within the IOS prior to applying to the voice-port:

test voice translation-rule 1 cr

Paolo Bevilacqua Sat, 10/13/2007 - 02:20

Hi,

the rule you wrote won't work properly.

Please use:

rule 1 /^90774[56]/ //

Then, you can check the rule with "test voice translation-rule ".

Hope this helps, please rate post if it does!

v-yelmene Mon, 10/15/2007 - 08:14

I must be missing something. I'm getting an error msg.

msc-CME(config-translate)#rule 0 /^90774[5,6]/ //

Incorrect format for Translation Match Pattern

regular expression must be of the form ^(\^)?(\+)?([0-9,A-F.*%?#]+)$

Invalid match pattern string input /^90774[5,6]/

thisisshanky Mon, 10/15/2007 - 08:18

are you setting this up using voice translation-rule or the regular translation-rule command ?

v-yelmene Mon, 10/15/2007 - 08:20

regular translation-rule, I figure I can use voice version since I'm running 12.4?

Paolo Bevilacqua Mon, 10/15/2007 - 08:35

hi, please use voice translations:

voice translation-rule 200

rule ..

voice translation-profile strip-to-did

translate called 200

voice-port x/y

translation-profile incoming strip-to-did

Actions

This Discussion