mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Know how to send ADPCM
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2346 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
1
rtp.c
1
rtp.c
@@ -1035,6 +1035,7 @@ int ast_rtp_write(struct ast_rtp *rtp, struct ast_frame *_f)
|
|||||||
while((f = ast_smoother_read(rtp->smoother)))
|
while((f = ast_smoother_read(rtp->smoother)))
|
||||||
ast_rtp_raw_write(rtp, f, codec);
|
ast_rtp_raw_write(rtp, f, codec);
|
||||||
break;
|
break;
|
||||||
|
case AST_FORMAT_ADPCM:
|
||||||
case AST_FORMAT_G726:
|
case AST_FORMAT_G726:
|
||||||
if (!rtp->smoother) {
|
if (!rtp->smoother) {
|
||||||
rtp->smoother = ast_smoother_new(80);
|
rtp->smoother = ast_smoother_new(80);
|
||||||
|
Reference in New Issue
Block a user