VoiceGuide IVR Software Main Page
Jump to content

Time Switch Not Working

Recommended Posts

I have put in the time switch module in our script but it simply does not work, i tried it set for 9am -5pm m-f to take one path and it will not take that path. I made sure pc date and time were correct and set to EST.

version is VG for dialogic.

Share this post


Link to post

Could you please post a copy of VoiceGuide's Debug Printout which captures the problem, this will allow us to see what happened.

 

When running the script click on VoiceGuide's View menu and select 'Event Trace Log' option - any log information will then appear in this window. You must open the trace window before making the call.

You can enable the automatic saving of the logs to files in \log\ directory as well.

When posting traces please .ZIP them up and post them as attachments.

Share this post


Link to post

Since the time switch was not working for me, I decided to use the good old method and this works for me for now.

 

($RV_DAY >= 1) and ($RV_DAY <= 5) and ( (($RV_HOUR >= 9) and ($RV_HOUR <= 17)) or (($RV_HOUR = 8) and ($RV_MINUTE >= 30)) or (($RV_HOUR = 17)) )

 

8:30 to 5 pm weekdays = business hours. :)

Share this post


Link to post

Trace shows:

111041.56   6 state [Play 1] Playing
111041.56   6 state [Play 1] Playing (C:\Program Files\VoiceGuide\Scripts\Law\2000.wav)
...
111048.23   6 state Hanging up call... [No Paths leaving Play module [Play 1]]

I think you should have a better look at your script - there seems to be no paths leaving the starting module [Play 1], that is why the script does not go any further.

Share this post


Link to post

Thanks for the response.

I tried playing around more with the Timer Switch, however gave up due to time constraints. For holidays, my idea is to maintain a Holidays.txt file with dates as

01/01/06

07/04/06

etc

 

Am going to write a VBscript to

get each line into a variable.

Then compare it with a combination of $RV_DD, $RV_MM & $RV_YY with "/"'s in the middle, and if there is a match, then it is a holiday.

Am I going in the right direction ?

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
×