[asterisk-commits] file: branch file/bridging r174216 - /team/file/bridging/main/bridging.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sun Feb 8 13:44:34 CST 2009


Author: file
Date: Sun Feb  8 13:44:34 2009
New Revision: 174216

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=174216
Log:
Only copy the default DTMF string if we were actually given one.

Modified:
    team/file/bridging/main/bridging.c

Modified: team/file/bridging/main/bridging.c
URL: http://svn.digium.com/svn-view/asterisk/team/file/bridging/main/bridging.c?view=diff&rev=174216&r1=174215&r2=174216
==============================================================================
--- team/file/bridging/main/bridging.c (original)
+++ team/file/bridging/main/bridging.c Sun Feb  8 13:44:34 2009
@@ -1185,7 +1185,10 @@
 		return -1;
 	}
 
-	ast_copy_string(builtin_features_dtmf[feature], dtmf, sizeof(builtin_features_dtmf[feature]));
+	if (!ast_strlen_zero(dtmf)) {
+		ast_copy_string(builtin_features_dtmf[feature], dtmf, sizeof(builtin_features_dtmf[feature]));
+	}
+	
 	builtin_features_handlers[feature] = callback;
 	
 	return 0;




More information about the asterisk-commits mailing list