]> git.ipfire.org Git - thirdparty/asterisk.git/commit
debug_utilities: Add ast_logescalator 34/4834/4
authorGeorge Joseph <gjoseph@digium.com>
Wed, 25 Jan 2017 12:50:43 +0000 (05:50 -0700)
committerGeorge Joseph <gjoseph@digium.com>
Fri, 27 Jan 2017 21:09:33 +0000 (15:09 -0600)
commit805928c98b49589fdcde9993cd491cc2512f10c6
treed6ce0b6014cd680582d107c59adca6ebd16eb44a
parent6c259c6990bea96b5678e42f9ce59b48482ab6f0
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
channels/chan_sip.c
contrib/scripts/ast_logescalator [new file with mode: 0755]
main/manager.c
res/res_pjsip_history.c