<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="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="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><p style="margin:0in 0in 10pt"><font face="Calibri" color="#000000" size="3">After installing a new box and asterisk. i have got these errors</font></p>
<p style="margin:0in 0in 10pt"><font face="Calibri" color="#000000" size="3"> </font></p>
<p style="margin:0in 0in 10pt"><font face="Calibri" color="#000000" size="3"> </font></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri">[root@localhost ~]# asterisk</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font face="Calibri" size="3"> </font></span></p>
<p style="margin:0in 0in 10pt"><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></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font face="Calibri" size="3"> </font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri">[root@localhost ~]# asterisk -vr</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font face="Calibri" size="3"> </font></span></p>
<p style="margin:0in 0in 10pt"><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></p>
<p style="margin:0in 0in 10pt"><font face="Calibri" color="#000000" size="3"> </font></p>
<p style="margin:0in 0in 10pt"><font face="Calibri" color="#000000" size="3">I didn't find a folder called asterisk in the directory /var/run</font></p>
<p style="margin:0in 0in 10pt"><font face="Calibri" color="#000000" size="3"> </font></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri">[root@localhost ~]# cd /var/run/</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri">[root@localhost run]# ls</font></font></span></p>
<p style="margin:0in 0in 10pt"><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></p>
<p style="margin:0in 0in 10pt"><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></p>
<p style="margin:0in 0in 10pt"><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></p>
<p style="margin:0in 0in 10pt"><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></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri">[root@localhost run]#</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri">[root@localhost run]# asterisk -cvvvvv</font></font></span></p>
<p style="margin:0in 0in 10pt"><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></p>
<p style="margin:0in 0in 10pt"><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></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Parsing '/etc/asterisk/asterisk.conf': Found</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Parsing '/etc/asterisk/extconfig.conf': Found</font></font></span></p>
<p style="margin:0in 0in 10pt"><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></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><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></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri">Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for details.</font></font></span></p>
<p style="margin:0in 0in 10pt"><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></p>
<p style="margin:0in 0in 10pt"><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></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri">certain conditions. Type 'show license' for details.</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri">=========================================================================</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Parsing '/etc/asterisk/logger.conf': Found</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri">Asterisk Event Logger Started /var/log/asterisk/event_log</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Parsing '/etc/asterisk/dnsmgr.conf': Found</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri">Asterisk Dynamic Loader loading preload modules:</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Parsing '/etc/asterisk/modules.conf': Found</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Ping</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Events</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Logoff</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Hangup</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Status</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Setvar</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Getvar</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Redirect</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Originate</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Manager registered action Command</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Manager registered action ExtensionState</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Manager registered action AbsoluteTimeout</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Manager registered action MailboxStatus</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Manager registered action MailboxCount</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Manager registered action ListCommands</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Parsing '/etc/asterisk/manager.conf': Found</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font size="3"><font face="Calibri"><span> </span>== Parsing '/etc/asterisk/manager_custom.conf': Found</font></font></span></p>
<p style="margin:0in 0in 10pt"><span style="color:#0f243e"><font face="Calibri" size="3">[root@localhost run]#</font></span></p>
<p style="margin:0in 0in 10pt"><font face="Calibri" color="#000000" size="3"> </font></p>
<p style="margin:0in 0in 10pt"><font face="Calibri" color="#000000" size="3">How can i solve it please?</font></p>
<p style="margin:0in 0in 10pt"><font face="Calibri" color="#000000" size="3"> </font></p>
<p style="margin:0in 0in 10pt"><font face="Calibri" color="#000000" size="3"> </font></p>
<p style="margin:0in 0in 10pt"><font face="Calibri" color="#000000" size="3"> </font></p><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>