[asterisk-commits] branch jcollie/bug6082 r29012 - /team/jcollie/bug6082/manager.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri May 19 21:47:04 MST 2006


Author: jcollie
Date: Fri May 19 23:47:03 2006
New Revision: 29012

URL: http://svn.digium.com/view/asterisk?rev=29012&view=rev
Log:
Minor tweak.

Modified:
    team/jcollie/bug6082/manager.c

Modified: team/jcollie/bug6082/manager.c
URL: http://svn.digium.com/view/asterisk/team/jcollie/bug6082/manager.c?rev=29012&r1=29011&r2=29012&view=diff
==============================================================================
--- team/jcollie/bug6082/manager.c (original)
+++ team/jcollie/bug6082/manager.c Fri May 19 23:47:03 2006
@@ -1979,7 +1979,8 @@
 	if (!num_sessions)
 		return 0;
 
-	if (category == EVENT_FLAG_DTMF && !ast_test_flag(&global_options, MANAGER_FLAG_GENERATE_DTMF_EVENTS))
+	/* Do not actually send a DTMF event if the global DTMF event flag is off. */
+	if (category & EVENT_FLAG_DTMF && !ast_test_flag(&global_options, MANAGER_FLAG_GENERATE_DTMF_EVENTS))
 		return 0;
 
 	ast_build_string(&tmp_next, &tmp_left, "Event: %s\r\nPrivilege: %s\r\n",



More information about the asterisk-commits mailing list