[asterisk-bugs] [JIRA] (ASTERISK-29275) Support of MIME-type for wav16
Sean Bright (JIRA)
noreply at issues.asterisk.org
Fri Sep 10 09:54:33 CDT 2021
[ https://issues.asterisk.org/jira/browse/ASTERISK-29275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=256231#comment-256231 ]
Sean Bright commented on ASTERISK-29275:
----------------------------------------
bq. But content-type identifying without {{normalize_content_type_header()}} works fine.
It may work, but comparing MIME types is not as simple as just comparing strings. The wav16 MIME type in {{format_wav.c}} is:
{noformat}
audio/x-wav;codec=pcm;bit=16;rate=8000
{noformat}
But will not match the perfectly valid - and arguably idiomatic:
{noformat}
audio/x-wav; codec=pcm; bit=16; rate=8000
{noformat}
> Support of MIME-type for wav16
> ------------------------------
>
> Key: ASTERISK-29275
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-29275
> Project: Asterisk
> Issue Type: Improvement
> Security Level: None
> Components: Formats/format_wav
> Affects Versions: 16.16.0, 18.2.0
> Environment: FreeBSD 12.2, Asterisk 18.2
> Reporter: Boris P. Korzun
> Assignee: Boris P. Korzun
> Labels: patch
> Target Release: 16.17.0, 18.3.0
>
> Attachments: 0001-res_http_media_cache.c-Compare-unaltered-MIME-types.patch
>
>
> Suggested patch provides a support of a MIME-type for wav16 as {{audio/x-wav;codec=pcm;bit=16;rate=16000}}. Also *adds* a MIME-type for classic wav as {{audio/x-wav;codec=pcm;bit=16;rate=8000}}.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list