<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>
&nbsp;<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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>[<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>OK<SPAN style="mso-spacerun: yes">&nbsp; </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>
&nbsp;<BR>
/var/run/asterisk.ctl&nbsp;&nbsp;&nbsp; and&nbsp;&nbsp;&nbsp; /var/run/asterisk.pid<BR>
&nbsp;<BR>
&nbsp;<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>&lt;<A href="mailto:torinto1984@hotmail.com">torinto1984@hotmail.com</A>&gt;</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>&nbsp;</FONT><BR>
<FONT face=Calibri color=#000000 size=3>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp; </SPAN>dbus<SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>iptraf<SPAN>&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>messagebus.pid<SPAN>&nbsp; </SPAN>ntpd.pid<SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>sendmail.pid<SPAN>&nbsp;&nbsp; </SPAN>sudo<SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>utmp</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>atd.pid<SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>dhclient-eth0.pid<SPAN>&nbsp; </SPAN>klogd.pid<SPAN>&nbsp; </SPAN>mysqld<SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>ppp<SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>sm-client.pid<SPAN>&nbsp; </SPAN>syslogd.pid<SPAN>&nbsp; </SPAN>winbindd</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>console<SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>haldaemon.pid<SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>mdadm<SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>netreport<SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>rpc.statd.pid<SPAN>&nbsp; </SPAN>spamassassin<SPAN>&nbsp;&nbsp; </SPAN>tog-pegasus<SPAN>&nbsp; </SPAN>xfs.pid</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri>crond.pid<SPAN>&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>httpd.pid<SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>mdmpd<SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>nscd<SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>saslauthd<SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>sshd.pid<SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>usb<SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </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>&nbsp; </SPAN>== Parsing '/etc/asterisk/asterisk.conf': Found</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN>&nbsp; </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 &lt;<A href="mailto:markster@digium.com">markster@digium.com</A>&gt;</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>&nbsp; </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>&nbsp; </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>&nbsp; </SPAN>== Parsing '/etc/asterisk/modules.conf': Found</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN>&nbsp; </SPAN>== Manager registered action Ping</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN>&nbsp; </SPAN>== Manager registered action Events</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN>&nbsp; </SPAN>== Manager registered action Logoff</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN>&nbsp; </SPAN>== Manager registered action Hangup</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN>&nbsp; </SPAN>== Manager registered action Status</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN>&nbsp; </SPAN>== Manager registered action Setvar</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN>&nbsp; </SPAN>== Manager registered action Getvar</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN>&nbsp; </SPAN>== Manager registered action Redirect</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN>&nbsp; </SPAN>== Manager registered action Originate</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN>&nbsp; </SPAN>== Manager registered action Command</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN>&nbsp; </SPAN>== Manager registered action ExtensionState</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN>&nbsp; </SPAN>== Manager registered action AbsoluteTimeout</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN>&nbsp; </SPAN>== Manager registered action MailboxStatus</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN>&nbsp; </SPAN>== Manager registered action MailboxCount</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN>&nbsp; </SPAN>== Manager registered action ListCommands</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN>&nbsp; </SPAN>== Parsing '/etc/asterisk/manager.conf': Found</FONT></FONT></SPAN><BR>
<SPAN style="COLOR: #0f243e"><FONT size=3><FONT face=Calibri><SPAN>&nbsp; </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>&nbsp;</FONT><BR>
<FONT face=Calibri color=#000000 size=3>How can i solve it please?</FONT><BR>
<FONT face=Calibri color=#000000 size=3>&nbsp;</FONT><BR>
<FONT face=Calibri color=#000000 size=3>&nbsp;</FONT><BR>
<FONT face=Calibri color=#000000 size=3>&nbsp;</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>&nbsp; <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>