RecordVoice

From IRON Test Suite
Jump to navigation Jump to search

DESCRIPTION

This command records voice to the specified WAV file (sample rate 8kHz, Mono, 8 bits per sample, block-align 1, A-LAW coding) in the existing call on the specified GSM port. Optional flag PCM16 can be added to record 16 bits per sample. Command exits as soon as the voice starts to record.

COMMAND

Command Input arguments Returns
RecordVoice Port index, Wav file path, [PCM16 flag] In the case of error, Error Code

OUTPUT

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

EXAMPLE

~# RecordVoice 0 /usr/wav/record.wav PCM16
OK

~# RecordVoice 3 /usr/wav/record.wav
CAN'T CREATE DSP CHANNEL