[asterisk-commits] rmudgett: trunk r389569 - /trunk/main/features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu May 23 13:40:54 CDT 2013


Author: rmudgett
Date: Thu May 23 13:40:50 2013
New Revision: 389569

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=389569
Log:
Fix inverted test preventing DTMF disconnect from working.

Modified:
    trunk/main/features.c

Modified: trunk/main/features.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/features.c?view=diff&rev=389569&r1=389568&r2=389569
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Thu May 23 13:40:50 2013
@@ -4181,7 +4181,7 @@
 	}
 	if (ast_test_flag(flags, AST_FEATURE_DISCONNECT)) {
 		builtin_feature_get_exten(chan, "disconnect", dtmf, sizeof(dtmf));
-		if (ast_strlen_zero(dtmf)) {
+		if (!ast_strlen_zero(dtmf)) {
 			res |= ast_bridge_features_enable(features, AST_BRIDGE_BUILTIN_HANGUP, dtmf, NULL, NULL, 1);
 		}
 	}




More information about the asterisk-commits mailing list