Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pbx.c: Print new context count when reloading dialplan.#1600

Merged
github-actions[bot] merged 1 commit into
asterisk:masterfrom
InterLinked1:master-issue-1599
Nov 19, 2025
Merged

pbx.c: Print new context count when reloading dialplan.#1600
github-actions[bot] merged 1 commit into
asterisk:masterfrom
InterLinked1:master-issue-1599

Conversation

@InterLinked1

Copy link
Copy Markdown
Contributor

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

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: asterisk#1599
@InterLinked1

Copy link
Copy Markdown
Contributor Author

cherry-pick-to: 23
cherry-pick-to: 22
cherry-pick-to: 20

@github-actions

Copy link
Copy Markdown

Workflow PRCheck completed successfully

@gtjoseph gtjoseph added the cherry-pick-test Trigger dry run of cherry-picks label Nov 19, 2025
@github-actions github-actions Bot added cherry-pick-testing-in-progress Cherry-Pick tests in progress cherry-pick-checks-failed Cherry-Pick checks failed and removed cherry-pick-test Trigger dry run of cherry-picks cherry-pick-testing-in-progress Cherry-Pick tests in progress labels Nov 19, 2025
@github-actions

Copy link
Copy Markdown

Workflow PRCPCheck failed
20-pjs5: FAILED TEST: channels/pjsip/subscriptions/rls/lists_of_lists/nominal/mwi/batched

@github-actions github-actions Bot merged commit b19dbff into asterisk:master Nov 19, 2025
83 of 84 checks passed
@github-actions

Copy link
Copy Markdown

Successfully merged to branch master and cherry-picked to ["23","22","20"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]: pbx.c: Running "dialplan reload" shows wrong number of contexts

4 participants