[asterisk-bugs] [JIRA] (ASTERISK-27871) Remote URL in playback must end with file extension
Sean Bright (JIRA)
noreply at issues.asterisk.org
Fri Jul 2 13:15:33 CDT 2021
[ https://issues.asterisk.org/jira/browse/ASTERISK-27871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=255525#comment-255525 ]
Sean Bright edited comment on ASTERISK-27871 at 7/2/21 1:13 PM:
----------------------------------------------------------------
Hi [~dovid], feel free to take the [attached patch|^0001-res_http_media_cache.c-Parse-media-URLs-to-find-exte.patch] for a spin and let us know your results. It should apply cleanly to latest 16.
Your installed version of cURL needs to be at least version 7.62.0 or you need to have the urlparser library installed.
was (Author: seanbright):
Hi [~dovid], feel free to take the [attached patch|^0001-res_http_media_cache.c-Parse-media-URLs-to-find-exte.patch] for a spin and let us know your results. It should apply cleanly to latest 16.
Your installed version of cURL needs to be at least version 7.62.0
> Remote URL in playback must end with file extension
> ---------------------------------------------------
>
> Key: ASTERISK-27871
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-27871
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Applications/app_playback, Resources/res_http_media_cache
> Affects Versions: 14.0.0, 15.0.0
> Reporter: Caesar
> Assignee: dovid
> Severity: Major
> Labels: patch
> Attachments: 0001-res_http_media_cache.c-Parse-media-URLs-to-find-exte.patch
>
>
> Issue is simple, when using a remote URL if the URL does not end with the extension Asterisk believes it is a file in the local file system. This occurs even after a GET attempt is made to the URL which is strange.
> Steps to reproduce:
> Dialplan code:
> same => n,Playback(http://4.4.4.4:9040/v1/get-audio-file/5b00f1d7f9675d593051c92e.wav?Authorization=abc123123)
> Will result in:
> [May 21 23:33:02] WARNING[20780][C-00000017]: file.c:774 ast_openstream_full: File http://4.4.4.4:9040/v1/get-audio-file/5b00f1d7f9675d593051c92e.wav?Authorization=abc123123 does not exist in any format
> [May 21 23:33:02] WARNING[20780][C-00000017]: file.c:1247 ast_streamfile: Unable to open http://4.4.4.4:9040/v1/get-audio-file/5b00f1d7f9675d593051c92e.wav?Authorization=abc123123 (format (ulaw)): No such file or directory
> If we do:
> same => n,Playback(http://4.4.4.4:9040/v1/get-audio-file/5b00f1d7f9675d593051c92e.wav)
> It works without issue.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list