[asterisk-commits] oej: branch oej/silence-detection-games-1.8 r411921 - /team/oej/silence-detec...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Apr 8 08:57:18 CDT 2014


Author: oej
Date: Tue Apr  8 08:57:12 2014
New Revision: 411921

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=411921
Log:
Refuse to write the null frame. 

Modified:
    team/oej/silence-detection-games-1.8/channels/chan_sip.c

Modified: team/oej/silence-detection-games-1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/silence-detection-games-1.8/channels/chan_sip.c?view=diff&rev=411921&r1=411920&r2=411921
==============================================================================
--- team/oej/silence-detection-games-1.8/channels/chan_sip.c (original)
+++ team/oej/silence-detection-games-1.8/channels/chan_sip.c Tue Apr  8 08:57:12 2014
@@ -6916,6 +6916,11 @@
 	struct sip_pvt *p = ast->tech_pvt;
 	int res = 0;
 
+	if (frame == &ast_null_frame) {
+		/* We do not send null frames. Sorry */
+		return 1;
+	}
+
 	switch (frame->frametype) {
 	case AST_FRAME_VOICE:
 		if (!(frame->subclass.codec & ast->nativeformats)) {




More information about the asterisk-commits mailing list