PlaceCallAndPlay

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command places a new call from the specified GSM port and plays voice from the specified WAV file (sample rate 8kHz, mono, 8 bits per sample, block-align 1, A-LAW coding). Command exits as soon as the call is connected and voice starts to play or call is terminated, whatever comes first. Voice file will play repetitively until specified call duration expires, and then call will be disconnected. An optional timeout (in seconds) can be specified.
If timeout is not specified or is greater than general timeout, general timeout will be used.

COMMAND

Command Input arguments Returns
PlaceCallAndPlay Port index, Destination number, Wav file path, Call duration, [Timeout] Call Status, in the case of error, Error Code

OUTPUT

GSM port command status in the following format:
"%s\n", command_status

EXAMPLE

~# PlaceCallAndPlay 0 0632279930 /usr/wav/message.wav 30 30
CONNECTED

~# PlaceCallAndPlay 3 0632279930 /usr/wav/message.wav 45
NUMBER BUSY