aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_agi.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 /res/res_agi.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 'res/res_agi.c')
-rw-r--r--res/res_agi.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index 75692089b..0fea962fc 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -1584,7 +1584,6 @@ static int handle_getvariablefull(struct ast_channel *chan, AGI *agi, int argc,
static int handle_verbose(struct ast_channel *chan, AGI *agi, int argc, char **argv)
{
int level = 0;
- char *prefix;
if (argc < 2)
return RESULT_SHOWUSAGE;
@@ -1592,24 +1591,7 @@ static int handle_verbose(struct ast_channel *chan, AGI *agi, int argc, char **a
if (argv[2])
sscanf(argv[2], "%d", &level);
- switch (level) {
- case 4:
- prefix = VERBOSE_PREFIX_4;
- break;
- case 3:
- prefix = VERBOSE_PREFIX_3;
- break;
- case 2:
- prefix = VERBOSE_PREFIX_2;
- break;
- case 1:
- default:
- prefix = VERBOSE_PREFIX_1;
- break;
- }
-
- if (level <= option_verbose)
- ast_verbose("%s %s: %s\n", prefix, chan->data, argv[1]);
+ ast_verb(level, "%s: %s\n", chan->data, argv[1]);
ast_agi_fdprintf(chan, agi->fd, "200 result=1\n");