]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_logger: Preserve logging state on reloads.
authorNaveen Albert <asterisk@phreaknet.org>
Wed, 9 Aug 2023 22:41:24 +0000 (22:41 +0000)
committerNaveen Albert <asterisk@phreaknet.org>
Wed, 1 May 2024 20:42:29 +0000 (20:42 +0000)
commit3b600e27877262fc6d05b91eb9cf8edcf1a032a6
treec760b69c82901dc56f71c132af6eaf15489a9d94
parent23f5ce69fd14bd81dc62087dcceccb87ec460969
res_pjsip_logger: Preserve logging state on reloads.

Currently, reloading res_pjsip will cause logging
to be disabled. This is because logging can also
be controlled via the debug option in pjsip.conf
and this defaults to "no".

To improve this, logging is no longer disabled on
reloads if logging had not been previously
enabled using the debug option from the config.
This ensures that logging enabled from the CLI
will persist through a reload.

ASTERISK-29912 #close

Resolves: #246

UserNote: Issuing "pjsip reload" will no longer disable
logging if it was previously enabled from the CLI.
res/res_pjsip_logger.c