PlaceCallAndPlay: Difference between revisions

From Ultiroam User Docs
Jump to navigation Jump to search
(Created page with "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''' {| class="wikitable" !Command !Line Arguments !Returns |- |PlaceCallAndPlay |PortIndex, Destination number, Voi...")
Tag: 2017 source edit
 
m (added Category:R2D2 using HotCat)
 
(One intermediate revision by the same user not shown)
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