[asterisk-bugs] [JIRA] (ASTERISK-27490) chan_console: 'set active' fails to work

Tzafrir Cohen (JIRA) noreply at issues.asterisk.org
Tue Dec 19 06:13:09 CST 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-27490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tzafrir Cohen updated ASTERISK-27490:
-------------------------------------

    Description: 
Chan_console supports multiple "phone" (Console) devices. However the console phone control commands don't allow specifying a device. Hence its CLI has a concept of the "active" device.

However, the command 'console set active' currently fails to work due to a simple bug.

To reproduce (no actual device needed):

in chan_console:
{code}
[con1]
input_device = fake device 1
output_device = fake device 1

[con2]
input_device = fake device 2
output_device = fake device 2
{code}

Now load the module. From the CLI you should be able to see both con1 and con2 in 'console show devices'. Now:

Expected result:
{code}
*CLI> console set active con1
The active console device has been set to 'con1'
{code}

Actual result:
{code}
*CLI> console set active con1
Could not find a device called 'con1'.
Command 'console set active con1' failed.
{code}

  was:
Chan_console supports multiple "phone" (Console) devices. However the console phone control commands don't allow specifying a device. Hence its CLI has a concept of the "active" device.

However, the command 'console set active' currently fails to work due to a simple bug.

To reproduce (no actual device needed):

in chan_console:
{code}
[con1]
input_device = fake device 1
output_device = fake device 1

[con2]
input_device = fake device 2
output_device = fake device 2
{code}

Now load the module. From the CLI you should be able to see both con1 and con2 in 'console show devices'. Now:

{code}
*CLI> console set active con1
Could not find a device called 'con1'.
Command 'console set active con1' failed.
{code}


> chan_console: 'set active' fails to work
> ----------------------------------------
>
>                 Key: ASTERISK-27490
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27490
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/General
>    Affects Versions: 13.18.4, 15.1.4
>            Reporter: Tzafrir Cohen
>            Severity: Minor
>
> Chan_console supports multiple "phone" (Console) devices. However the console phone control commands don't allow specifying a device. Hence its CLI has a concept of the "active" device.
> However, the command 'console set active' currently fails to work due to a simple bug.
> To reproduce (no actual device needed):
> in chan_console:
> {code}
> [con1]
> input_device = fake device 1
> output_device = fake device 1
> [con2]
> input_device = fake device 2
> output_device = fake device 2
> {code}
> Now load the module. From the CLI you should be able to see both con1 and con2 in 'console show devices'. Now:
> Expected result:
> {code}
> *CLI> console set active con1
> The active console device has been set to 'con1'
> {code}
> Actual result:
> {code}
> *CLI> console set active con1
> Could not find a device called 'con1'.
> Command 'console set active con1' failed.
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list