mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 14:58:25 +00:00
G726-32 changes:
split support for G726-32 into RFC3551 and AAL2 packing orders, since both are in use change "G726-32" to be RFC3551 packing order, in spite of devices that use AAL2 order with this MIME type add ability to directly transcode between packing orders git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37494 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
3
rtp.c
3
rtp.c
@@ -1182,6 +1182,7 @@ static struct {
|
||||
{{1, AST_FORMAT_G729A}, "audio", "G729"},
|
||||
{{1, AST_FORMAT_SPEEX}, "audio", "speex"},
|
||||
{{1, AST_FORMAT_ILBC}, "audio", "iLBC"},
|
||||
{{1, AST_FORMAT_G726_AAL2}, "audio", "AAL2-G726-32"},
|
||||
{{0, AST_RTP_DTMF}, "audio", "telephone-event"},
|
||||
{{0, AST_RTP_CISCO_DTMF}, "audio", "cisco-telephone-event"},
|
||||
{{0, AST_RTP_CN}, "audio", "CN"},
|
||||
@@ -1223,6 +1224,7 @@ static struct rtpPayloadType static_RTP_PT[MAX_RTP_PT] = {
|
||||
[101] = {0, AST_RTP_DTMF},
|
||||
[110] = {1, AST_FORMAT_SPEEX},
|
||||
[111] = {1, AST_FORMAT_G726},
|
||||
[112] = {1, AST_FORMAT_G726_AAL2},
|
||||
[121] = {0, AST_RTP_CISCO_DTMF}, /* Must be type 121 */
|
||||
};
|
||||
|
||||
@@ -2376,6 +2378,7 @@ int ast_rtp_write(struct ast_rtp *rtp, struct ast_frame *_f)
|
||||
break;
|
||||
case AST_FORMAT_ADPCM:
|
||||
case AST_FORMAT_G726:
|
||||
case AST_FORMAT_G726_AAL2:
|
||||
if (!rtp->smoother) {
|
||||
rtp->smoother = ast_smoother_new(80);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user