Absolute media path with /bridge/X/play

I am experimenting with playing a sound file into a bridge as shown here:

POST /bridges/{bridgeId}/play

I would like to specify the media URI (query parameter) using an absolute path, but every document/example I can find is relative to the Asterisk data directory as shown in this post

Is it possible to specify a full path? (My first attempt didn’t work - so in case I’m wasting my time and must put the file below the data dir please let me know)

For anyone else looking for an answer, I found a clue in an old post. Even though the media URI sounds like it should be formatted like any other uri (e.g. file:///mydir/myfile.wav ), you in fact have to change the prefix to sound: (not file:// ). Then you are past this hurdle…

eg: sound://mydir/myfile.wav

As noted in other post(s), the documentation would benefit from a few examples.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.