incoming voice-port digit strip

Unanswered Question
Oct 12th, 2007
User Badges:

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
User Badges:
  • Silver, 250 points or more

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
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

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
User Badges:

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
User Badges:
  • Purple, 4500 points or more

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

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

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

paolo bevilacqua Mon, 10/15/2007 - 08:35
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

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

paolo bevilacqua Mon, 10/15/2007 - 10:55
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

Good to know, please remember to rate useful posts!

Actions

This Discussion