Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
ast_verbose(VERBOSE_PREFIX_3 "AMD: ANSWERING MACHINE: iWordsCount:%d\n", iWordsCount );
Oct 4 09:32:47 VERBOSE[10005] logger.c: -- AMD: Word detected. iWordsCount:1
Oct 4 09:32:48 VERBOSE[10005] logger.c: -- AMD: Changed state to STATE_IN_SILENCE
Oct 4 09:32:48 VERBOSE[10005] logger.c: -- AMD: HUMAN: silenceDuration:1000 afterGreetingSilence:1000
....
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Created MeetMe conference %d for conference '%s'\n", cnf->zapconf, cnf->confno);
...
Asterisk CLI> logger rotate
if(option_verbose > 3)
ast_verbose(VERBOSE_PREFIX_4 "Channel %s was never answered.\n", dchan->name);
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "AMD: Word detected. iWordsCount:%d\n", iWordsCount);
#define VERBOSE_PREFIX_1 " "
#define VERBOSE_PREFIX_2 " == "
#define VERBOSE_PREFIX_3 " -- "
#define VERBOSE_PREFIX_4 " > "
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "AMD: Word detected. iWordsCount:%d\n", iWordsCount);
It's not the only one, the line posted is just one of the many similar ones.williamconley wrote:Is the "word detected" line the one you want to remove?
Because "if(option_verbose > 3) " part is NOT present in app.amd.c in vicidial.com and eflo.net.williamconley wrote:If so ... would you not change the "if ...>2" to a higher number
okli wrote:Same conditions are used in all versions of app_amd.c I found around, but not in the ones in eflo.net and vicidial.com.
So it seems those AMD messages are from class NOTICE, which I'd rather keep in the console.
This was not correct as was posted later on:okli wrote:At the same time, reading app_amd.c and app_amd2.c it appears those messages are for class VERBOSE, with verbosity level at least 3, if I interpret the code correctly:
okli wrote:Reading logger.h documentation from 1.4 branch:
http://www.asterisk.org/doxygen/1.4/log ... ource.html
...
shows that VERBOSE_PREFIX_N is actually the prefix printed at front of the actual message, NOT the verbosity level.
okli wrote:Neither set verbose 0, nor console => warning,error did the trick- CLI is still flooded with AMD messages.
Users browsing this forum: No registered users and 104 guests