[asterisk-bugs] [JIRA] (ASTERISK-29527) res_http_media_cache: Cleanup audio format lookup in HTTP requests

Asterisk Team (JIRA) noreply at issues.asterisk.org
Wed Oct 13 06:03:52 CDT 2021


     [ https://issues.asterisk.org/jira/browse/ASTERISK-29527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asterisk Team updated ASTERISK-29527:
-------------------------------------

    Target Release Version/s: 19.0.0

> res_http_media_cache: Cleanup audio format lookup in HTTP requests
> ------------------------------------------------------------------
>
>                 Key: ASTERISK-29527
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29527
>             Project: Asterisk
>          Issue Type: Improvement
>      Security Level: None
>          Components: Resources/res_http_media_cache
>    Affects Versions: GIT, 19.0.0
>            Reporter: Sean Bright
>            Assignee: Sean Bright
>      Target Release: 19.0.0
>
>
> Asterisk first looks at the end of the URL to determine the file extension of the returned audio, which in many cases will not work because the URL may end with a query string or a URL fragment. If that fails, Asterisk then looks at the Content-Type header and then finally parses the URL to get the extension.
> The order has been changed such that we look at the Content-Type header first, followed by looking for the extension of the parsed URL. We no longer look at the end of the URL, which was error prone.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list