asterisk/formats
Gaurav Khurana 0827d5cc53 Add the ability to read the media file type from HTTP header for playback
How it works today:
media_cache tries to parse out the extension of the media file to be played
from the URI provided to Asterisk while caching the file.

What's expected:
Better will be to have Asterisk get extension from other ways too. One of the
common ways is to get the type of content from the CONTENT-TYPE header in the
HTTP response for fetching the media file using the URI provided.

Steps to Reproduce:
Provide a URL of the form: http://host/media/1234 to Asterisk for media
playback. It fails to play and logs show the following error line:

[Sep 15 15:48:05] WARNING [29148] [C-00000092] file.c:
File http://host/media/1234 does not exist in any format

Scenario this issue is blocking:
In the case where the media files are stored in some cloud object store,
following can block the media being played via Asterisk:

Cloud storage generally needs authenticated access to the storage. The way
to do that is by using signed URIs. With the signed URIs there's no way to
preserve the name of the file.
In most cases Cloud storage returns a key to access the object and preserving
file name is also not a thing there

ASTERISK-27286

 Reporter: Gaurav Khurana

Change-Id: I1b14692a49b2c1ac67688f58757184122e92ba89
2018-04-30 16:30:44 -04:00
..
Makefile Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
format_g719.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
format_g723.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
format_g726.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
format_g729.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
format_gsm.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
format_h263.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
format_h264.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
format_ilbc.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
format_jpeg.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
format_ogg_speex.c modules: change module LOAD_FAILUREs to LOAD_DECLINES (14) 2017-04-12 15:57:39 -06:00
format_ogg_vorbis.c BuildSystem: Check for header file of OGG. 2018-03-17 16:49:11 +01:00
format_pcm.c Add the ability to read the media file type from HTTP header for playback 2018-04-30 16:30:44 -04:00
format_siren7.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
format_siren14.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
format_sln.c translate: generic plc not filled in after translation 2018-04-24 14:54:25 -06:00
format_vox.c Add the ability to read the media file type from HTTP header for playback 2018-04-30 16:30:44 -04:00
format_wav.c Add the ability to read the media file type from HTTP header for playback 2018-04-30 16:30:44 -04:00
format_wav_gsm.c Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00
msgsm.h Remove as much trailing whitespace as possible. 2017-12-22 09:23:22 -05:00