aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_privacy.c
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-05 23:00:15 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-05 23:00:15 +0000
commit8ceb053cff649938ab88166c64760dee8727403c (patch)
tree5c9c08fb9ce70cd29aa48d1b901718df97e63dac /apps/app_privacy.c
parenta53c56e616a589654dc7ebe47297426a1a1eac74 (diff)
Get rid of any remaining ast_verbose calls in the code in favor of
ast_verb (closes issue #11934) Reported by: mvanbaak Patches: 20080205_astverb-2.diff.txt uploaded by mvanbaak (license 7) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@102525 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_privacy.c')
-rw-r--r--apps/app_privacy.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/app_privacy.c b/apps/app_privacy.c
index dacfd704c..e8e0f4d1c 100644
--- a/apps/app_privacy.c
+++ b/apps/app_privacy.c
@@ -76,8 +76,7 @@ static int privacy_exec (struct ast_channel *chan, void *data)
);
if (!ast_strlen_zero(chan->cid.cid_num)) {
- if (option_verbose > 2)
- ast_verbose (VERBOSE_PREFIX_3 "CallerID Present: Skipping\n");
+ ast_verb(3, "CallerID Present: Skipping\n");
} else {
/*Answer the channel if it is not already*/
if (chan->_state != AST_STATE_UP) {
@@ -148,9 +147,8 @@ static int privacy_exec (struct ast_channel *chan, void *data)
*/
chan->cid.cid_pres &= (AST_PRES_UNAVAILABLE ^ 0xFF);
- if (option_verbose > 2) {
- ast_verbose (VERBOSE_PREFIX_3 "Changed Caller*ID to %s, callerpres to %d\n",phone,chan->cid.cid_pres);
- }
+ ast_verb(3, "Changed Caller*ID to %s, callerpres to %d\n",phone,chan->cid.cid_pres);
+
pbx_builtin_setvar_helper(chan, "PRIVACYMGRSTATUS", "SUCCESS");
} else {
pbx_builtin_setvar_helper(chan, "PRIVACYMGRSTATUS", "FAILED");