[asterisk-commits] rmudgett: branch 12 r397898 - /branches/12/main/cdr.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 28 17:42:28 CDT 2013


Author: rmudgett
Date: Wed Aug 28 17:42:26 2013
New Revision: 397898

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=397898
Log:
Made the on/off in CLI "cdr set debug [on|off]" case insensitive.

Modified:
    branches/12/main/cdr.c

Modified: branches/12/main/cdr.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/cdr.c?view=diff&rev=397898&r1=397897&r2=397898
==============================================================================
--- branches/12/main/cdr.c (original)
+++ branches/12/main/cdr.c Wed Aug 28 17:42:26 2013
@@ -3573,10 +3573,12 @@
 		return CLI_SHOWUSAGE;
 	}
 
-	if (!strcmp(a->argv[3], "on") && !ast_test_flag(&mod_cfg->general->settings, CDR_DEBUG)) {
+	if (!strcasecmp(a->argv[3], "on")
+		&& !ast_test_flag(&mod_cfg->general->settings, CDR_DEBUG)) {
 		ast_set_flag(&mod_cfg->general->settings, CDR_DEBUG);
 		ast_cli(a->fd, "CDR debugging enabled\n");
-	} else if (!strcmp(a->argv[3], "off") && ast_test_flag(&mod_cfg->general->settings, CDR_DEBUG)) {
+	} else if (!strcasecmp(a->argv[3], "off")
+		&& ast_test_flag(&mod_cfg->general->settings, CDR_DEBUG)) {
 		ast_clear_flag(&mod_cfg->general->settings, CDR_DEBUG);
 		ast_cli(a->fd, "CDR debugging disabled\n");
 	}




More information about the asterisk-commits mailing list