summaryrefslogtreecommitdiff
path: root/indications.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-01-28 21:32:48 +0000
committerMark Spencer <markster@digium.com>2004-01-28 21:32:48 +0000
commit695422d698e01ee984b87eb944a3aff12a871c32 (patch)
treeccb01541f202b4ff5fa2699daa4ac2d97f68aadf /indications.c
parentc0eb1e6bfe8d44977c1976d1779f22ef886b4d8e (diff)
Various minor cleanups (bug #931)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2087 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'indications.c')
-rwxr-xr-xindications.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/indications.c b/indications.c
index 864fd6a3d..55e11ff8b 100755
--- a/indications.c
+++ b/indications.c
@@ -235,7 +235,8 @@ int ast_set_indication_country(const char *country)
if (country) {
struct tone_zone *z = ast_get_indication_zone(country);
if (z) {
- ast_verbose(VERBOSE_PREFIX_3 "Setting default indication country to '%s'\n",country);
+ if (option_verbose > 2)
+ ast_verbose(VERBOSE_PREFIX_3 "Setting default indication country to '%s'\n",country);
current_tonezone = z;
return 0;
}
@@ -359,7 +360,8 @@ int ast_register_indication_country(struct tone_zone *zone)
tone_zones = zone;
ast_mutex_unlock(&tzlock);
- ast_verbose(VERBOSE_PREFIX_3 "Registered indication country '%s'\n",zone->country);
+ if (option_verbose > 2)
+ ast_verbose(VERBOSE_PREFIX_3 "Registered indication country '%s'\n",zone->country);
return 0;
}
@@ -390,7 +392,8 @@ int ast_unregister_indication_country(const char *country)
ast_log(LOG_NOTICE,"Removed default indication country '%s'\n",tz->country);
current_tonezone = NULL;
}
- ast_verbose(VERBOSE_PREFIX_3 "Unregistered indication country '%s'\n",tz->country);
+ if (option_verbose > 2)
+ ast_verbose(VERBOSE_PREFIX_3 "Unregistered indication country '%s'\n",tz->country);
free_zone(tz);
tz = tmp;
res = 0;