In past the playback path is local (like this ā /var/www/html/test)
past path link works.
but after set the playack of url, I can not hear the audio.
what is problem?
what i have to do to solve this problem?
Other docs say that the feature was introduced in version 14. I guess you have to experiment. It may be that you need a complete file as David suggested and it might not work with a stream.
I just checked whether calling with a URI is possible. I basically called Playback(http://other-box.local/demo.wav) and Asterisk was not happy:
[Jun 16 18:47:33] WARNING[128547][C-0000005d]: res_http_media_cache.c:478 bucket_http_wizard_retrieve_id: Failed to create temporary storage for 'http://other-box.local/demo.wav'
[Jun 16 18:47:33] WARNING[128547][C-0000005d]: res_http_media_cache.c:478 bucket_http_wizard_retrieve_id: Failed to create temporary storage for 'http://other-box.local/demo.wav'
[Jun 16 18:47:33] WARNING[128547][C-0000005d]: file.c:824 ast_openstream_full: File http://other-box.local/demo.wav does not exist in any format
[Jun 16 18:47:33] WARNING[128547][C-0000005d]: file.c:1303 ast_streamfile: Unable to open http://other-box.local/demo.wav (format (alaw)): No such file or directory
[Jun 16 18:47:33] WARNING[128547][C-0000005d]: app_playback.c:513 playback_exec: Playback failed on PJSIP/tel10-2293-0000013c for http://other-box.local/demo.wav
Maybe there are ways to deal with the media cache and then it might work, but I am not familiar with these details.
can you see the GET request in the log for your webserver, did it send the file
also do you also get the āFailed to create temporary storageā WARNING
No, there is no GET request from the Asterisk box in access_log. I downloaded the file with wget from the Asterisk box, so it is neither a DNS nor some security thing. I guess Asterisk first tries to create the temp file before it starts to download.
An image, when a link, and copy of paste of the relevant text, would have been more useful.
As has already been pointed out, this is not mentioned in the official documentation for Playback for the latest Asterisk. I tend to believe that is poor documentation, rather that the feature isnāt there.
I seem to remember that the URI must be complete, and that the whole resource is fetched before anything is played.