Hi,
I’m trying to play a sound file using ARI’s play command.
"/ari/channels/" + channelId + "/play?&media=" + mediavar
where mediavar is a string describing the URI of the file to be played.
I have successfully played files using
mediavar = "sound:tt-monkeys"
or
mediavar = "sound:
https://github.com/pbxware/asterisk-sounds/raw/master/demo-congrats.wav
"
However, the command does not work when the media is in a file URI. I have tried several combinations, using the URI formats recommended by Wikipedia.
"sound:file:///srv/var/lib/mfa/hello1.wav"
I have also tried the following, to no avail.
"sound:file://srv/var/lib/mfa/hello1.wav"
"sound:/srv/var/lib/mfa/hello1.wav"
What am I missing? Do I need to use http or https for the URI?