Menu

#28 How to use $agi->get_data with multiple audio files

v1.0 (example)
open
nobody
1
2019-05-15
2019-05-15
No

In Playback, Background, Read we can combine audio files with &, like file1&file2.
In PHPAgi instead of Read, I use $agi->get_data, but its look like accept only one file!

I also tried to play audio with Background before calling get_data:

$multipleAudioPath = 'file1&file2';
$agi->exec('Background', $multipleAudioPath);
$rawInput = $agi->get_data('blankAudioFile', $timeout, $digits);

But first character goes for breaking Background audio and didn't catch in get_data.

What can I do? Can I do it alone with $agi->get_data ? Or is there any other solution ?

Discussion


Log in to post a comment.