Hi there, I have been trying to solve this error message that I wrote below. Has anyone faced with this problem before ? Thanks for help -------------------------------------------------------- [root at asterisk1 ~]# asterisk -rx "show channels" Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) -------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090409/b18d6202/attachment.htm
It just means that asterisk isn't running. You can verify this with .ps -aux | grep asterisk _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Yavuzhan Canli Sent: Thursday, April 09, 2009 8:44 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] asterisk command line problem Hi there, I have been trying to solve this error message that I wrote below. Has anyone faced with this problem before ? Thanks for help -------------------------------------------------------- [root at asterisk1 ~]# asterisk -rx "show channels" Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?) -------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090409/0a61459b/attachment.htm
On Thu, 2009-04-09 at 16:44 +0300, Yavuzhan Canli wrote:> [root at asterisk1 ~]# asterisk -rx "show channels" > Unable to connect to remote asterisk > (does /var/run/asterisk/asterisk.ctl exist?)That typically means that Asterisk isn't running, or that the asterisk.ctl file is in a different location. Is Asterisk running? If so, can you find the asterisk.ctl file that was created when it was started? -- Jared Smith Training Manager Digium, Inc.
On 9 Apr 2009, at 14:44, Yavuzhan Canli wrote:> -------------------------------------------------------- > [root at asterisk1 ~]# asterisk -rx "show channels" > Unable to connect to remote asterisk (does /var/run/asterisk/ > asterisk.ctl exist?) > --------------------------------------------------------Asterisk is not running.
On Thu, 9 Apr 2009, Yavuzhan Canli wrote:> I have been trying to solve this error message that I wrote below. Has > anyone faced with this problem before ? > > -------------------------------------------------------- > [root at asterisk1 ~]# asterisk -rx "show channels" > Unable to connect to remote asterisk > (does /var/run/asterisk/asterisk.ctl exist?) > --------------------------------------------------------See if these commands shed some light. uname -a grep astrundir /etc/asterisk/asterisk.conf ps -ef | grep asterisk ls -l /var/run/asterisk.ctl sudo /usr/sbin/asterisk -rx "show channels" If not, please reply with the output from each. Thanks in advance, ------------------------------------------------------------------------ Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000