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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 30 06:12:26 CDT 2008


Author: jdixon
Date: Wed Jul 30 06:12:26 2008
New Revision: 134346

URL: http://svn.digium.com/view/asterisk?view=rev&rev=134346
Log:
Added facility to shut dtmf decode off

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=134346&r1=134345&r2=134346
==============================================================================
--- team/jdixon/chan_usbradio-1.4/apps/app_rpt.c (original)
+++ team/jdixon/chan_usbradio-1.4/apps/app_rpt.c Wed Jul 30 06:12:26 2008
@@ -21,7 +21,7 @@
 /*! \file
  *
  * \brief Radio Repeater / Remote Base program 
- *  version 0.120 7/24/08 2055 EDT
+ *  version 0.121 7/30/08 2055 EDT
  * 
  * \author Jim Dixon, WB6NIL <jim at lambdatel.com>
  *
@@ -374,7 +374,7 @@
 /*! Stop the tones from playing */
 void ast_playtones_stop(struct ast_channel *chan);
 
-static  char *tdesc = "Radio Repeater / Remote Base  version 0.119  6/03/2008";
+static  char *tdesc = "Radio Repeater / Remote Base  version 0.121  7/30/2008";
 
 static char *app = "Rpt";
 
@@ -9339,7 +9339,7 @@
 char	*offsets[] = {"SIMPLEX","MINUS","PLUS"};
 char	*powerlevels[] = {"LOW","MEDIUM","HIGH"};
 char	*modes[] = {"FM","USB","LSB","AM"};
-int	res = -1;
+int	res = -1,val = 0;
 
 #if	0
 printf("FREQ,%s,%s,%s,%s,%s,%s,%d,%d\n",myrpt->freq,
@@ -9357,6 +9357,10 @@
 			myrpt->rxplon);
 		donodelog(myrpt,str);
 	}
+
+	if (myrpt->remmode != REM_MODE_FM) 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))
 	{
 		rpt_telemetry(myrpt,SETREMOTE,NULL);




More information about the asterisk-commits mailing list