<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>i have done that as follow<BR>
<BR>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri color=#000000 size=3>[root@localhost asterisk]# service asterisk start</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri color=#000000 size=3>Starting asterisk:<SPAN style="mso-spacerun: yes"> </SPAN>[<SPAN style="mso-spacerun: yes"> </SPAN>OK<SPAN style="mso-spacerun: yes"> </SPAN>]</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri color=#000000 size=3>[root@localhost asterisk]# asterisk</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri color=#000000 size=3>[root@localhost asterisk]# asterisk</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri color=#000000 size=3>[root@localhost asterisk]# asterisk -vr</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><FONT face=Calibri color=#000000 size=3>Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)</FONT></P>
but i think the problem is because of those couple files<BR>
<BR>
/var/run/asterisk.ctl and /var/run/asterisk.pid<BR>
<BR>
<BR>
Thanks<BR><BR><BR><BR><BR>
<HR id=EC_stopSpelling>
<BR>
Date: Sun, 19 Oct 2008 16:05:34 -0400<BR>From: jerdguez@gmail.com<BR>To: asterisk-users@lists.digium.com<BR>Subject: Re: [asterisk-users] Asterisk Problem<BR><BR><BR>
<DIV dir=ltr>When installing Asterisk, did you issue the command "make config" after "make samples" ??
<DIV><BR></DIV>
<DIV>If so, try issuing "service asterisk start" on RedHat or "/etc/init.d/asterisk start" on Debian.</DIV>
<DIV><BR></DIV>
<DIV>Regards,</DIV>
<DIV>Juan<BR><BR>
<DIV class=EC_gmail_quote>On Sun, Oct 19, 2008 at 3:50 PM, Ahmed torinto <SPAN dir=ltr><<A href="mailto:torinto1984@hotmail.com">torinto1984@hotmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=EC_gmail_quote style="PADDING-LEFT: 1ex; BORDER-LEFT: #ccc 1px solid">
<DIV>
<FONT face=Calibri color=#000000 size=3>After installing a new box and asterisk. i have got these errors</FONT><BR>
<FONT face=Calibri color=#000000 size=3> </FONT><BR>
<FONT face=Calibri color=#000000 size=3> </FONT><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>[root@localhost ~]# asterisk</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT face=Calibri size=3> </FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>Unable to open pid file '/var/run/asterisk/asterisk.pid': No such file or directory</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT face=Calibri size=3> </FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>[root@localhost ~]# asterisk -vr</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT face=Calibri size=3> </FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)</FONT></FONT></SPAN><BR>
<FONT face=Calibri color=#000000 size=3> </FONT><BR>
<FONT face=Calibri color=#000000 size=3>I didn't find a folder called asterisk in the directory /var/run</FONT><BR>
<FONT face=Calibri color=#000000 size=3> </FONT><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>[root@localhost ~]# cd /var/run/</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>[root@localhost run]# ls</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>acpid.socket<SPAN> </SPAN>dbus<SPAN> </SPAN>iptraf<SPAN> </SPAN>messagebus.pid<SPAN> </SPAN>ntpd.pid<SPAN> </SPAN>sendmail.pid<SPAN> </SPAN>sudo<SPAN> </SPAN>utmp</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>atd.pid<SPAN> </SPAN>dhclient-eth0.pid<SPAN> </SPAN>klogd.pid<SPAN> </SPAN>mysqld<SPAN> </SPAN>ppp<SPAN> </SPAN>sm-client.pid<SPAN> </SPAN>syslogd.pid<SPAN> </SPAN>winbindd</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>console<SPAN> </SPAN>haldaemon.pid<SPAN> </SPAN>mdadm<SPAN> </SPAN>netreport<SPAN> </SPAN>rpc.statd.pid<SPAN> </SPAN>spamassassin<SPAN> </SPAN>tog-pegasus<SPAN> </SPAN>xfs.pid</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>crond.pid<SPAN> </SPAN>httpd.pid<SPAN> </SPAN>mdmpd<SPAN> </SPAN>nscd<SPAN> </SPAN>saslauthd<SPAN> </SPAN>sshd.pid<SPAN> </SPAN>usb<SPAN> </SPAN>xinetd.pid</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>[root@localhost run]#</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>[root@localhost run]# asterisk -cvvvvv</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>Unable to open pid file '/var/run/asterisk/asterisk.pid': No such file or directory</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>Unable to bind socket to /var/run/asterisk/asterisk.ctl: No such file or directory</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Parsing '/etc/asterisk/asterisk.conf': Found</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Parsing '/etc/asterisk/extconfig.conf': Found</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>Asterisk 1.2.28, Copyright (C) 1999 - 2007 Digium, Inc. and others.</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>Created by Mark Spencer <<A href="mailto:markster@digium.com">markster@digium.com</A>></FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for details.</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>This is free software, with components licensed under the GNU General Public</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>License version 2 and other licenses; you are welcome to redistribute it under</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>certain conditions. Type 'show license' for details.</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>=========================================================================</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Parsing '/etc/asterisk/logger.conf': Found</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>Asterisk Event Logger Started /var/log/asterisk/event_log</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Parsing '/etc/asterisk/dnsmgr.conf': Found</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>Asterisk Dynamic Loader loading preload modules:</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Parsing '/etc/asterisk/modules.conf': Found</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Manager registered action Ping</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Manager registered action Events</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Manager registered action Logoff</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Manager registered action Hangup</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Manager registered action Status</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Manager registered action Setvar</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Manager registered action Getvar</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Manager registered action Redirect</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Manager registered action Originate</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Manager registered action Command</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Manager registered action ExtensionState</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Manager registered action AbsoluteTimeout</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Manager registered action MailboxStatus</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Manager registered action MailboxCount</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Manager registered action ListCommands</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Parsing '/etc/asterisk/manager.conf': Found</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN> </SPAN>== Parsing '/etc/asterisk/manager_custom.conf': Found</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT face=Calibri size=3>[root@localhost run]#</FONT></SPAN><BR>
<FONT face=Calibri color=#000000 size=3> </FONT><BR>
<FONT face=Calibri color=#000000 size=3>How can i solve it please?</FONT><BR>
<FONT face=Calibri color=#000000 size=3> </FONT><BR>
<FONT face=Calibri color=#000000 size=3> </FONT><BR>
<FONT face=Calibri color=#000000 size=3> </FONT><BR><BR>
<HR>
Get news, entertainment and everything you care about at Live.com. <A href="http://www.live.com/getstarted.aspx" target=_blank>Check it out!</A></DIV><BR>_______________________________________________<BR>-- Bandwidth and Colocation Provided by <A href="http://www.api-digital.com/" target=_blank>http://www.api-digital.com</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><BR clear=all><BR>-- <BR>Juan E. Rodríguez<BR>Cel. 829-886-5565<BR>Work: 809-724-9227<BR></DIV></DIV><br /><hr />Explore the seven wonders of the world <a href='http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE' target='_new'>Learn more!</a></body>
</html>