]> 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)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Wed, 1 May 2024 20:42:36 +0000 (20:42 +0000)
commit077962dd7bd986b319226038506588b4c0588ffb
treeee5081d15fb2f2289cc7c7f0a879fe6c0b7fb2c9
parent1f1c5bb90255b3e1c47bf87fa1b3a981d9e7c8c4
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