From: Alexei Gradinari Date: Thu, 13 Jun 2024 16:09:08 +0000 (-0400) Subject: pbx.c: expand fields width of "core show hints" X-Git-Tag: 18.24.0-rc1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e93c5e945ae04561d1df268662daaacb547a64c8;p=thirdparty%2Fasterisk.git pbx.c: expand fields width of "core show hints" The current width for "extension" is 20 and "device state id" is 20, which is too small. The "extension" field contains "ext"@"context", so 20 characters is not enough. The "device state id" field, for example for Queue pause state contains Queue:"queue_name"_pause_PSJIP/"endpoint", so the 20 characters is not enough. Increase the width of "extension" field to 30 characters and the width of the "device state id" field to 60 characters. Resolves: #770 UserNote: The fields width of "core show hints" were increased. The width of "extension" field to 30 characters and the width of the "device state id" field to 60 characters. (cherry picked from commit dcdda4688e4d6d879021a92f14320bab0f726f00) --- diff --git a/main/pbx.c b/main/pbx.c index 95d8cec835..6b9e104170 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -5242,7 +5242,7 @@ static char *handle_show_hints(struct ast_cli_entry *e, int cmd, struct ast_cli_ ast_get_extension_name(hint->exten), ast_get_context_name(ast_get_extension_context(hint->exten))); - ast_cli(a->fd, "%-20.20s: %-20.20s State:%-15.15s Presence:%-15.15s Watchers %2d\n", + ast_cli(a->fd, "%-30.30s: %-60.60s State:%-15.15s Presence:%-15.15s Watchers %2d\n", buf, ast_get_extension_app(hint->exten), ast_extension_state2str(hint->laststate), @@ -5343,7 +5343,7 @@ static char *handle_show_hint(struct ast_cli_entry *e, int cmd, struct ast_cli_a sprintf(buf, "%s@%s", ast_get_extension_name(hint->exten), ast_get_context_name(ast_get_extension_context(hint->exten))); - ast_cli(a->fd, "%-20.20s: %-20.20s State:%-15.15s Presence:%-15.15s Watchers %2d\n", + ast_cli(a->fd, "%-30.30s: %-60.60s State:%-15.15s Presence:%-15.15s Watchers %2d\n", buf, ast_get_extension_app(hint->exten), ast_extension_state2str(hint->laststate),