<div dir="ltr">Check the permissions for the directory.<br><br>Jai<br><a href="http://www.didforsale.com">http://www.didforsale.com</a><br>. <br><br><br><br><div class="gmail_quote">On Sun, Oct 19, 2008 at 1:19 PM, Ahmed Torintino <span dir="ltr"><<a href="mailto:torintino@hotmail.com">torintino@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>i have done that as follow<br>
<br>
<p style="margin: 0in 0in 10pt;"><font color="#000000" size="3" face="Calibri">[root@localhost asterisk]# service asterisk start</font></p>
<p style="margin: 0in 0in 10pt;"><font color="#000000" size="3" face="Calibri">Starting asterisk:<span> </span>[<span> </span>OK<span> </span>]</font></p>
<p style="margin: 0in 0in 10pt;"><font color="#000000" size="3" face="Calibri">[root@localhost asterisk]# asterisk</font></p>
<p style="margin: 0in 0in 10pt;"><font color="#000000" size="3" face="Calibri">[root@localhost asterisk]# asterisk</font></p>
<p style="margin: 0in 0in 10pt;"><font color="#000000" size="3" face="Calibri">[root@localhost asterisk]# asterisk -vr</font></p>
<p style="margin: 0in 0in 10pt;"><font color="#000000" size="3" face="Calibri">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>
<br>
Date: Sun, 19 Oct 2008 16:05:34 -0400<br>From: <a href="mailto:jerdguez@gmail.com" target="_blank">jerdguez@gmail.com</a><div class="Ih2E3d"><br>To: <a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a><br>
Subject: Re: [asterisk-users] Asterisk Problem<br><br><br>
</div><div><div></div><div class="Wj3C7c"><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>On Sun, Oct 19, 2008 at 3:50 PM, Ahmed torinto <span dir="ltr"><<a href="mailto:torinto1984@hotmail.com" target="_blank">torinto1984@hotmail.com</a>></span> wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
<font color="#000000" size="3" face="Calibri">After installing a new box and asterisk. i have got these errors</font><br>
<font color="#000000" size="3" face="Calibri"> </font><br>
<font color="#000000" size="3" face="Calibri"> </font><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri">[root@localhost ~]# asterisk</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3" face="Calibri"> </font></span><br>
<span style="color: rgb(15, 36, 62);"><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: rgb(15, 36, 62);"><font size="3" face="Calibri"> </font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri">[root@localhost ~]# asterisk -vr</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3" face="Calibri"> </font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri">Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)</font></font></span><br>
<font color="#000000" size="3" face="Calibri"> </font><br>
<font color="#000000" size="3" face="Calibri">I didn't find a folder called asterisk in the directory /var/run</font><br>
<font color="#000000" size="3" face="Calibri"> </font><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri">[root@localhost ~]# cd /var/run/</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri">[root@localhost run]# ls</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><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: rgb(15, 36, 62);"><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: rgb(15, 36, 62);"><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: rgb(15, 36, 62);"><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: rgb(15, 36, 62);"><font size="3"><font face="Calibri">[root@localhost run]#</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri">[root@localhost run]# asterisk -cvvvvv</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><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: rgb(15, 36, 62);"><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: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Parsing '/etc/asterisk/asterisk.conf': Found</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Parsing '/etc/asterisk/extconfig.conf': Found</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><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: rgb(15, 36, 62);"><font size="3"><font face="Calibri">Created by Mark Spencer <<a href="mailto:markster@digium.com" target="_blank">markster@digium.com</a>></font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri">Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for details.</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><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: rgb(15, 36, 62);"><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: rgb(15, 36, 62);"><font size="3"><font face="Calibri">certain conditions. Type 'show license' for details.</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri">=========================================================================</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Parsing '/etc/asterisk/logger.conf': Found</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri">Asterisk Event Logger Started /var/log/asterisk/event_log</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Parsing '/etc/asterisk/dnsmgr.conf': Found</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri">Asterisk Dynamic Loader loading preload modules:</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Parsing '/etc/asterisk/modules.conf': Found</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Ping</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Events</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Logoff</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Hangup</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Status</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Setvar</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Getvar</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Redirect</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Originate</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Command</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Manager registered action ExtensionState</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Manager registered action AbsoluteTimeout</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Manager registered action MailboxStatus</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Manager registered action MailboxCount</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Manager registered action ListCommands</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Parsing '/etc/asterisk/manager.conf': Found</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3"><font face="Calibri"><span> </span>== Parsing '/etc/asterisk/manager_custom.conf': Found</font></font></span><br>
<span style="color: rgb(15, 36, 62);"><font size="3" face="Calibri">[root@localhost run]#</font></span><br>
<font color="#000000" size="3" face="Calibri"> </font><br>
<font color="#000000" size="3" face="Calibri">How can i solve it please?</font><br>
<font color="#000000" size="3" face="Calibri"> </font><br>
<font color="#000000" size="3" face="Calibri"> </font><br>
<font color="#000000" size="3" face="Calibri"> </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></div></div><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="_blank">Learn more!</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></div>