[asterisk-commits] jdixon: branch jdixon/chan_usbradio-1.4 r141092 - /team/jdixon/chan_usbradio-...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Sep 4 15:28:07 CDT 2008


Author: jdixon
Date: Thu Sep  4 15:28:07 2008
New Revision: 141092

URL: http://svn.digium.com/view/asterisk?view=rev&rev=141092
Log:
Ok, this time for sure (no DTMF on remote)

Modified:
    team/jdixon/chan_usbradio-1.4/apps/app_rpt.c

Modified: team/jdixon/chan_usbradio-1.4/apps/app_rpt.c
URL: http://svn.digium.com/view/asterisk/team/jdixon/chan_usbradio-1.4/apps/app_rpt.c?view=diff&rev=141092&r1=141091&r2=141092
==============================================================================
--- team/jdixon/chan_usbradio-1.4/apps/app_rpt.c (original)
+++ team/jdixon/chan_usbradio-1.4/apps/app_rpt.c Thu Sep  4 15:28:07 2008
@@ -22,7 +22,7 @@
 /*! \file
  *
  * \brief Radio Repeater / Remote Base program 
- *  version 0.142 9/4/08 
+ *  version 0.143 9/4/08 
  * 
  * \author Jim Dixon, WB6NIL <jim at lambdatel.com>
  *
@@ -380,7 +380,7 @@
 /*! Stop the tones from playing */
 void ast_playtones_stop(struct ast_channel *chan);
 
-static  char *tdesc = "Radio Repeater / Remote Base  version 0.142  9/4/2008";
+static  char *tdesc = "Radio Repeater / Remote Base  version 0.143  9/4/2008";
 
 static char *app = "Rpt";
 
@@ -9563,7 +9563,7 @@
 char	*offsets[] = {"SIMPLEX","MINUS","PLUS"};
 char	*powerlevels[] = {"LOW","MEDIUM","HIGH"};
 char	*modes[] = {"FM","USB","LSB","AM"};
-int	res = -1,val = 0;
+int	res = -1;
 
 #if	0
 printf("FREQ,%s,%s,%s,%s,%s,%s,%d,%d\n",myrpt->freq,
@@ -9581,9 +9581,6 @@
 			myrpt->rxplon);
 		donodelog(myrpt,str);
 	}
-
-	if (myrpt->remote) val = 3; else val = 1;
-	ast_channel_setoption(myrpt->rxchannel,AST_OPTION_TONE_VERIFY,&val,sizeof(char),0);
 
 	if(!strcmp(myrpt->remoterig, remote_rig_ft897))
 	{
@@ -14117,6 +14114,8 @@
 	LOCAL_USER_ADD(u);
 #endif
 	rpt_mutex_unlock(&myrpt->lock);
+	i = 3;
+	ast_channel_setoption(myrpt->rxchannel,AST_OPTION_TONE_VERIFY,&i,sizeof(char),0);
 	/* find our index, and load the vars initially */
 	for(i = 0; i < nrpts; i++)
 	{




More information about the asterisk-commits mailing list