WaitAndRejectCall

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command waits for an incoming call on the specified GSM port, and rejects it. An optional timeout (in seconds) can be specified. If timeout is not specified or is greater than general timeout, general timeout will be used. A reject code from Q.931 document can be selected as reason of reject.

COMMAND

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

OUTPUT

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

EXAMPLE

~# WaitAndRejectCall 4
REJECTED 0612943276

~# WaitAndRejectCall 2 120
TIMEOUT EXPIRED