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;
rule 0 /^90774[5,6]..../ /..../
translate calling-number 1
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
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]/