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
Showing
- include/asterisk/sorcery.h 22 additions, 0 deletionsinclude/asterisk/sorcery.h
- main/sorcery.c 17 additions, 0 deletionsmain/sorcery.c
- res/res_pjsip_endpoint_identifier_ip.c 3 additions, 0 deletionsres/res_pjsip_endpoint_identifier_ip.c
- res/res_sorcery_config.c 11 additions, 1 deletionres/res_sorcery_config.c
Loading
Please register or sign in to comment