]> 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:33 +0000 (20:42 +0000)
commit9fc596aaa77730bf5f45d84dcc3eeaddd7f11977
tree44fabc5228f18234df90bb085f6fab1fbaa69fa5
parent57bb09667d50dd2a7f7de5ae1ca38d35802c599e
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