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

Friendly Automation (JIRA) noreply at issues.asterisk.org
Mon Aug 2 13:21:34 CDT 2021


    [ https://issues.asterisk.org/jira/browse/ASTERISK-29527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=255735#comment-255735 ] 

Friendly Automation commented on ASTERISK-29527:
------------------------------------------------

Change 16215 merged by Friendly Automation:
res_http_media_cache: Cleanup audio format lookup in HTTP requests

[https://gerrit.asterisk.org/c/asterisk/+/16215|https://gerrit.asterisk.org/c/asterisk/+/16215]

> 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
>
> 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