PlaceCallAndPlay
Jump to navigation
Jump to search
This command places a new call from the specified GSM port and plays a voice WAV file (sample rate 8kHz, mono, 8 bits per sample, block-align 1, A-LAW coding).
The PlaceCallAndPlay command return once the call is connected and voice starts to play.
Voice Wav file is played continuously until specified call duration or optional timeout expire.
COMMAND
Command | Line Arguments | Returns |
---|---|---|
PlaceCallAndPlay | PortIndex, Destination number, Voice file path, Call Duration, [Timeout] | Error Code in case of error. |
OUTPUT
GSM port command status in the following format:
"%s\n", command_status
EXAMPLE
~# PlaceCallAndPlay 0 0612345678 /mnt/sdcard/usr/wav/voicequality.wav 15 15
CONNECTED
~# PlaceCallAndPlay 1 0612345678 /mnt/sdcard/usr/wav/voicequality.wav 30
NUMBER BUSY