[asterisk-commits] dvossel: trunk r271261 - in /trunk: ./ main/ res/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jun 17 13:36:11 CDT 2010
Author: dvossel
Date: Thu Jun 17 13:36:06 2010
New Revision: 271261
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=271261
Log:
adds support for slin16 in sip
(closes issue #16153)
Reported by: kfister
Patches:
16153-1.6.2.0-rc5.patch uploaded by kfister (license 912)
slin16.sip.patch.1 uploaded by malcolmd (license 924)
Tested by: kfister, malcolmd
Modified:
trunk/CHANGES
trunk/main/rtp_engine.c
trunk/res/res_rtp_asterisk.c
Modified: trunk/CHANGES
URL: http://svnview.digium.com/svn/asterisk/trunk/CHANGES?view=diff&rev=271261&r1=271260&r2=271261
==============================================================================
--- trunk/CHANGES (original)
+++ trunk/CHANGES Thu Jun 17 13:36:06 2010
@@ -68,6 +68,7 @@
* Added the 'snom_aoc_enabled' option to turn on support for sending Advice of
Charge messages to snom phones.
* Added support for G.719 media streams.
+ * Added support for 16khz signed linear media streams.
IAX2 Changes
-----------
Modified: trunk/main/rtp_engine.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/rtp_engine.c?view=diff&rev=271261&r1=271260&r2=271261
==============================================================================
--- trunk/main/rtp_engine.c (original)
+++ trunk/main/rtp_engine.c Thu Jun 17 13:36:06 2010
@@ -97,6 +97,7 @@
{{1, AST_FORMAT_G726}, "audio", "G726-32", 8000},
{{1, AST_FORMAT_ADPCM}, "audio", "DVI4", 8000},
{{1, AST_FORMAT_SLINEAR}, "audio", "L16", 8000},
+ {{1, AST_FORMAT_SLINEAR16}, "audio", "L16", 16000},
{{1, AST_FORMAT_LPC10}, "audio", "LPC", 8000},
{{1, AST_FORMAT_G729A}, "audio", "G729", 8000},
{{1, AST_FORMAT_G729A}, "audio", "G729A", 8000},
@@ -165,15 +166,16 @@
[102] = {1, AST_FORMAT_SIREN7},
[103] = {1, AST_FORMAT_H263_PLUS},
[104] = {1, AST_FORMAT_MP4_VIDEO},
- [105] = {1, AST_FORMAT_T140RED}, /* Real time text chat (with redundancy encoding) */
- [106] = {1, AST_FORMAT_T140}, /* Real time text chat */
+ [105] = {1, AST_FORMAT_T140RED}, /* Real time text chat (with redundancy encoding) */
+ [106] = {1, AST_FORMAT_T140}, /* Real time text chat */
[110] = {1, AST_FORMAT_SPEEX},
[111] = {1, AST_FORMAT_G726},
[112] = {1, AST_FORMAT_G726_AAL2},
[115] = {1, AST_FORMAT_SIREN14},
[116] = {1, AST_FORMAT_G719},
[117] = {1, AST_FORMAT_SPEEX16},
- [121] = {0, AST_RTP_CISCO_DTMF}, /* Must be type 121 */
+ [118] = {1, AST_FORMAT_SLINEAR16}, /* 16 Khz signed linear */
+ [121] = {0, AST_RTP_CISCO_DTMF}, /* Must be type 121 */
};
int ast_rtp_engine_register2(struct ast_rtp_engine *engine, struct ast_module *module)
Modified: trunk/res/res_rtp_asterisk.c
URL: http://svnview.digium.com/svn/asterisk/trunk/res/res_rtp_asterisk.c?view=diff&rev=271261&r1=271260&r2=271261
==============================================================================
--- trunk/res/res_rtp_asterisk.c (original)
+++ trunk/res/res_rtp_asterisk.c Thu Jun 17 13:36:06 2010
@@ -2230,7 +2230,7 @@
if (rtp->f.subclass.codec & AST_FORMAT_AUDIO_MASK) {
rtp->f.samples = ast_codec_get_samples(&rtp->f);
- if (rtp->f.subclass.codec == AST_FORMAT_SLINEAR)
+ if (rtp->f.subclass.codec == AST_FORMAT_SLINEAR || AST_FORMAT_SLINEAR16)
ast_frame_byteswap_be(&rtp->f);
calc_rxstamp(&rtp->f.delivery, rtp, timestamp, mark);
/* Add timing data to let ast_generic_bridge() put the frame into a jitterbuf */
More information about the asterisk-commits
mailing list