[asterisk-commits] rmudgett: branch rmudgett/misdn_facility r168806 - /team/rmudgett/misdn_facil...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 16 12:32:21 CST 2009


Author: rmudgett
Date: Fri Jan 16 12:32:21 2009
New Revision: 168806

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=168806
Log:
Made verbose level conditional ast_verbose() use ast_verb() instead.

Modified:
    team/rmudgett/misdn_facility/channels/chan_misdn.c

Modified: team/rmudgett/misdn_facility/channels/chan_misdn.c
URL: http://svn.digium.com/svn-view/asterisk/team/rmudgett/misdn_facility/channels/chan_misdn.c?view=diff&rev=168806&r1=168805&r2=168806
==============================================================================
--- team/rmudgett/misdn_facility/channels/chan_misdn.c (original)
+++ team/rmudgett/misdn_facility/channels/chan_misdn.c Fri Jan 16 12:32:21 2009
@@ -8579,9 +8579,7 @@
 		ast_log(LOG_WARNING, "Unable to start pbx channel %s!\n", chan->name);
 		ast_channel_free(chan);
 	} else {
-		if (option_verbose) {
-			ast_verbose(VERBOSE_PREFIX_1 "Started pbx for call completion notify channel %s\n", chan->name);
-		}
+		ast_verb(1, "Started pbx for call completion notify channel %s\n", chan->name);
 	}
 }	/* end misdn_cc_pbx_notify() */
 #endif	/* defined(AST_MISDN_ENHANCEMENTS) */
@@ -10707,10 +10705,8 @@
 	}
 	ast_mutex_unlock(&misdn_cc_record_lock);
 	if (error_str) {
-		if (option_verbose) {
-			ast_verbose(VERBOSE_PREFIX_1 "%s(%s) diagnostic '%s' on channel %s\n",
-				misdn_command_name, subcommand->name, error_str, chan->name);
-		}
+		ast_verb(1, "%s(%s) diagnostic '%s' on channel %s\n",
+			misdn_command_name, subcommand->name, error_str, chan->name);
 		pbx_builtin_setvar_helper(chan, MISDN_ERROR_MSG, error_str);
 	}
 
@@ -11035,10 +11031,8 @@
 	}
 	ast_mutex_unlock(&misdn_cc_record_lock);
 	if (error_str) {
-		if (option_verbose) {
-			ast_verbose(VERBOSE_PREFIX_1 "%s(%s) diagnostic '%s' on channel %s\n",
-				misdn_command_name, subcommand->name, error_str, chan->name);
-		}
+		ast_verb(1, "%s(%s) diagnostic '%s' on channel %s\n",
+			misdn_command_name, subcommand->name, error_str, chan->name);
 		pbx_builtin_setvar_helper(chan, MISDN_ERROR_MSG, error_str);
 		pbx_builtin_setvar_helper(chan, MISDN_CC_STATUS, "ERROR");
 	} else {




More information about the asterisk-commits mailing list