Files
asterisk/res
Michal Hajek 96e8a8a002 res_pjsip_config_wizard: Force reload on Named ACL change events
Currently, endpoints created via the PJSIP Config Wizard do not update
their ACL rules if the underlying Named ACL (in acl.conf) changes.
This occurs because the wizard relies on file timestamp and content
caching of pjsip_wizard.conf, which remains unchanged during an external
ACL update. As a result, endpoints retain stale ACL rules even after
a reload.

This patch updates res_pjsip_config_wizard to subscribe to the
ast_named_acl_change_type Stasis event. A local generation counter is
incremented whenever an ACL change event is received.

During a reload, the wizard compares the current local generation against
the generation stored in the wizard object. If a change is detected:
1. The file cache optimization (CONFIG_FLAG_FILEUNCHANGED) is bypassed.
2. Wizard objects utilizing 'acl' or 'contact_acl' are forced to update,
   ensuring they pick up the new IP rules.

Signed-off-by: Michal Hajek michal.hajek@daktela.com

Fixes: #1641
2026-03-26 19:23:13 +00:00
..
2023-05-08 18:13:35 +00:00
2026-03-26 19:23:13 +00:00
2025-03-20 18:18:28 +00:00
2023-01-31 12:59:16 -06:00
2024-03-07 14:17:23 +00:00
2021-12-03 10:38:39 -06:00
2025-03-20 18:18:28 +00:00
2021-11-18 16:25:51 -06:00
2025-05-01 12:39:48 +00:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2021-11-18 16:25:51 -06:00
2026-03-26 19:23:13 +00:00
2025-03-20 18:18:28 +00:00
2021-12-03 10:38:39 -06:00
2021-11-15 16:37:34 -06:00
2025-03-20 18:18:28 +00:00
2025-03-20 18:18:28 +00:00
2021-12-03 10:38:39 -06:00
2025-03-20 18:18:28 +00:00
2025-03-20 18:18:28 +00:00
2021-11-15 16:37:34 -06:00
2025-03-20 18:18:28 +00:00
2025-03-20 18:18:28 +00:00
2021-11-15 16:37:34 -06:00
2021-11-15 16:37:34 -06:00
2025-03-20 18:18:28 +00:00
2021-12-03 10:38:39 -06:00
2024-01-12 18:29:19 +00:00
2025-03-20 18:18:28 +00:00