aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_echo.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-12-20 15:21:47 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-12-20 15:21:47 +0000
commitf3a2afa02ecccbf4300c74b832248630a761df6a (patch)
treee3505b6e25cf1e9ba951ed37d57efd81b4433969 /apps/app_echo.c
parent21b6f9e94726a70c03a09b7fe6f4e79c7e2f61db (diff)
Version 0.1.10 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@395 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_echo.c')
-rwxr-xr-xapps/app_echo.c2
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) {