diff options
Diffstat (limited to 'apps/app_echo.c')
-rwxr-xr-x | apps/app_echo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_echo.c b/apps/app_echo.c index 669018ec2..cacfe07d9 100755 --- a/apps/app_echo.c +++ b/apps/app_echo.c @@ -44,6 +44,8 @@ static int echo_exec(struct ast_channel *chan, void *data) struct localuser *u; struct ast_frame *f; LOCAL_USER_ADD(u); + ast_set_write_format(chan, ast_best_codec(chan->nativeformats)); + ast_set_read_format(chan, ast_best_codec(chan->nativeformats)); /* Do our thing here */ while((f = ast_read(chan))) { if (f->frametype == AST_FRAME_VOICE) { |