Ensure counts generated in manager_show_dialplan_helper are correct

When manager_show_dialplan_helper was written, the counter increment
for the total number of contexts was placed with the extensions
increment instead of in the enclosing loop.  This function should
now generate correct context counts.

(closes issue AST-970)
Reported-by: John Bigelow
........

Merged revisions 372337 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 372338 from http://svn.asterisk.org/svn/asterisk/branches/10


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@372340 65c4cc65-6c06-0410-ace0-fbb531ad65f3
certified/11.2
Kinsey Moore 14 years ago
parent fa3858d8a7
commit 7716846ae1

@ -7767,6 +7767,7 @@ static int manager_show_dialplan_helper(struct mansession *s, const struct messa
continue; /* not the name we want */
dpc->context_existence = 1;
dpc->total_context++;
ast_debug(3, "manager_show_dialplan: Found Context: %s \n", ast_get_context_name(c));
@ -7790,8 +7791,6 @@ static int manager_show_dialplan_helper(struct mansession *s, const struct messa
dpc->extension_existence = 1;
/* may we print context info? */
dpc->total_context++;
dpc->total_exten++;
p = NULL; /* walk next extension peers */

Loading…
Cancel
Save