Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

voice translation-rule asterisk *

we use 10 digit ext. During normal operation users dial *XXXXX to dial internal. I am trying to replicate during SRST. I have all working except the voice translation-rule will not take a *  Is there a work around for this. This seems like a bad idea since * is a number you can dial from the phone. Here is the error I get

rule 1 /^*\(041..\)/ /61528\1/

% *+ operand could be empty                                          ^

% Invalid input detected at '^' marker.

1 ACCEPTED SOLUTION

Accepted Solutions
Silver

voice translation-rule asterisk *

Are you trying to match the actual * DTMF digit?  If so, you need to escape it as this is Regex.  So it would be "rule 1/^\*\(041..\)/ /61528\1/".  If you're trying to use * as a wildcard for any number of digits, you need to have something before it to match so make it ".*".

4 REPLIES
Green

voice translation-rule asterisk *

Hi,

This always worked for me.
(Note just a tranlation rule not VOICE translation).


!
!
translation-rule 101
!### THIS TRANLATES 5 to 10 DIGITS IN SRST ###
Rule 1 ^1 700001
Rule 2 ^2 700002
Rule 3 ^3 700003
Rule 4 ^4 700004
Rule 5 ^5 700005
Rule 6 ^6 700006
Rule 8 ^8 700008
!
!
call-manager-fallback
translate called 101
!
!

In srst the user dials say 22222 this translates
to 7000022222.

Use your own numbers and give it a try.

Regards,
Alex.
Please rate useful posts.

Regards, Alex. Please rate useful posts.
Silver

voice translation-rule asterisk *

Are you trying to match the actual * DTMF digit?  If so, you need to escape it as this is Regex.  So it would be "rule 1/^\*\(041..\)/ /61528\1/".  If you're trying to use * as a wildcard for any number of digits, you need to have something before it to match so make it ".*".

Community Member

voice translation-rule asterisk *

Yes Brian this is exactly what I am trying to do and I could not find this documented anywhere. As soon as I can test again if this works you get a 5 from me. Thanks for responding.

Community Member

voice translation-rule asterisk *

This was tested and it works great. Thanks again

495
Views
0
Helpful
4
Replies
CreatePlease to create content