I also tried and also cannot get it to work. I also tried with sound:url, and without sound URI scheme.
I checked the Asterisk console and with sound URI scheme, I have the following error:
“WARNING: file.c:774 ast_openstream_full: File <url\hello-world.wav> does not exist in any format
[Dec 28 10:52:22] WARNING: file.c:1247 ast_streamfile: Unable to open <url\hello-world.wav> (format (slin)): No such file or directory
[Dec 28 10:52:22] WARNING: res_stasis_playback.c:277 playback_final_update: 1545994342.7: Playback failed for sound:url/hello-world.wav”
When I tried without URI sheme, the Asterisk console display the following error:
“ERROR: res_stasis_playback.c:366 play_on_channel: Attempted to play URI ‘url/hello-world.wav’ on channel ‘Announcer/ARI-00000001;1’ but scheme is unsupported”
I checked the code on res_stasis_playback.c file and saw the following code on play_on_channel function:
/* Play URL */
ast_log(LOG_ERROR, “Attempted to play URI ‘%s’ on channel ‘%s’ but scheme is unsupported\n”, playback->media, ast_channel_name(chan));
Which means that the Asterisk does not yet support playback from URL on a channel or bridge?
I saw that this was implemented since Asterisk v14, and I check on v14, and v16 and the problem is the same.
Has anyone ever been able to?