Using Asterisk 1.4.26.2 I can get a nice colored CLI if I run asterisk -c But I cannot achieve this when I reattach to an existing instance (as i want to do) with asterisk -r. Is there a way to reattach and have color? Thanks -- - Eric Smith
Try asterisk -rc. -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Eric Smith Sent: Monday, August 16, 2010 7:43 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] colored CLI with reattach Using Asterisk 1.4.26.2 I can get a nice colored CLI if I run asterisk -c But I cannot achieve this when I reattach to an existing instance (as i want to do) with asterisk -r. Is there a way to reattach and have color? Thanks -- - Eric Smith -- _____________________________________________________________________ -- 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
On Mon, Aug 16, 2010 at 08:12:28AM -0500, Danny Nicholas wrote:> Try asterisk -rc.This is pointless. -c has no effect when you open a remote console. Also note that the colors are only set in the main Asterisk process and not in the remote console. -- 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
On Monday 16 August 2010 07:42:36 Eric Smith wrote:> Using Asterisk 1.4.26.2 > I can get a nice colored CLI if I run asterisk -c > > But I cannot achieve this when I reattach to an existing instance > (as i want to do) with asterisk -r. > > Is there a way to reattach and have color?Yes, but you'll need to upgrade to the latest 1.4 release. This also only works if you do not explicitly disable colors (-n) in the main daemon. -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org
Tilghman Lesher wrote:>> >> Eric Smith wrote: >> Using Asterisk 1.4.26.2 >> I can get a nice colored CLI if I run asterisk -c >> >> But I cannot achieve this when I reattach to an existing instance >> (as i want to do) with asterisk -r. >> >> Is there a way to reattach and have color? > > Yes, but you'll need to upgrade to the latest 1.4 release. This also > only works if you do not explicitly disable colors (-n) in the main > daemon.Eric, You could also run the main Asterisk daemon within a screen <http://www.manpagez.com/man/1/screen/> session. It will require some changes to how Asterisk is started at boot, but they should be simpler and less prone to introducing any side effects than upgrading to the latest release. Regards, Matthew Roth InterMedia Marketing Solutions Software Engineer and Systems Developer