]> 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 Development Team <asteriskteam@digium.com>
Thu, 9 May 2024 13:47:40 +0000 (13:47 +0000)
commitfc35e92ece7382c648dfa0488c29ea8b51f88e2a
treec340f5d78b62eabd18fc71747efcf6f98135fc3f
parent1acf473c5b37f287fc4ac1afec6eecd4a7b738f8
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.

(cherry picked from commit 3b600e27877262fc6d05b91eb9cf8edcf1a032a6)
res/res_pjsip_logger.c