]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add 'L16-256' MIME subtype alias for slin16.
authorKevin P. Fleming <kpfleming@digium.com>
Sat, 28 Jan 2012 14:49:48 +0000 (14:49 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Sat, 28 Jan 2012 14:49:48 +0000 (14:49 +0000)
Asterisk has supported the 'L16' MIME subtype for 16kHz signed linear (PCM)
audio for quite some time, but some endpoints refer to it as 'L16-256'. This
commit adds this as an alias for the existing format.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@353126 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/rtp_engine.c

index 2543a54f567007dee9dfe5b34d3763b864b9f626..7ce72d43e5203e5b98ae72cc4f0c88757ec54df4 100644 (file)
@@ -100,6 +100,7 @@ static const struct ast_rtp_mime_type {
        {{1, AST_FORMAT_ADPCM}, "audio", "DVI4", 8000},
        {{1, AST_FORMAT_SLINEAR}, "audio", "L16", 8000},
        {{1, AST_FORMAT_SLINEAR16}, "audio", "L16", 16000},
+       {{1, AST_FORMAT_SLINEAR16}, "audio", "L16-256", 16000},
        {{1, AST_FORMAT_LPC10}, "audio", "LPC", 8000},
        {{1, AST_FORMAT_G729A}, "audio", "G729", 8000},
        {{1, AST_FORMAT_G729A}, "audio", "G729A", 8000},