summaryrefslogtreecommitdiff
path: root/rtp.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-03-14 18:01:29 +0000
committerMark Spencer <markster@digium.com>2004-03-14 18:01:29 +0000
commit79898006746738ec4838ea54990897fd5eb9d704 (patch)
tree40ba86e9428680e67d2879de91296324f495e2fe /rtp.c
parent9d8952f3a85c0066ce0f3d241aaefb4dea22b44f (diff)
Try to make smoother G.729B aware, and able to handle VAD bytes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2421 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'rtp.c')
-rwxr-xr-xrtp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rtp.c b/rtp.c
index d031c2db6..10178bb6b 100755
--- a/rtp.c
+++ b/rtp.c
@@ -1083,6 +1083,8 @@ int ast_rtp_write(struct ast_rtp *rtp, struct ast_frame *_f)
case AST_FORMAT_G729A:
if (!rtp->smoother) {
rtp->smoother = ast_smoother_new(20);
+ if (rtp->smoother)
+ ast_smoother_set_flags(rtp->smoother, AST_SMOOTHER_FLAG_G729);
}
if (!rtp->smoother) {
ast_log(LOG_WARNING, "Unable to create g729 smoother :(\n");