Bug 1376200 - Asterisk CLI not working via xterm or direct console
Summary: Asterisk CLI not working via xterm or direct console
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: asterisk
Version: 25
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jared Smith
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-14 20:30 UTC by ayork
Modified: 2017-12-12 10:12 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-12 10:12:11 UTC
Type: Bug


Attachments (Terms of Use)

Description ayork 2016-09-14 20:30:08 UTC
Description of problem:
All keystrokes are appearing as escaped unicode? sequences

Connected to Asterisk 13.9.1 currently running on localhost (pid = 10784)
localhost*CLI> \U+02E68\U+02E65\U+02E6C\U+02E6C\U+02E6F

I typed "hello"


Version-Release number of selected component (if applicable):
Version     : 13.9.1
Release     : 1.fc25.1

How reproducible:
Always

Steps to Reproduce:
1. Install Asterisk.
2. systemctl start asterisk
3. asterisk -r
4. attempt to enter any command.

2a. start asterisk with: sudo -u asterisk  asterisk -c
3a. Enter one command: help
4a. Enter do help command one more time (or any keystroke): *CLI> \U+CDA68\U+CDA65\U+CDA6C\U+CDA70


Actual results:
*CLI> \U+CDA68\U+CDA65\U+CDA6C\U+CDA70

Unicode? escape characters

Expected results:
The keystrokes work

Additional info:
I've tried using the direct console.  Its running in a Oracle VM. Don't have the issue with FC 23,24

This can be worked around by issuing commands like this:
asterisk -rx "module show"

Comment 1 LiuYan 2016-10-08 04:11:58 UTC
Same issue here on rawhide (fc26), the package release number in rawhide now is actually for fc25 (1.fc25.1).

Terminal emulator: mate-terminal.

Sometimes, it works only on even number lines:
when \U+XXXX occurs in first line, press RETURN,
then continue typing, it works in this line.

Sometimes, it just not working in each line.

Comment 2 Tom Hughes 2016-11-18 09:20:13 UTC
Upstream discussion here https://community.asterisk.org/t/cli-gibberish-prompt-and-input-appear-to-be-some-sort-of-unicode-characters/67382/15.

Seems it is down to changes in libedit's default configuration.

Comment 3 Samuel Sieb 2017-01-20 06:39:38 UTC
Downgrading libedit to the F24 version has solved it for me for now.

Comment 4 Joachim Jaeckel 2017-07-29 17:13:10 UTC
maybe duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1376200
but this bug is for Fedora 26

Comment 5 Joachim Jaeckel 2017-07-29 17:16:44 UTC
sorry, last comment was entered to the wrong bug number.
Opened a new bug for Fedora 26: https://bugzilla.redhat.com/show_bug.cgi?id=1476502

Workaround:
1. mkdir /usr/local/lib64/asterisk
2. get older version of libedit.so (eg. from CentOS Linux release 7)
3. copy older version of libedit.so to /usr/local/lib64/asterisk (eg /usr/lib64/libedit.so.0.0.42)
4. make an alias
   alias asterisk='LD_PRELOAD=/usr/local/lib64/asterisk/libedit.so.0.0.42 asterisk'
5. asterisk -r will work as expected

Comment 6 Fedora End Of Life 2017-11-16 18:31:49 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 7 Fedora End Of Life 2017-12-12 10:12:11 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.