[asterisk-commits] file: trunk r428708 - /trunk/main/rtp_engine.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 1 12:51:59 CST 2014


Author: file
Date: Mon Dec  1 12:51:52 2014
New Revision: 428708

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=428708
Log:
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/

Modified:
    trunk/main/rtp_engine.c

Modified: trunk/main/rtp_engine.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/rtp_engine.c?view=diff&rev=428708&r1=428707&r2=428708
==============================================================================
--- trunk/main/rtp_engine.c (original)
+++ trunk/main/rtp_engine.c Mon Dec  1 12:51:52 2014
@@ -2090,6 +2090,13 @@
 	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 @@
 	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);




More information about the asterisk-commits mailing list