summaryrefslogtreecommitdiff
path: root/main/manager.c
diff options
context:
space:
mode:
authorGeorge Joseph <gjoseph@digium.com>2017-01-25 05:50:43 -0700
committerGeorge Joseph <gjoseph@digium.com>2017-01-27 15:10:02 -0600
commitef4deb8ecd52a3c0b0952badc6ec0e5e48231011 (patch)
tree7a42bcb1bd317c395dc1532d34645a210c4aa46a /main/manager.c
parent3eabae43c461e55d9a1a93fee961f0e69eccc129 (diff)
debug_utilities: Add ast_logescalator
The escalator works by creating a set of startup commands in cli.conf that set up logger channels and issue the debug commands for the subsystems specified. If asterisk is running when it is executed, the same commands will be issued to the running instance. The original cli.conf is saved before any changes are made and can be restored by executing '$prog --reset'. The log output will be stored in... $astlogdir/message.$uniqueid $astlogdir/debug.$uniqueid $astlogdir/dtmf.$uniqueid $astlogdir/fax.$uniqueid $astlogdir/security.$uniqueid $astlogdir/pjsip_history.$uniqueid $astlogdir/sip_history.$uniqueid Some minor tweaks were made to chan_sip, and res_pjsip_history so their history output could be send to a log channel as packets are captured. A minor tweak was also made to manager so events are output to verbose when "manager set debug on" is issued. Change-Id: I799f8e5013b86dc5282961b27383d134bf09e543
Diffstat (limited to 'main/manager.c')
-rw-r--r--main/manager.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c
index f059015c7..dfe056438 100644
--- a/main/manager.c
+++ b/main/manager.c
@@ -5889,7 +5889,11 @@ static int match_filter(struct mansession *s, char *eventdata)
{
int result = 0;
- ast_debug(3, "Examining AMI event:\n%s\n", eventdata);
+ if (manager_debug) {
+ ast_verbose("<-- Examining AMI event: -->\n%s\n", eventdata);
+ } else {
+ ast_debug(3, "Examining AMI event:\n%s\n", eventdata);
+ }
if (!ao2_container_count(s->session->whitefilters) && !ao2_container_count(s->session->blackfilters)) {
return 1; /* no filtering means match all */
} else if (ao2_container_count(s->session->whitefilters) && !ao2_container_count(s->session->blackfilters)) {