VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
michael_bulk at wildga... Guest
|
Posted: Wed Apr 09, 2008 6:05 pm Post subject: [asterisk-users] Jumped from 1.2.7 to 1.4.19, missing CLI co |
|
|
Correct me if I'm wrong, but if you run asterisk as a service this
happens. There is/was some dispute as to the fallacy of using
'safe_asterisk' anyway.
Start it at the command line to see the pretty colors.
Mike wrote:
Quote: | Hi,
I`ve just made a leap from * 1.2.7 to 1.4.19. It took a while to fix
all the deprecated stuff, but everything seems to be working fine now,
except for a little tiny thing. I lost all color in my CLI, which makes
it harder to debug. Is there something that needs doing? I didn't
explicitely disable colorization from the command line, and I did try
using nocolor=no in the config files. No luck.
Regards,
Mike
------------------------------------------------------------------------
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
|
Back to top |
|
|
list at virtutel.ca Guest
|
Posted: Wed Apr 09, 2008 7:00 pm Post subject: [asterisk-users] Jumped from 1.2.7 to 1.4.19, missing CLI co |
|
|
Ah, not bad. When I start asterisk with "/usr/sbin/asterisk -c" I get the
colors, but if I start it without -c and then connect to the console using
"/usr/sbin/asterisk -r" I get no color.
Since I want this to be running in the background, how do I fix this so I
get to have my cake and eat it too?
Mike
Quote: | -----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of
Mik Cheez
Sent: Wednesday, April 09, 2008 19:06
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Jumped from 1.2.7 to 1.4.19,
missing CLI colors
Correct me if I'm wrong, but if you run asterisk as a service
this happens. There is/was some dispute as to the fallacy of
using 'safe_asterisk' anyway.
Start it at the command line to see the pretty colors.
Mike wrote:
Quote: | Hi,
I`ve just made a leap from * 1.2.7 to 1.4.19. It took a
| while to fix
Quote: | all the deprecated stuff, but everything seems to be
| working fine now,
Quote: | except for a little tiny thing. I lost all color in my CLI, which
makes it harder to debug. Is there something that needs doing? I
didn't explicitely disable colorization from the command
| line, and I
Quote: | did try using nocolor=no in the config files. No luck.
Regards,
Mike
| ----------------------------------------------------------------------
Quote: | --
_______________________________________________
-- Bandwidth and Colocation Provided by
| http://www.api-digital.com --
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
|
|
|
Back to top |
|
|
Guest
|
Posted: Wed Apr 09, 2008 7:23 pm Post subject: [asterisk-users] Jumped from 1.2.7 to 1.4.19, missing CLI co |
|
|
IIRC, using the utility 'screen' might work for you?
Moj
Mike wrote:
Quote: | Ah, not bad. When I start asterisk with "/usr/sbin/asterisk -c" I get the
colors, but if I start it without -c and then connect to the console using
"/usr/sbin/asterisk -r" I get no color.
Since I want this to be running in the background, how do I fix this so I
get to have my cake and eat it too?
Mike
Quote: | -----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of
Mik Cheez
Sent: Wednesday, April 09, 2008 19:06
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Jumped from 1.2.7 to 1.4.19,
missing CLI colors
Correct me if I'm wrong, but if you run asterisk as a service
this happens. There is/was some dispute as to the fallacy of
using 'safe_asterisk' anyway.
Start it at the command line to see the pretty colors.
Mike wrote:
Quote: | Hi,
I`ve just made a leap from * 1.2.7 to 1.4.19. It took a
| while to fix
Quote: | all the deprecated stuff, but everything seems to be
| working fine now,
Quote: | except for a little tiny thing. I lost all color in my CLI, which
makes it harder to debug. Is there something that needs doing? I
didn't explicitely disable colorization from the command
| line, and I
Quote: | did try using nocolor=no in the config files. No luck.
Regards,
Mike
| ----------------------------------------------------------------------
Quote: | --
_______________________________________________
-- Bandwidth and Colocation Provided by
| http://www.api-digital.com --
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
|
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
|
--
*Mojo Wentworth*
HORAN & COMPANY, LLC
403 Lincoln Street, Suite 210
Sitka, AK 99835
(907) 747-6666
(907) 747-7417 - Fax
mojo at horanappraisals.com |
|
Back to top |
|
|
tzafrir.cohen at xorco... Guest
|
Posted: Wed Apr 09, 2008 8:14 pm Post subject: [asterisk-users] Jumped from 1.2.7 to 1.4.19, missing CLI co |
|
|
On Wed, Apr 09, 2008 at 08:00:38PM -0400, Mike wrote:
Quote: | Ah, not bad. When I start asterisk with "/usr/sbin/asterisk -c" I get the
colors, but if I start it without -c and then connect to the console using
"/usr/sbin/asterisk -r" I get no color.
Since I want this to be running in the background, how do I fix this so I
get to have my cake and eat it too?
|
The patch is rather trivial. Just make Asterisk pretend that it is
"vt100" (or whatever) if it is running as a service.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir |
|
Back to top |
|
|
anthonyf at rockynet.com Guest
|
Posted: Wed Apr 09, 2008 9:15 pm Post subject: [asterisk-users] Jumped from 1.2.7 to 1.4.19, missing CLI co |
|
|
Tzafrir Cohen wrote:
Quote: | On Wed, Apr 09, 2008 at 08:00:38PM -0400, Mike wrote:
Quote: | Ah, not bad. When I start asterisk with "/usr/sbin/asterisk -c" I get the
colors, but if I start it without -c and then connect to the console using
"/usr/sbin/asterisk -r" I get no color.
Since I want this to be running in the background, how do I fix this so I
get to have my cake and eat it too?
|
The patch is rather trivial. Just make Asterisk pretend that it is
"vt100" (or whatever) if it is running as a service.
| I cant get color using asterisk -r on 1.2.17 or 18 either. |
|
Back to top |
|
|
jra at baylink.com Guest
|
Posted: Wed Apr 09, 2008 9:40 pm Post subject: [asterisk-users] Jumped from 1.2.7 to 1.4.19, missing CLI co |
|
|
On Wed, Apr 09, 2008 at 04:23:38PM -0800, Mojo with Horan & Company, LLC wrote:
Quote: | Mike wrote:
Quote: | Ah, not bad. When I start asterisk with "/usr/sbin/asterisk -c" I get the
colors, but if I start it without -c and then connect to the console using
"/usr/sbin/asterisk -r" I get no color.
Since I want this to be running in the background, how do I fix this so I
get to have my cake and eat it too?
| IIRC, using the utility 'screen' might work for you?
|
Indeed. VICIdial runs asterisk behind screen, and I see colors in the
console.
Cheers,
-- jra
--
Jay R. Ashworth Baylink jra at baylink.com
Designer The Things I Think RFC 2100
Ashworth & Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA http://photo.imageinc.us +1 727 647 1274
Those who cast the vote decide nothing.
Those who count the vote decide everything.
-- (Joseph Stalin) |
|
Back to top |
|
|
jkinard at closeup.org Guest
|
Posted: Thu Apr 10, 2008 10:43 am Post subject: [asterisk-users] Jumped from 1.2.7 to 1.4.19, missing CLI co |
|
|
Seconded/thirded too. Went from 1.4.18 to 1.4.19, stopped using -c and went to background and connecting using -r, and colors disappeared for me as well. I'm using screen as well (ls -l --color=auto works fine in screen too).
Is there a documented "fix" available, or is this more just an odd curiosity regarding termtypes?
--J
-----Original Message-----
Sent: Wednesday, April 09, 2008 10:16 PM
Tzafrir Cohen wrote:
Quote: | On Wed, Apr 09, 2008 at 08:00:38PM -0400, Mike wrote:
Quote: | Ah, not bad. When I start asterisk with "/usr/sbin/asterisk -c" I get the
colors, but if I start it without -c and then connect to the console using
"/usr/sbin/asterisk -r" I get no color.
Since I want this to be running in the background, how do I fix this so I
get to have my cake and eat it too?
|
The patch is rather trivial. Just make Asterisk pretend that it is
"vt100" (or whatever) if it is running as a service.
| I cant get color using asterisk -r on 1.2.17 or 18 either. |
|
Back to top |
|
|
support at drdos.info Guest
|
Posted: Thu Apr 10, 2008 11:10 am Post subject: [asterisk-users] Jumped from 1.2.7 to 1.4.19, missing CLI co |
|
|
Joshua Kinard wrote:
Quote: | Seconded/thirded too. Went from 1.4.18 to 1.4.19, stopped using -c and went to background and connecting using -r, and colors disappeared for me as well. I'm using screen as well (ls -l --color=auto works fine in screen too).
|
The colors work if you use the supplied init scripts.
cd /path/to/asterisk/source/contrib/init.d
Doug
--
Ben Franklin quote:
"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." |
|
Back to top |
|
|
tzafrir.cohen at xorco... Guest
|
Posted: Thu Apr 10, 2008 11:29 am Post subject: [asterisk-users] Jumped from 1.2.7 to 1.4.19, missing CLI co |
|
|
On Thu, Apr 10, 2008 at 11:43:18AM -0400, Joshua Kinard wrote:
Quote: |
Seconded/thirded too. Went from 1.4.18 to 1.4.19, stopped using -c and went to background and connecting using -r, and colors disappeared for me as well. I'm using screen as well (ls -l --color=auto works fine in screen too).
Is there a documented "fix" available, or is this more just an odd curiosity regarding termtypes?
|
Yes. THe patch is pretty simple:
http://bugs.digium.com/9048
Basically Asterisk explicitly disables colors support when you try to
open a remote terminal. In that patch I explicitly set the terminal
type.
This is a very silly hack - when you use a remote console you could not
care less about the local console. Sadly Asterisk assumes that your
remote console uses exactly the same settings (and escape sequences) as
the local one.
The fact that this has not generated many bug reports only serves to show
how much compatible (to "ansi") are different terminals these days. At
least for the basics.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir |
|
Back to top |
|
|
jkinard at closeup.org Guest
|
Posted: Thu Apr 10, 2008 11:48 am Post subject: [asterisk-users] Jumped from 1.2.7 to 1.4.19, missing CLI co |
|
|
Hmm, interesting, initially it wasn't working. Maybe I started it from outside of screen? Odd.
BTW, is it possible for the SuSE script to support a variable to pass args to the daemon? Like perhaps modifying ASTARGS to be a changable param at the top of the script? I like the verbose output, and attempting to add it there myself (and change Line 71 to recognize its existence) didn't pan out right. Right now, I have to manually send "core set verbose 999" when connecting in.
Thanks!,
--J
-----Original Message-----
Sent: Thursday, April 10, 2008 12:10 PM
Joshua Kinard wrote:
Quote: | Seconded/thirded too. Went from 1.4.18 to 1.4.19, stopped using -c and went to background and connecting using -r, and colors disappeared for me as well. I'm using screen as well (ls -l --color=auto works fine in screen too).
|
The colors work if you use the supplied init scripts.
cd /path/to/asterisk/source/contrib/init.d
Doug
--
Ben Franklin quote:
"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users |
|
Back to top |
|
|
tzafrir.cohen at xorco... Guest
|
Posted: Thu Apr 10, 2008 12:07 pm Post subject: [asterisk-users] Jumped from 1.2.7 to 1.4.19, missing CLI co |
|
|
On Thu, Apr 10, 2008 at 12:48:05PM -0400, Joshua Kinard wrote:
Quote: |
Hmm, interesting, initially it wasn't working. Maybe I started it from
outside of screen? Odd.
|
Or maybe it's plain buggy. Bug reports are welcomed.
Quote: |
BTW, is it possible for the SuSE script to support a variable to pass
args to the daemon? Like perhaps modifying ASTARGS to be a changable
param at the top of the script? I like the verbose output, and
attempting to add it there myself (and change Line 71 to recognize
its existence) didn't pan out right. Right now, I have to manually
send "core set verbose 999" when connecting in.
|
init.d script source extra parameters from /etc/sysconfig/<scriptname>
(/etc/default/<scriptname> on Debian).
Set this variable in that /etc/sysconfig/asterisk (to -Fvv)
BTW: why do you prefer it to start verbosely? This tends to clutter the
logs with useless information.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir |
|
Back to top |
|
|
support at drdos.info Guest
|
Posted: Thu Apr 10, 2008 12:08 pm Post subject: [asterisk-users] Jumped from 1.2.7 to 1.4.19, missing CLI co |
|
|
Joshua Kinard wrote:
Quote: | send "core set verbose 999" when connecting in.
| I'm running Mandriva and found the line that had -vvv. I like mine at
15, so just put 15 v's on that line. Worked great.
Doug
--
Ben Franklin quote:
"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety." |
|
Back to top |
|
|
tzafrir.cohen at xorco... Guest
|
Posted: Thu Apr 10, 2008 12:21 pm Post subject: [asterisk-users] Jumped from 1.2.7 to 1.4.19, missing CLI co |
|
|
On Thu, Apr 10, 2008 at 01:08:21PM -0400, Doug Lytle wrote:
Quote: | Joshua Kinard wrote:
Quote: | send "core set verbose 999" when connecting in.
|
I'm running Mandriva and found the line that had -vvv. I like mine at
15, so just put 15 v's on that line. Worked great.
|
15? What do you need that for?
IIRC the highest verbosity level is 5. anything more than that doesn't
change the clogging of your logs.
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir |
|
Back to top |
|
|
anthonyf at rockynet.com Guest
|
Posted: Thu Apr 10, 2008 12:35 pm Post subject: [asterisk-users] Jumped from 1.2.7 to 1.4.19, missing CLI co |
|
|
Tzafrir Cohen wrote:
Quote: | On Thu, Apr 10, 2008 at 01:08:21PM -0400, Doug Lytle wrote:
Quote: | Joshua Kinard wrote:
Quote: | send "core set verbose 999" when connecting in.
| I'm running Mandriva and found the line that had -vvv. I like mine at
15, so just put 15 v's on that line. Worked great.
|
15? What do you need that for?
IIRC the highest verbosity level is 5. anything more than that doesn't
change the clogging of your logs.
| "This one goes to 11"
--
Thank you and have any kind of day you want,
Anthony Francis
Rockynet VOIP |
|
Back to top |
|
|
jkinard at closeup.org Guest
|
Posted: Thu Apr 10, 2008 12:35 pm Post subject: [asterisk-users] Jumped from 1.2.7 to 1.4.19, missing CLI co |
|
|
-----Original Message-----
Sent: Thursday, April 10, 2008 1:08 PM
Quote: | Or maybe it's plain buggy. Bug reports are welcomed.
|
Nah, I think it was PEBKAC and PICNIC here :: sheepish grin ::
I tried adding -vvvv-style options to the DAEMON var assignment, and it looks like the -f check further down didn't like that. I'll look into the sysconfig setting...more used to Gentoo setups than SuSE.
Quote: | BTW: why do you prefer it to start verbosely? This tends to clutter the
logs with useless information.
|
Oh, this is just for a faxing system. We have an ancient Rolm in place for the actual phone calls. I want to monitor/log things when I roll it out for testing to catch any oddities that may occur with inbound and outbound faxes. Communication between it and the Rolm sometimes went to "sleep" (I sent a mail here on that, but got no responses), and so, I want to watch for it in case it happens again. Might've been a bug fixed in the newer releases of zaptel and asterisk (which I'm running now).
--J |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|