]> git.ipfire.org Git - thirdparty/asterisk.git/commit
sorcery: Add support for more intelligent reloading.
authorJoshua C. Colp <jcolp@sangoma.com>
Mon, 1 Mar 2021 21:35:20 +0000 (17:35 -0400)
committerJoshua Colp <jcolp@sangoma.com>
Fri, 5 Mar 2021 16:33:10 +0000 (10:33 -0600)
commita9acbd19f37b1ef0c73cc929301ce39b23fd1df7
treec655c37edda79bc10acf35d571b56b6a10b6b459
parent269bb08ea290cbdb677892ed6b20885112ee1c62
sorcery: Add support for more intelligent reloading.

Some sorcery objects actually contain dynamic content
that can change despite the underlying configuration
itself not changing. A good example of this is the
res_pjsip_endpoint_identifier_ip module which allows
specifying hostnames. While the configuration may not
change between reloads the DNS information of the
hostnames can.

This change adds the ability for a sorcery object to be
marked as having dynamic contents which is then taken
into account when reloading by the sorcery file based
config module. If there is an object with dynamic content
then a reload will be forced while if there are none
then the existing behavior of not reloading occurs.

ASTERISK-29321

Change-Id: I9342dc55be46cc00204533c266a68d972760a0b1
include/asterisk/sorcery.h
main/sorcery.c
res/res_pjsip_endpoint_identifier_ip.c
res/res_sorcery_config.c