Polycom EX Guía Del Software
System Commands
© Polycom, Inc.
229
waitfor
Description
This command is used within script files to wait for a specific event before
executing the next statement. (See the command
executing the next statement. (See the command
on page 161). This
command causes the API shell to wait until a call being placed either connects
or fails. This command can be used to synchronize a remote controller with
the system. The API shell echoes the message “call complete” when the call
connects or is aborted.
or fails. This command can be used to synchronize a remote controller with
the system. The API shell echoes the message “call complete” when the call
connects or is aborted.
Syntax
waitfor <callcomplete|systemready|receivingcall>
Example
waitfor callcomplete
Parameter
Definition
callcomplete
Causes the API shell to wait until a call being placed
either connects or fails.
either connects or fails.
systemready
Causes the system to return the message “system is
ready” when the system is ready to make a call.
ready” when the system is ready to make a call.
receivingcall
Causes the API shell to wait until an incoming ring is
detected and returns the message “wait for receiving
call.”
detected and returns the message “wait for receiving
call.”