mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 07:35:18 +00:00
format_gsm.c: Added mime type
Sometimes it's impossible to get a file extension from URL
(eg. http://example.com/gsm/your) so we have to rely on content-type header.
Currenly, asterisk does not support content-type for gsm format(unlike wav).
Added audio/gsm according to https://www.rfc-editor.org/rfc/rfc4856.html
(cherry picked from commit 877449ddf5
)
This commit is contained in:
committed by
Asterisk Development Team
parent
6181408bf0
commit
09ebbb85c6
@@ -174,6 +174,7 @@ static off_t gsm_tell(struct ast_filestream *fs)
|
|||||||
static struct ast_format_def gsm_f = {
|
static struct ast_format_def gsm_f = {
|
||||||
.name = "gsm",
|
.name = "gsm",
|
||||||
.exts = "gsm",
|
.exts = "gsm",
|
||||||
|
.mime_types = "audio/gsm",
|
||||||
.write = gsm_write,
|
.write = gsm_write,
|
||||||
.seek = gsm_seek,
|
.seek = gsm_seek,
|
||||||
.trunc = gsm_trunc,
|
.trunc = gsm_trunc,
|
||||||
|
Reference in New Issue
Block a user