[asterisk-bugs] [Asterisk 0016858]: asterisk command history loads as unusable garbage
Asterisk Bug Tracker
noreply at bugs.digium.com
Thu Mar 4 21:41:25 CST 2010
The following issue has been REOPENED.
======================================================================
https://issues.asterisk.org/view.php?id=16858
======================================================================
Reported By: jw-asterisk
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 16858
Category: Core/General
Reproducibility: always
Severity: minor
Priority: normal
Status: new
Asterisk Version: 1.6.2.2
JIRA: SWP-932
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2010-02-17 21:19 CST
Last Modified: 2010-03-04 21:41 CST
======================================================================
Summary: asterisk command history loads as unusable garbage
Description:
When using asterisk interactively with command interface a history file is
created (~/.asterisk_history). Lines written to the history file are
white-space encoded (in ast_el_write_history:history:case
H_SAVE:history_save:strvis).
But when the history file is loaded it reverse (strunvis) is not
performed. Therefore the history becomes unusable garbage.
======================================================================
----------------------------------------------------------------------
(0118999) jw-asterisk (reporter) - 2010-03-04 21:41
https://issues.asterisk.org/view.php?id=16858#c118999
----------------------------------------------------------------------
But, despite what you say about strvis and the encoded string not being
used, this is what is in my asterisk history file:
<pre>
_HiStOrY_V2_
dadhi\040show\040status
dahdi\040show\040status
quit
dahdi\040show\040status
quit
core\134040set
core\134\134040set
quit
<pre>
So how has that encoding happened?
Issue History
Date Modified Username Field Change
======================================================================
2010-03-04 21:41 jw-asterisk Note Added: 0118999
2010-03-04 21:41 jw-asterisk Status closed => new
2010-03-04 21:41 jw-asterisk Resolution no change required =>
reopened
======================================================================
More information about the asterisk-bugs
mailing list