<p>Michael Bradeen has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/19990">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">cli: increase channel column width<br><br>For 'core show channels', the Channel name field is increased<br>to 64 characters and the Location name field is increased to<br>32 characters.<br><br>For 'core show channels verbose', the Channel name field is<br>increased to 80 characters, the Context is increased to 24<br>characters and the Extension is increased to 24 characters.<br><br>ASTERISK-30455<br><br>Change-Id: Ibec3742ce360ffc93bc56e9984c2a21dabc4d5e1<br>---<br>A doc/CHANGES-staging/cli_channel_display_length_increase.txt<br>M main/cli.c<br>2 files changed, 37 insertions(+), 4 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/90/19990/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/doc/CHANGES-staging/cli_channel_display_length_increase.txt b/doc/CHANGES-staging/cli_channel_display_length_increase.txt</span><br><span>new file mode 100644</span><br><span>index 0000000..d9fc77c</span><br><span>--- /dev/null</span><br><span>+++ b/doc/CHANGES-staging/cli_channel_display_length_increase.txt</span><br><span>@@ -0,0 +1,14 @@</span><br><span style="color: hsl(120, 100%, 40%);">+Subject: cli</span><br><span style="color: hsl(120, 100%, 40%);">+Subject: core</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+This change increases the display width on 'core show channels'</span><br><span style="color: hsl(120, 100%, 40%);">+amd 'core show channels verbose'</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+For 'core show channels', the Channel name field is increased to</span><br><span style="color: hsl(120, 100%, 40%);">+64 characters and the Location name field is increased to 32</span><br><span style="color: hsl(120, 100%, 40%);">+characters.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+For 'core show channels verbose', the Channel name field is</span><br><span style="color: hsl(120, 100%, 40%);">+increased to 80 characters, the Context is increased to 24</span><br><span style="color: hsl(120, 100%, 40%);">+characters and the Extension is increased to 24 characters.</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>diff --git a/main/cli.c b/main/cli.c</span><br><span>index dc13019..7e1359e 100644</span><br><span>--- a/main/cli.c</span><br><span>+++ b/main/cli.c</span><br><span>@@ -1066,11 +1066,11 @@</span><br><span> </span><br><span> static char *handle_chanlist(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">-#define FORMAT_STRING  "%-20.20s %-20.20s %-7.7s %-30.30s\n"</span><br><span style="color: hsl(0, 100%, 40%);">-#define FORMAT_STRING2 "%-20.20s %-20.20s %-7.7s %-30.30s\n"</span><br><span style="color: hsl(120, 100%, 40%);">+#define FORMAT_STRING  "%-64.64s %-32.32s %-7.7s %-30.30s\n"</span><br><span style="color: hsl(120, 100%, 40%);">+#define FORMAT_STRING2 "%-64.64s %-32.32s %-7.7s %-30.30s\n"</span><br><span> #define CONCISE_FORMAT_STRING  "%s!%s!%s!%d!%s!%s!%s!%s!%s!%s!%d!%s!%s!%s\n"</span><br><span style="color: hsl(0, 100%, 40%);">-#define VERBOSE_FORMAT_STRING  "%-20.20s %-20.20s %-16.16s %4d %-7.7s %-12.12s %-25.25s %-15.15s %8.8s %-11.11s %-11.11s %-20.20s\n"</span><br><span style="color: hsl(0, 100%, 40%);">-#define VERBOSE_FORMAT_STRING2 "%-20.20s %-20.20s %-16.16s %-4.4s %-7.7s %-12.12s %-25.25s %-15.15s %8.8s %-11.11s %-11.11s %-20.20s\n"</span><br><span style="color: hsl(120, 100%, 40%);">+#define VERBOSE_FORMAT_STRING  "%-80.80s %-24.24s %-24.24s %4d %-7.7s %-12.12s %-25.25s %-15.15s %8.8s %-11.11s %-11.11s %-20.20s\n"</span><br><span style="color: hsl(120, 100%, 40%);">+#define VERBOSE_FORMAT_STRING2 "%-80.80s %-24.24s %-24.24s %-4.4s %-7.7s %-12.12s %-25.25s %-15.15s %8.8s %-11.11s %-11.11s %-20.20s\n"</span><br><span> </span><br><span>       struct ao2_container *channels;</span><br><span>      struct ao2_iterator it_chans;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/19990">change 19990</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/19990"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: certified/18.9 </div>
<div style="display:none"> Gerrit-Change-Id: Ibec3742ce360ffc93bc56e9984c2a21dabc4d5e1 </div>
<div style="display:none"> Gerrit-Change-Number: 19990 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Michael Bradeen <mbradeen@sangoma.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>