We are working on UCCX7.0(1) and have a scripting question. The requirement I have is to play a prompt for a defined set of time, say 5 minutes, in a loop. On the expiry of the time, the call should end. Following is the steps that I need to achieve-
1) Play a message , Prompt1, asking the user to enter a digit.
2) On timeout or invalid entry, loop through the Prompt1 unlimited number of times.
3) But once the duration of the play reaches 5 minutes, end the call.
I am not aware of checking this timer/duration within the script. This seems pretty basic but Iam a novice to scripting, so any help is highly appreciated.
i don't fully understand what you need but here is an example that may get you going in the right direction. keep in mind that ending the script at exactly 5 minutes will be nearly impossible, unless you can control exactly how long the prompt playback lasts. i.e.g, 30 second prompt, loops 10 times.
set start_time = d[now].getTime()
play prompt(--triggering contact--, p[some_prompt])
set current_time = d[now].getTime()
if (current_time - start_time < 300000)