[asterisk-commits] oej: branch oej/teapot-1.8 r412072 - in /team/oej/teapot-1.8: channels/ main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Apr 10 10:46:32 CDT 2014


Author: oej
Date: Thu Apr 10 10:46:24 2014
New Revision: 412072

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=412072
Log:
Minor corrections to my brew

Modified:
    team/oej/teapot-1.8/channels/chan_sip.c
    team/oej/teapot-1.8/main/silencedetection.c

Modified: team/oej/teapot-1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/teapot-1.8/channels/chan_sip.c?view=diff&rev=412072&r1=412071&r2=412072
==============================================================================
--- team/oej/teapot-1.8/channels/chan_sip.c (original)
+++ team/oej/teapot-1.8/channels/chan_sip.c Thu Apr 10 10:46:24 2014
@@ -6864,7 +6864,7 @@
 
 	if (frame == &ast_null_frame || frame->frametype == AST_FRAME_NULL) {
 		/* We do not send null frames. Sorry */
-		return 1;
+		return 0;
 	}
 
 	switch (frame->frametype) {

Modified: team/oej/teapot-1.8/main/silencedetection.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/teapot-1.8/main/silencedetection.c?view=diff&rev=412072&r1=412071&r2=412072
==============================================================================
--- team/oej/teapot-1.8/main/silencedetection.c (original)
+++ team/oej/teapot-1.8/main/silencedetection.c Thu Apr 10 10:46:24 2014
@@ -102,13 +102,13 @@
 	struct silence_detection_info *sildet = NULL;
 
 	if (direction != AST_AUDIOHOOK_DIRECTION_WRITE) {
-		return 1;
+		return 0;
 	}
 
 	/* If the audiohook is stopping it means the channel is shutting down.... but we let the datastore destroy take care of it */
 	if (audiohook->status == AST_AUDIOHOOK_STATUS_DONE) {
 		ast_debug(7, "Audiohook giving up - STATUS_DONE \n");
-		return 1;
+		return 0;
 	}
 
 	ast_channel_lock(chan);
@@ -116,14 +116,14 @@
 	if (!(datastore = ast_channel_datastore_find(chan, &sildet_datastore, NULL))) {
 		ast_channel_unlock(chan);
 		ast_debug(2, "Can't find any datastore to use. Bad. \n");
-		return 1;
+		return 0;
 	}
 
 	sildet = datastore->data;
 	if (!sildet || !sildet->dsp) {
 		ast_channel_unlock(chan);
 		ast_debug(2, "Can't find any DSP to use. Bad. \n");
-		return 1;
+		return 0;
 	}
 
 	/* If this is audio then allow them to increase/decrease the gains */
@@ -175,7 +175,7 @@
 	}
 	ast_channel_unlock(chan);
 
-	return 1;
+	return 0;
 }
 
 /*! \brief Initialize mute hook on channel, but don't activate it




More information about the asterisk-commits mailing list