07-11-2013 10:42 AM - edited 03-16-2019 06:20 PM
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.
Solved! Go to Solution.
07-12-2013 08:04 AM
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 ".*".
07-12-2013 07:38 AM
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.
07-12-2013 08:04 AM
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 ".*".
07-12-2013 08:10 AM
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.
07-15-2013 08:26 AM
This was tested and it works great. Thanks again
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide