]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pbx.c: Print new context count when reloading dialplan.
authorNaveen Albert <asterisk@phreaknet.org>
Mon, 17 Nov 2025 21:16:59 +0000 (16:16 -0500)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Wed, 19 Nov 2025 17:19:51 +0000 (17:19 +0000)
commitb19dbffa9a010f616a6925a6a4e8b67a19338d7f
tree010d4de08b173aab6e2edb897168c5d781b9d645
parent183732d172e52685bbb9069646c9e3551613eaaf
pbx.c: Print new context count when reloading dialplan.

When running "dialplan reload", the number of contexts reported
is initially wrong, as it is the old context count. Running
"dialplan reload" a second time returns the correct number of
contexts that are loaded. This can confuse users into thinking
that the reload didn't work successfully the first time.

This counter is currently only incremented when iterating the
old contexts prior to the context merge; at the very end, get
the current number of elements in the context hash table and
report that instead. This way, the count is correct immediately
whenever a reload occurs.

Resolves: #1599
main/pbx.c