[asterisk-bugs] [Asterisk 0017160]: [patch] CLI prompt interfers with CLI output
Asterisk Bug Tracker
noreply at bugs.digium.com
Mon May 31 10:12:36 CDT 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=17160
======================================================================
Reported By: coolmig
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 17160
Category: Core/General
Reproducibility: always
Severity: minor
Priority: normal
Status: ready for testing
Asterisk Version: 1.6.2.7-rc1
JIRA: SWP-1463
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2010-04-09 16:20 CDT
Last Modified: 2010-05-31 10:12 CDT
======================================================================
Summary: [patch] CLI prompt interfers with CLI output
Description:
Some characters of the CLI prompt are printed in the asterisk CLI output:
virtual2_ast2*CLI> cdr show status
virtual2_ast2*CLI>
Call Detail Record (CDR) settings
----------------------------------
Logging: Enabled
Mode: Simple
Log unanswered calls: No
* Registered Backends
-------------------
csv2_ast2*CLI> <<<-- Here
cdr-customCLI> <<<-- Here
pgsqlast2*CLI> <<<-- Here
virtual2_ast2*CLI> core show channels
Channel Location State Application(Data)
0 active channels>
0 active callsCLI> <<<-- Here
0 calls processed>
virtual2_ast2*CLI>
This happens in a lot of commands.
Looks like in certain cases, when the line string has less than the CLI
prompt characters, the remaining characters are printed. This makes output
unclean.
======================================================================
----------------------------------------------------------------------
(0122662) coolmig (reporter) - 2010-05-31 10:12
https://issues.asterisk.org/view.php?id=17160#c122662
----------------------------------------------------------------------
Thanks for your patch Tilghman, it seems to work with certain commands like
"cdr show status", but found one command that stays the same:
virtual2_ast2*CLI> core show calls
0 active callsCLI>
0 calls processed
virtual2_ast2*CLI> core show calls
0 active callsCLI>
0 calls processed
virtual2_ast2*CLI> core show calls
0 active callsCLI>
0 calls processed
virtual2_ast2*CLI> core show calls
0 active callsCLI>
0 calls processed
virtual2_ast2*CLI> core show calls
0 active callsCLI>
0 calls processed>
virtual2_ast2*CLI> core show calls
0 active callsCLI>
0 calls processed>
On other command like "core show channels" the output seems to be clean.
I tested this in 1.6.2.8-rc1, the patch applied cleanly with -25 lines
offset on all hunks.
Issue History
Date Modified Username Field Change
======================================================================
2010-05-31 10:12 coolmig Note Added: 0122662
======================================================================
More information about the asterisk-bugs
mailing list