PlaceCallAndPlay: Difference between revisions
Jump to navigation
Jump to search
m (Administrator moved page R2D2 - PlaceCallAndPlay to PlaceCallAndPlay) |
m (added Category:R2D2 using HotCat) |
||
Line 32: | Line 32: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Voice]] | [[Category:Voice]] | ||
[[Category:R2D2]] |
Latest revision as of 11:28, 27 March 2025
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