cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1227
Views
0
Helpful
4
Replies

voice translation-rule asterisk *

gene
Level 1
Level 1

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

brmeade
Level 4
Level 4

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 ".*".

View solution in original post

4 Replies 4

acampbell
VIP Alumni
VIP Alumni

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.

brmeade
Level 4
Level 4

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 ".*".

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.

This was tested and it works great. Thanks again