Hi,
I am using official ARI python library with asterisk 15.5.
I am facing an issue when using channel.play() , when i use channel.play(media=“sound:hello-world”) it works. But when i use channel.play(media=“sound:http://some_url”). It does not work.
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[1637]: file.c:774 ast_openstream_full: File <url\hello-world.wav> does not exist in any format
[Dec 28 10:52:22] WARNING[1637]: 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[1637]: 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[1788]: 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:
"else {
/* 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));
continue;
}
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?
For the first one, I tried with extension, because with an URL the Asterisk cannot choose the best extension to use, because an URL is just related to one resource (I also tried without an extension and has the same result as expected).