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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Aug 2 10:42:40 CDT 2008


Author: jdixon
Date: Sat Aug  2 10:42:40 2008
New Revision: 135362

URL: http://svn.digium.com/view/asterisk?view=rev&rev=135362
Log:
Added muting when no rx input

Modified:
    team/jdixon/chan_usbradio-1.4/channels/chan_usbradio.c

Modified: team/jdixon/chan_usbradio-1.4/channels/chan_usbradio.c
URL: http://svn.digium.com/view/asterisk/team/jdixon/chan_usbradio-1.4/channels/chan_usbradio.c?view=diff&rev=135362&r1=135361&r2=135362
==============================================================================
--- team/jdixon/chan_usbradio-1.4/channels/chan_usbradio.c (original)
+++ team/jdixon/chan_usbradio-1.4/channels/chan_usbradio.c Sat Aug  2 10:42:40 2008
@@ -44,7 +44,7 @@
         </member>
  ***/
 
-// 20070918 1600 EDT sph at xelatec.com changing to rx driven streams
+// 20080802 
 
 #include "asterisk.h"
 
@@ -2049,11 +2049,11 @@
 		//printf("AST_CONTROL_RADIO_KEY\n");
 		wf.subclass = AST_CONTROL_RADIO_KEY;
 		if(o->rxctcssdecode)  	
-        {
-	        wf.data = o->rxctcssfreq;
-	        wf.datalen = strlen(o->rxctcssfreq) + 1;
-			TRACEO(1,("AST_CONTROL_RADIO_KEY text=%s\n",o->rxctcssfreq));
-        }
+	        {
+		        wf.data = o->rxctcssfreq;
+		        wf.datalen = strlen(o->rxctcssfreq) + 1;
+				TRACEO(1,("AST_CONTROL_RADIO_KEY text=%s\n",o->rxctcssfreq));
+	        }
 		ast_queue_frame(o->owner, &wf);
 	}
 
@@ -2079,6 +2079,7 @@
 		}
 	}
 
+	if (!o->rxkeyed) memset(f->data,0,f->datalen);
 	f->offset = AST_FRIENDLY_OFFSET;
 	if (o->usedtmf && o->dsp)
 	{




More information about the asterisk-commits mailing list