SleepEvent [duration]
Suspends the execution
of the current script for a specified interval of time or until an event occurs.
Parameters
[duration]
Time in milliseconds for which the execution is suspended [optional].
Remarks
- Similar to Sleep command except for the fact that any event causes the sleep to complete.
- If the number of milliseconds is not specified, then the timeout is INFINITE and the waiting is suspended on firing an event.
- Command works with all device notifications(ring, attend call, hangup call, keypress, call progress etc.) and also with putmessage, getmessage functions.
Example