[asterisk-users] issues with Asterisk CLI

Joshua C. Colp jcolp at digium.com
Wed Oct 23 05:33:41 CDT 2019

On Tue, Oct 22, 2019, at 11:44 PM, Fourhundred Thecat wrote:
> Hello,
> I have Asterisk 16.2 on Debian.
> In the Asterisk CLI, I would like to change 2 things:
>  1) change the keybindings for commandline editing
>  (what in bash is called "readline" editing of the command line)
> The CLI is missing some very useful keybindings, and even worse, has
> misconfigured others, For instance, "ctrl"+"w" should delete the last
> word backward. But the CLI deletes whole line (same as "ctrl" + "u").
> Also, I would like to be able to use the "PageUp" and "PageDown" for
> history-search-forward/backward, as I can use in Bash (defined in my
> /etc/inputrc). In short, I would like to be able to modify the asterisk
> CLI line editing capabilities
> Does Asterisk use the readline library? Does it use /etc/inputrc ?
> Can the behavior described above be configured ?

It uses the editline library and all usage of it is within asterisk.c[1]. There is no configuration ability as far as I know, but I'm not that familiar with editline and such.

[1] https://github.com/asterisk/asterisk/blob/master/main/asterisk.c

Joshua C. Colp
Digium - A Sangoma Company | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

More information about the asterisk-users mailing list