[svn-commits] jdixon: branch jdixon/chan_usbradio-1.4 r140013 - /team/jdixon/chan_usbradio-...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Aug 25 20:26:38 CDT 2008


Author: jdixon
Date: Mon Aug 25 20:26:37 2008
New Revision: 140013

URL: http://svn.digium.com/view/asterisk?view=rev&rev=140013
Log:
Attempt fix of slight annoyance when using Zap/pseudo for radio

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=140013&r1=140012&r2=140013
==============================================================================
--- team/jdixon/chan_usbradio-1.4/apps/app_rpt.c (original)
+++ team/jdixon/chan_usbradio-1.4/apps/app_rpt.c Mon Aug 25 20:26:37 2008
@@ -21,7 +21,7 @@
 /*! \file
  *
  * \brief Radio Repeater / Remote Base program 
- *  version 0.130 8/25/08 2055 EDT
+ *  version 0.131 8/25/08 2055 EDT
  * 
  * \author Jim Dixon, WB6NIL <jim at lambdatel.com>
  *
@@ -377,7 +377,7 @@
 /*! Stop the tones from playing */
 void ast_playtones_stop(struct ast_channel *chan);
 
-static  char *tdesc = "Radio Repeater / Remote Base  version 0.130  8/25/2008";
+static  char *tdesc = "Radio Repeater / Remote Base  version 0.131  8/25/2008";
 
 static char *app = "Rpt";
 
@@ -11079,8 +11079,11 @@
 		if (!strncasecmp(myrpt->rxchanname,"Zap",3))
 			myrpt->zaptxchannel = myrpt->txchannel;
 	}
-	ast_indicate(myrpt->txchannel,AST_CONTROL_RADIO_KEY);
-	ast_indicate(myrpt->txchannel,AST_CONTROL_RADIO_UNKEY);
+	if (strncasecmp(myrpt->txchannel->name,"Zap/Pseudo",10))
+	{
+		ast_indicate(myrpt->txchannel,AST_CONTROL_RADIO_KEY);
+		ast_indicate(myrpt->txchannel,AST_CONTROL_RADIO_UNKEY);
+	}
 	/* allocate a pseudo-channel thru asterisk */
 	myrpt->pchannel = ast_request("zap",AST_FORMAT_SLINEAR,"pseudo",NULL);
 	if (!myrpt->pchannel)




More information about the svn-commits mailing list