mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 23:08:32 +00:00
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: https://origsvn.digium.com/svn/asterisk/trunk@102525 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user