summaryrefslogtreecommitdiff
path: root/main/rtp_engine.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2014-12-01 18:51:52 +0000
committerJoshua Colp <jcolp@digium.com>2014-12-01 18:51:52 +0000
commit4ff6bd831f78d53ee65b9598536976c9d9b216aa (patch)
treeb5bc366c276bf24fe92d46f60ba20c3e774f1cf9 /main/rtp_engine.c
parent1106e8fd0f831c79eb2a7cf079739561da11d6ef (diff)
rtp_engine: Add support for transporting signed linear at 12kHz, 24kHz, 32kHz, 44kHz, 48kHz, 96kHz, and 192kHz over RTP.
This change adds mappings in the RTP engine layer for the remaining signed linear formats. ASTERISK-24274 #close Reported by: Frankie Chin Review: https://reviewboard.asterisk.org/r/4093/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@428708 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/rtp_engine.c')
-rw-r--r--main/rtp_engine.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/main/rtp_engine.c b/main/rtp_engine.c
index df04c1571..747c95bb0 100644
--- a/main/rtp_engine.c
+++ b/main/rtp_engine.c
@@ -2090,6 +2090,13 @@ int ast_rtp_engine_init()
set_next_mime_type(ast_format_slin, 0, "audio", "L16", 8000);
set_next_mime_type(ast_format_slin16, 0, "audio", "L16", 16000);
set_next_mime_type(ast_format_slin16, 0, "audio", "L16-256", 16000);
+ set_next_mime_type(ast_format_slin12, 0, "audio", "L16", 12000);
+ set_next_mime_type(ast_format_slin24, 0, "audio", "L16", 24000);
+ set_next_mime_type(ast_format_slin32, 0, "audio", "L16", 32000);
+ set_next_mime_type(ast_format_slin44, 0, "audio", "L16", 44000);
+ set_next_mime_type(ast_format_slin48, 0, "audio", "L16", 48000);
+ set_next_mime_type(ast_format_slin96, 0, "audio", "L16", 96000);
+ set_next_mime_type(ast_format_slin192, 0, "audio", "L16", 192000);
set_next_mime_type(ast_format_lpc10, 0, "audio", "LPC", 8000);
set_next_mime_type(ast_format_g729, 0, "audio", "G729", 8000);
set_next_mime_type(ast_format_g729, 0, "audio", "G729A", 8000);
@@ -2160,6 +2167,13 @@ int ast_rtp_engine_init()
add_static_payload(118, ast_format_slin16, 0); /* 16 Khz signed linear */
add_static_payload(119, ast_format_speex32, 0);
add_static_payload(121, NULL, AST_RTP_CISCO_DTMF); /* Must be type 121 */
+ add_static_payload(122, ast_format_slin12, 0);
+ add_static_payload(123, ast_format_slin24, 0);
+ add_static_payload(124, ast_format_slin32, 0);
+ add_static_payload(125, ast_format_slin44, 0);
+ add_static_payload(126, ast_format_slin48, 0);
+ add_static_payload(127, ast_format_slin96, 0);
+ add_static_payload(128, ast_format_slin192, 0);
/* Opus and VP8 */
add_static_payload(100, ast_format_vp8, 0);
add_static_payload(107, ast_format_opus, 0);