<p>Tzafrir Cohen has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7666">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">chan_console: Use correct parameter for 'set active'<br><br>chan_console supports multiple devices but the CLI only works on a<br>single device. 'console set active' selects this device.<br><br>Sadly that CLI picks the wrong command-line parameter and will only<br>work for a device called 'active'.<br><br>ASTERISK-27490 #close<br><br>Change-Id: I2f0e5fe63db19845bee862575b739360797dc73d<br>---<br>M channels/chan_console.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/66/7666/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/channels/chan_console.c b/channels/chan_console.c<br>index a24a6c8..4720a75 100644<br>--- a/channels/chan_console.c<br>+++ b/channels/chan_console.c<br>@@ -1233,7 +1233,7 @@<br>          return CLI_SUCCESS;<br>   }<br> <br>- if (!(pvt = find_pvt(a->argv[e->args - 1]))) {<br>+ if (!(pvt = find_pvt(a->argv[e->args]))) {<br>              ast_cli(a->fd, "Could not find a device called '%s'.\n", a->argv[e->args]);<br>                return CLI_FAILURE;<br>   }<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7666">change 7666</a>. To unsubscribe, 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/7666"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 15 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I2f0e5fe63db19845bee862575b739360797dc73d </div>
<div style="display:none"> Gerrit-Change-Number: 7666 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Tzafrir Cohen <tzafrir.cohen@xorcom.com> </div>