[asterisk-bugs] [Asterisk 0017160]: CLI prompt interfers with CLI output

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Apr 12 11:06:07 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:                     feedback
Asterisk Version:           1.6.2.7-rc1 
JIRA:                        
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-04-12 11:06 CDT
====================================================================== 
Summary:                    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.
====================================================================== 

---------------------------------------------------------------------- 
 (0120283) coolmig (reporter) - 2010-04-12 11:06
 https://issues.asterisk.org/view.php?id=17160#c120283 
---------------------------------------------------------------------- 
Server OS: CentOS 5.4

Client OS: Ubuntu 9.10
Terminal used: bash over gnome-terminal (pretty standard)

Over the terminal I access the asterisk server via SSH and enter the CLI
with asterisk -r. Pretty standard too.

As seen in the output that I posted, not all the lines get that kind of
output, that behavior is quite random. So to reproduce the issue could be
necessary to execute several commands until you see the "trailing"
characters from the CLI prompt. So you can change the reproducibility from
always to random if you want... 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-04-12 11:06 coolmig        Note Added: 0120283                          
======================================================================




More information about the asterisk-bugs mailing list