search for: asterisk_prompt

Displaying 14 results from an estimated 14 matches for "asterisk_prompt".

2007 Aug 23
3
Asterisk Prompt
Hi List; I read the following sentence: "The CLI prompt is set with the ASTERISK_PROMPT UNIX environment variable" In the following link: http://www.voip-info.org/wiki/index.php page=Asterisk+CLI+prompt The question is: what is the ASTERISK_PROMPT UNIX environment variable and where I can access it to change it? Also where I can find information about it? Regards Bilal Ghayad...
2020 May 31
5
CLI color prompt
...ad in the wiki that I can use %Cn[;n] https://wiki.asterisk.org/wiki/display/AST/Asterisk+CLI+Configuration But what does this mean ? There is no example how to actually use it. where do I put it? What syntax is that anyway? How do I specify red ? I currently have this in my environment: export ASTERISK_PROMPT="[%H]: " which changes the prompt to hostname Ho can I make this prompt red ? thanks,
2014 Nov 25
0
asterisk prompt
...tion I have found this: %Cn[;n] Change terminal foreground (and optional background) color to specified. A full list of colors may be found in include/asterisk/term.h* But nowhere could I find what format the color code should be. I have tried all possible permutations, none of them works: ASTERISK_PROMPT="%Cn[COLOR_BLUE] %H: " asterisk -vvvvvvr ASTERISK_PROMPT="%Cn[32;128] %H: " asterisk -vvvvvvr ASTERISK_PROMPT="%Cn[32;] %H: " asterisk -vvvvvvr ASTERISK_PROMPT="%Cn[;32] %H: " asterisk -vvvvvvr ASTERISK_PROMPT="%Cn[;COLOR_CYAN] %H: " asteris...
2020 May 31
4
CLI color prompt
...15:59, Antony Stone wrote: > On Sunday 31 May 2020 at 15:44:46, Fourhundred Thecat wrote: > > "%Cn[;n] - Change terminal foreground (and optional background) color to > specified A full list of colors may be found in include/asterisk/term.h" > > So, try: > > export ASTERISK_PROMPT="%C31[%H]: " > > (I got 31 from reading the term.h file.) thanks, but that does not work for me. When I use your example: export ASTERISK_PROMPT="%C31[%H]: " I get this prompt (voip is my hostname): [1;31m[voip]: [1;0m
2019 Oct 23
2
issues with Asterisk CLI
...terisk use the readline library? Does it use /etc/inputrc ? Can the behavior described above be configured ? 2) I would like to be able to change the color of the asterisk prompt as described here: https://www.voip-info.org/asterisk-cli-prompt/ I tried all possible permutations, but none work: ASTERISK_PROMPT="%Cn[COLOR_BLUE] %H: " asterisk -vvvvvvr ASTERISK_PROMPT="%Cn[32;128] %H: " asterisk -vvvvvvr ASTERISK_PROMPT="%Cn[32;] %H: " asterisk -vvvvvvr ASTERISK_PROMPT="%Cn[;32] %H: " asterisk -vvvvvvr ASTERISK_PROMPT="%Cn[;COLOR_CYAN] %H: " asterisk -vvvvv...
2020 May 31
2
CLI color prompt
> On 2020-05-31 15:59, Antony Stone wrote: > On Sunday 31 May 2020 at 15:44:46, Fourhundred Thecat wrote: > > So, try: > > export ASTERISK_PROMPT="%C31[%H]: " does this work for you? Did you test it on your side? It color prompt works for anybody, could you please post a working example? Or is this a fictional functionality that actually does not work ?
2020 May 31
3
CLI color prompt
> On 2020-05-31 18:39, Ira wrote: > > I typed this at the terminal prompt: export ASTERISK_PROMPT="%C31[%H]: " > > Typing at the same place: echo $TERM returns xterm > > And now I have colored prompts at the Asterisk command line, so I can > assure you it can work. Kind of cool, 14 years using Asterisk and > because of your question, I now have colored prompts. &gt...
2020 May 31
0
CLI color prompt
...2020 at 15:44:46, Fourhundred Thecat wrote: > Hello, > > how can I change the color of the asterisk prompt to red ? > > I read in the wiki that I can use %Cn[;n] > > https://wiki.asterisk.org/wiki/display/AST/Asterisk+CLI+Configuration "The CLI prompt is set with the ASTERISK_PROMPT UNIX environment variable that you set from the Unix shell before starting Asterisk." > I currently have this in my environment: > > export ASTERISK_PROMPT="[%H]: " > > which changes the prompt to hostname > > Ho can I make this prompt red ? "%Cn[;n] - Ch...
2020 May 31
0
CLI color prompt
...gt; On Sunday 31 May 2020 at 15:44:46, Fourhundred Thecat wrote: >> >> "%Cn[;n] - Change terminal foreground (and optional background) color to >> specified A full list of colors may be found in include/asterisk/term.h" >> >> So, try: >> >> export ASTERISK_PROMPT="%C31[%H]: " >> >> (I got 31 from reading the term.h file.) > > thanks, but that does not work for me. When I use your example: > > export ASTERISK_PROMPT="%C31[%H]: " > > I get this prompt (voip is my hostname): > > [1;31m[voip]: [1;0m > -...
2020 May 31
0
CLI color prompt
...2020, 9:04:10 AM, you wrote: Fourhundred> Did you test it on your side? Fourhundred> It color prompt works for anybody, could you please post a working example? Fourhundred> Or is this a fictional functionality that actually does not work ? I typed this at the terminal prompt: export ASTERISK_PROMPT="%C31[%H]: " Typing at the same place: echo $TERM returns xterm And now I have colored prompts at the Asterisk command line, so I can assure you it can work. Kind of cool, 14 years using Asterisk and because of your question, I now have colored prompts. Do I have to do something to m...
2020 May 31
0
CLI color prompt
...https://www.facebook.com/jeff.lacoursiere> <https://linkedin.com/in/jeff-lacoursiere-884361> <https://www.twitter.com/stratustalk> On 5/31/20 11:42 AM, Fourhundred Thecat wrote: >> On 2020-05-31 18:39, Ira wrote: >> >> I typed this at the terminal prompt: export ASTERISK_PROMPT="%C31[%H]: " >> >> Typing at the same place: echo $TERM returns xterm >> >> And now I have colored prompts at the Asterisk command line, so I can >> assure you it can work. Kind of cool, 14 years using Asterisk and >> because of your question, I now h...
2004 Oct 05
0
Asterisk CLI Prompt : Small hack
.... So me and a friend made this uber-quick hack to get it working. Flames/comments/suggestions: Matt or Matt flewid@flewid.ca sideshow@terahertz.net now you can use %n in your prompts to give a newline. A prompt example is below. export ASTERISK_PROMPT="%n[ %d/%t ]%n[ Load1: %l1 Load2: %l2 Load3: %l3 ]%n[ Processes: %l4 PID: %l5 ]%n[ %H ] %%%# " or env ASTERISK_PROMPT="%n[ %d/%t ]%n[ Load1: %l1 Load2: %l2 Load3: %l3 ]%n[ Processes: %l4 PID: %l5 ]%n[ %H ] %%%# " --- begin patch [ apply in asterisk/ with patch -p0 < ] ---...
2007 Feb 05
1
How to access environment variable?
How can I access an environmental variable in Asterisk 1.2.5? It should be possible according to: http://www.voip-info.org/wiki/view/Asterisk+variables which says: Environment Variables You may access unix environment variables using the syntax: ${ENV(foo)} ${ENV(ASTERISK_PROMPT)}: the current Asterisk CLI prompt. ${ENV(RECORDED_FILE)}: the filename of the last file saved by the Record command I have an environmental variable MYIP which contains my current IP address but when I execute exten _4XX the following line only says 'myip is ' and the rest is blank in...
2020 May 31
0
CLI color prompt
On Sunday 31 May 2020 at 16:03:07, Fourhundred Thecat wrote: > export ASTERISK_PROMPT="%C31[%H]: " > > I get this prompt (voip is my hostname): > > [1;31m[voip]: [1;0m In that case I suspect you're using a terminal which doesn't support colours. If "echo $TERM" tells you any sort of "xterm", "vt100", "crt" or...