Guest Guest_Doris Report post Posted 01/25/2005 06:36 AM I have questions regarding to the timeswitch. we actually want to get four-digit time in the format HHNN from the user with validation. In the zip, there are two files. One is testswitch.vgs which works well. But it takes two inputs for two-digit hour and two-digit minute from hte user. Another file is testswitch-4-digit.vgs which hangs up once picked up the call. What we want is to make testswitch-4-digit works. The whole thing from user point of view is to enter four digit time as in testswitch-4-digit.vgs but not two by two as in testswitch.vgs. Although we didn't add in any voice in the testswitch.vgs, we worried about the issue of timeout, replay..etc. So, it would be appreciated if you can see how we can make the timeswitch-4-digit.vgs to get the four digit numbers for validation. Thanks a lot. IVRS.zip Share this post Link to post
SupportTeam Report post Posted 01/25/2005 06:55 AM I see that in the second script (the one that does not work) you have placed this expression directly in the Time Switch module: left($RV[HHNN],2):right($RV[HHNN],2) What you should do is place this expression in an Evaluate Expression module: left($RV[HHNN],2) + ":" + right($RV[HHNN],2) and then just place the RV created by that Evaluate Expression module in the Time Switch module... You cannot evaluate expressions in a Time Switch module... Share this post Link to post
Guest Guest_Doris Report post Posted 01/25/2005 08:00 AM Oh. Great. I think it can work! I will try it very soon. Thanks a lot. Share this post Link to post