Jumps to ONTIMEOUT
label after specified number of seconds.
Number of seconds after which the jump to ONTIMEOUT takes
place. If not specified, it defaults to -1 (Do not timeout at all).
- Each time,
the Timeout is encountered in the script, the timeout value is reset
from that point on.
- The command is useful when we are doing any lengthy operations in the script where we want to stop it if it exceeds the time limit.
is active only during a call. The last timeout value encountered by the script
is used when a call becomes active.
- If Timeout
is not specified in the script, the script does not timeout at all.
// cancel any previous timeout settings
// waiting for call
;Please wait while we connect your call to United States
$TalkTime = GetTalkTime()
; Your call has been connected to United States
; You have a talk time of (n) seconds
; Wait in an idle loop.
log "Your talk time has been expired."
$talk = $end - $start