virendra bhati
2011-Jul-29 10:56 UTC
[asterisk-users] How to use these feature of Asterisk
Hi List, I want to use these features but nothing was found after googling . please give me some examples Asterisk CLI prompt Changing the CLI Prompt The CLI prompt is set with the ASTERISK_PROMPT UNIX environment variable that you set from the Unix shell before starting the Asterisk CLI (not the server). You may include the following variables, that will be replaced by the current value by Asterisk: %d Date (year-month-date) %s Asterisk system name (from asterisk.conf) %h Full hostname %H Short hostname %t Time %% Percent sign %# '#' if Asterisk is run in console mode, '>' if running as remote console %Cn[;n] Change terminal foreground (and optional background) color to specified *A full list of colors may be found in include/asterisk/term.h* On Linux systems, you may also use %l1 Load average over past minute %l2 Load average over past 5 minutes %l3 Load average over past 15 minutes %l4 Process fraction (processes running / total processes) %l5 The most recently allocated pid -- ----- Thanks and regards Virendra Bhati +91-9172341457 Software Engineer -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110729/1f7f2064/attachment.htm>
DHAVAL INDRODIYA
2011-Jul-29 11:11 UTC
[asterisk-users] How to use these feature of Asterisk
Use This Information. You can customize the prompt a bit, if the default prompt is too dull for you. First add these lines to */etc/asterisk/extensions.conf* in the [globals] section: ${ENV(UNIX)} ${ENV(ASTERISK_PROMPT)} Then in */etc/profile* on the Asterisk server, set the ASTERISK_PROMPT values: ASTERISK_PROMPT='%t, %l2, %h*> ' export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC ASTERISK_PROMPT Your *export* variables will probably be different; just tack ASTERISK_PROMPT on at the end. Reboot, run *asterisk -r* from your X terminal, and voil?! The prompt is customized and your colors do not change: *17:51:30, 0.54, asterisk1.alrac.net*>* On Fri, Jul 29, 2011 at 4:26 PM, virendra bhati <virbhati at gmail.com> wrote:> Hi List, > > I want to use these features but nothing was found after googling . please > give me some examples > > Asterisk CLI prompt > Changing the CLI Prompt > > The CLI prompt is set with the ASTERISK_PROMPT UNIX environment variable > that > you set from the Unix shell before starting the Asterisk CLI (not the > server). > > You may include the following variables, that will be replaced by > the current value by Asterisk: > > %d Date (year-month-date) > %s Asterisk system name (from asterisk.conf) > %h Full hostname > %H Short hostname > %t Time > %% Percent sign > %# '#' if Asterisk is run in console mode, '>' if running as remote console > > %Cn[;n] Change terminal foreground (and optional background) color to > specified > *A full list of colors may be found in include/asterisk/term.h > * > > On Linux systems, you may also use > %l1 Load average over past minute > %l2 Load average over past 5 minutes > %l3 Load average over past 15 minutes > %l4 Process fraction (processes running / total processes) > %l5 The most recently allocated pid > > > -- > > > > ----- > Thanks and regards > > Virendra Bhati > +91-9172341457 > Software Engineer > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110729/4753e068/attachment.htm>
On Friday 29 Jul 2011, virendra bhati wrote:> Hi List, > > I want to use these features but nothing was found after googling . please > give me some examples > > Asterisk CLI prompt > Changing the CLI Prompt > > The CLI prompt is set with the ASTERISK_PROMPT UNIX environment variable > that > you set from the Unix shell before starting the Asterisk CLI (not the > server).All you have to do is set an environment variable, and then make sure that it gets passed on to the `asterisk -r`process. For example: # export ASTERISK_PROMPT="Asterisk@%h:" # asterisk -vvvvvr or even just # ASTERISK_PROMPT="Asterisk@%h:" asterisk -vvvvvr -- AJS Answers come *after* questions.