On Tue, Dec 22, 2009 at 09:06:49AM +0800, jida...@jidanni.org wrote: > Package: asterisk > Version: 1:1.6.2.0-1 > Severity: wishlist > Tags: upstream > > Asterisk should use the standard readline library, that way C-r could > search back etc.
Asterisk uses editline rather than readline. > > By the way, perhaps the > CLI> prompt should be AST> instead. That indicates you run 'asterisk' yourself and don't have a asterisk daemon running. This is discourged. The Debian package is configured to have an init.d script. There is a separate command, 'rasterisk' (which is exactly the same as 'asterisk -r') to issue commands to it. When you connect via asterisk -r, the prompt is: YOURHOSTNAME*CLI sweetmorn:~# asterisk -r Asterisk 1.6.2.0~rc7-0.7860, Copyright (C) 1999 - 2009 Digium, Inc. and others. Created by Mark Spencer <marks...@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.0~rc7-0.7860 currently running on sweetmorn (pid = 4330) sweetmorn*CLI> Alternatively, you can set ASTERISK_PROMPT in the envirnment: ASTERISK_PROMPT='%h*AST> ' rasterisk sweetmorn:~# ASTERISK_PROMPT='%H*AST> ' rasterisk Asterisk 1.6.2.0~rc7-0.7860, Copyright (C) 1999 - 2009 Digium, Inc. and others. Created by Mark Spencer <marks...@digium.com> Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.2.0~rc7-0.7860 currently running on sweetmorn (pid = 4330) sweetmorn*AST> All this is well-documented in, well, hmm, main/asterisk.c in the source tree :-( http://svn.asterisk.org/svn/asterisk/branches/1.6.2/main/asterisk.c (Look for 'ASTERISK_PROMPT' to see the exact available special % codes) > > Also one can't dial a number from the bash command line in one step > without the daemon running. > One needs to break it into two parts, > $ asterisk -c > CLI> console dial 123455 > There is no option combination that will arrive one at the same CLI > state, but using only line from bash. -x needs the daemon running. If a Asterisk daemon is running: asterisk -r 'console dial 123455' Also note that 'console dial' is only used to dial the "console" (sound card + microphone). A more general method of automated dialing is the 'originate' or 'channel originate' command that can initiate a call from any phone to anywhere in the PBX. -- Tzafrir Cohen icq#16849755 jabber:tzafrir.co...@xorcom.com +972-50-7952406 mailto:tzafrir.co...@xorcom.com http://www.xorcom.com iax:gu...@local.xorcom.com/tzafrir -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org