aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_rpt.c
diff options
context:
space:
mode:
authorjim <jim@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-23 14:37:46 +0000
committerjim <jim@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-23 14:37:46 +0000
commit393905e04482c2b64e7e4d4a271d6e9a594fe527 (patch)
treefbbc76c1df8a0af98b5dff1dab9b495df13147a7 /apps/app_rpt.c
parent3ce80140ef51b18d7cd8dcc8d3f67d2dff1dd02f (diff)
Fixed bug in remote base part of app_rpt, and updated rpt.conf.sample to
reflect new changes in operation. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3285 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_rpt.c')
-rwxr-xr-xapps/app_rpt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_rpt.c b/apps/app_rpt.c
index bf6a51d41..526af3e8d 100755
--- a/apps/app_rpt.c
+++ b/apps/app_rpt.c
@@ -3,7 +3,7 @@
* Asterisk -- A telephony toolkit for Linux.
*
* Radio Repeater / Remote Base program
- * version 0.4 6/19/04
+ * version 0.5 6/22/04
*
* Copyright (C) 2002-2004, Jim Dixon, WB6NIL
*
@@ -1977,8 +1977,8 @@ static int rpt_exec(struct ast_channel *chan, void *data)
myrpt->remotetx = 0;
myrpt->remoteon = 1;
ast_mutex_unlock(&myrpt->lock);
- ast_set_write_format(chan, ast_best_codec(chan->nativeformats));
- ast_set_read_format(chan, ast_best_codec(chan->nativeformats));
+ ast_set_write_format(chan, AST_FORMAT_SLINEAR);
+ ast_set_read_format(chan, AST_FORMAT_SLINEAR);
/* if we are on 2w loop and are a remote, turn EC on */
if (myrpt->remote && (myrpt->rxchannel == myrpt->txchannel))
{