The sleep instruction causes the script to sleep.
Synopsis
sleep(type.src)
Description
The sleep instruction makes the script do nothing for the number of seconds specified by the argument. See the event instruction for TSM events that may interrupt the sleep instruction before the specified time has passed.
The sleep instruction is a speech-flushing instruction and causes any queued speech to be played before the sleep is done.
Example
In the following example, the script dials out on a channel, then waits 5 seconds for completion of the dial before continuing.
.............. ................ ........
tic('d',int.PHONENBR)
sleep(5)
......... ............. .............
See also