Use This Information.<br><br><font face="Verdana, Arial, Helvetica" size="-1">You can customize the prompt a bit, if the default prompt is too dull for you. First add these lines to <i>/etc/asterisk/extensions.conf</i> in the [globals] section:
<tt><pre>${ENV(UNIX)}<br>${ENV(ASTERISK_PROMPT)}<br></pre></tt>
Then in <i>/etc/profile</i> on the Asterisk server, set the ASTERISK_PROMPT values:
<tt><pre> ASTERISK_PROMPT=&#39;%t, %l2, %h*&gt; &#39;<br>export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC ASTERISK_PROMPT<br></pre></tt>
Your <i>export</i> variables will probably be different; just tack ASTERISK_PROMPT on at the end. Reboot, run <b>asterisk -r</b> from your X terminal, and voilį! The prompt is customized and your colors do not change:
<tt><pre><b>17:51:30, 0.54, <a href="http://asterisk1.alrac.net">asterisk1.alrac.net</a>*&gt;</b><br><br><br><br></pre></tt></font><br><br><div class="gmail_quote">On Fri, Jul 29, 2011 at 4:26 PM, virendra bhati <span dir="ltr">&lt;<a href="mailto:virbhati@gmail.com">virbhati@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div dir="ltr">Hi List,<br><br>I want to use these features but nothing was found after googling . please give me some examples <br>
<br><div><h1>Asterisk CLI prompt</h1></div><h1>Changing the CLI Prompt
</h1>
<br>
<br>The CLI prompt is set with the ASTERISK_PROMPT UNIX environment variable that
<br>you set from the Unix shell before starting the Asterisk CLI (not the server).
<br>
<br>You may include the following variables, that will be replaced by
<br>the current value by Asterisk:
<br>
<br>%d      Date (year-month-date)
<br>%s      Asterisk system name (from asterisk.conf)
<br>%h      Full hostname
<br>%H      Short hostname
<br>%t      Time
<br>%%      Percent sign
<br>%#      &#39;#&#39; if Asterisk is run in console mode, &#39;&gt;&#39; if running as remote console
<br>%Cn[;n] Change terminal foreground (and optional background) color to specified
<br><span style="font-family: monospace;">            <i>A full list of colors may be found in include/asterisk/term.h</i>
</span><br>
<br>On Linux systems, you may also use
<br>%l1     Load average over past minute
<br>%l2     Load average over past 5 minutes
<br>%l3     Load average over past 15 minutes
<br>%l4     Process fraction (processes running / total processes)
<br>%l5     The most recently allocated pid
<br> 
<br clear="all"><br>-- <br><div dir="ltr"><br><br><br>-----<br>Thanks and regards<br><br> Virendra Bhati<br>+91-9172341457<br>Software Engineer<br></div><br>
</div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>