[Home]

Summary:ASTERISK-25646: CLI output after "core stop gracefully" on a remote console is confusing and inconsistent with root console behavior
Reporter:Rusty Newton (rnewton)Labels:
Date Opened:2015-12-23 21:20:15.000-0600Date Closed:
Priority:TrivialRegression?
Status:Open/NewComponents:Core/General
Versions:11.20.0 13.6.0 Frequency of
Occurrence
Constant
Related
Issues:
is related toASTERISK-25597 Remote console freeze after 'core stop gracefully' and then further command attempts
Environment:Attachments:
Description:h2. Behavior when running on a root console.

{noformat}
*CLI> core stop gracefully
Waiting for inactivity to perform halt...

{noformat}

If you attempt to run other commands after running "core stop gracefully" at the root console you get no response. Nor do you get returned to the CLI prompt.

{noformat}
*CLI> core stop gracefully
Waiting for inactivity to perform halt...

core show channels

{noformat}

This makes it pretty clear that no further commands are accepted. Though it would be nice if it said that.

h2. Behavior when running on a remote console.

{noformat}
CentOSLab*CLI> core stop gracefully
CentOSLab*CLI>
{noformat}

Running commands after "core stop gracefully" on a remote console results in a return to the CLI prompt. It appears as if the command is accepted, yet you receive no output in response to the commands.

{noformat}
CentOSLab*CLI> core show channels
CentOSLab*CLI>
{noformat}

This is confusing behavior and doesn't match what we see on the root console.

Ideally the behavior would be the same between the two and the notification after command execution should be explicit about what to expect.

e.g. "Stopping gracefully. Waiting for all channels to hang up before halting. No further commands will be accepted."

I believe this has been this way for a while but I'm going to mark it as a bug since the behavior is confusing and (based on user reports) results in uncertainty as to the state of the system.

h2. Additional note on documentation

{noformat}
CentOSLab*CLI> core show help core stop gracefully
Usage: core stop gracefully
      Causes Asterisk to not accept new calls, and exit when all
      active calls have terminated normally.
{noformat}

If we expect that no further commands will be accepted - we should mention that in the documentation. Perhaps:

{noformat}
CentOSLab*CLI> core show help core stop gracefully
Usage: core stop gracefully
      Causes Asterisk to not accept new calls, and exit when all
      active calls have terminated normally. After this command has been executed
      no further commands will be accepted.
{noformat}
Comments:By: Rusty Newton (rnewton) 2015-12-23 21:26:10.414-0600

Linking this to ASTERISK-25597 as it seems to occur only when entering commands after "core stop gracefully" on a remote console.