VoiceGuide IVR Software Main Page
Jump to content

Timeswitch

Recommended Posts

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

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

Oh. Great. I think it can work! I will try it very soon. Thanks a lot.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×