WaitAndAcceptCall

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command waits for an incoming call on the specified GSM port, and accepts it. An optional timeout (in seconds) can be specified.

COMMAND

Command Input arguments Returns
WaitAndAcceptCall Port index, [Timeout] Calling number, in the case of error, Error Code

OUTPUT

GSM port call status in the following format:
"%s\n", call_status

EXAMPLE

~# WaitAndAcceptCall 4
CONNECTED 0612943276

~# WaitAndAcceptCall 2 120
TIMEOUT EXPIRED