]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_http_media_cache.c: Parse media URLs to find extensions.
authorSean Bright <sean.bright@gmail.com>
Fri, 2 Jul 2021 15:15:05 +0000 (11:15 -0400)
committerJoshua Colp <jcolp@sangoma.com>
Mon, 19 Jul 2021 11:53:50 +0000 (06:53 -0500)
commitd5683268074968f69be0621114f6c45f69704e7c
treef0af71d30bb3c421f08cc2f48154f5ddd6b9a8a9
parent785e4afc20be77f33d024c2b13bc2f8afa6627b0
res_http_media_cache.c: Parse media URLs to find extensions.

Use cURL's URL parsing API, falling back to the urlparser library, to
parse playback URLs in order to find their file extensions.

For backwards compatibility, we first look at the full URL, then at
any Content-Type header, and finally at just the path portion of the
URL.

ASTERISK-27871 #close

Change-Id: I16d0682f6d794be96539261b3e48f237909139cb
main/media_cache.c
res/res_http_media_cache.c
tests/test_http_media_cache.c