truth be told am not sure what the problem was. Like I mentioned before, there afew steps on the website which weren't mentioned on the book i.e.<div><br></div><div><span class="Apple-style-span" style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 14.4px; "><span class="Apple-style-span" style="font-size: 14.4px; ">v<font class="Apple-style-span" color="#FF0000">im /etc/default/opensips</font></span></span></div>
<div><span class="Apple-style-span" style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 14.4px; "><font class="Apple-style-span" color="#FF0000"><span class="Apple-style-span" style="font-size: 14.4px; "></span>RUN_OPENSIPS=yes <br>
</font><ol style="margin-top: 0px; margin-bottom: 0px; "><li><font class="Apple-style-span" color="#FF0000">User to run as</font></li></ol><font class="Apple-style-span" color="#FF0000">USER=opensips <br></font><ol style="margin-top: 0px; margin-bottom: 0px; ">
<li><font class="Apple-style-span" color="#FF0000">Group to run as</font></li></ol><font class="Apple-style-span" color="#FF0000">GROUP=opensips <br></font><ol style="margin-top: 0px; margin-bottom: 0px; "><li><font class="Apple-style-span" color="#FF0000">Amount of memory to allocate for the running OpenSIPS server (in Mb)</font></li>
</ol><font class="Apple-style-span" color="#FF0000">MEMORY=128 <br><br>Change also the file /etc/init.d/opensips: <br><br>vim /etc/init.d/opensips <br><br>Replace the line DAEMON=/usr/sbin/opensips to: <br>DAEMON=/usr/local/sbin/opensips <br>
<br>Give execution permission to the file: <br>chmod +x /etc/init.d/opensips <br><br>create the opensips user: <br>adduser opensips <br><br>Now create the dir: <br>mkdir /var/run/opensips </font></span></div><div><font class="Apple-style-span" face="Verdana, Geneva, Arial, Helvetica, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" color="#FF0000"><br>
</font></span></font></div><div><font class="Apple-style-span" color="#FF0000" face="Verdana, Geneva, Arial, Helvetica, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px;"><span class="Apple-style-span" style="font-size: 14.4px; "><span class="Apple-style-span" style="font-size: 14.4px; ">vim /usr/local/etc/opensips/opensipsctlrc <br>
</span>PID_FILE=/var/run/opensips/opensips.pid </span></span></font></div><div><font class="Apple-style-span" color="#FF0000" face="Verdana, Geneva, Arial, Helvetica, sans-serif" size="3"><span class="Apple-style-span" style="font-size: 12px;"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br>
</span></font></span></font></div><div><font class="Apple-style-span" color="#FF0000" face="Verdana, Geneva, Arial, Helvetica, sans-serif" size="2"><span class="Apple-style-span" style="font-size: 10px;"><font class="Apple-style-span" size="2"><span class="Apple-style-span" style="font-size: 10px;"><br>
</span></font></span></font></div><div><font class="Apple-style-span" face="Verdana, Geneva, Arial, Helvetica, sans-serif" size="2"><span class="Apple-style-span" style="font-size: 10px;"><font class="Apple-style-span" size="2">I think that the last couple of steps were what made the difference because I kept on getting the 'opensips_pid file is missing' error when trying to start/shut down opensips</font></span></font></div>
<div><br><div class="gmail_quote">On Tue, Sep 21, 2010 at 10:57 AM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
out of curiosity, what was the problem ?<br>
<div class="im"><br>
Regards,<br>
Bogdan<br>
<br>
James Mbuthia wrote:<br>
</div><div class="im">> Hi Bogdan,<br>
><br>
> Thanks for your reply.<br>
><br>
><br>
> I got it to work by following the instructions<br>
> on <a href="http://www.voip-info.org/wiki/view/Opensips+Installation,+How+to" target="_blank">http://www.voip-info.org/wiki/view/Opensips+Installation,+How+to</a>. I've<br>
> been using the book, 'Building telephony systems with opensips'<br>
> however the installation procedure set out in the book seems to miss<br>
> out some key steps. e.g. The installation procedure on the above<br>
> website seems to be more accurate and will hopefully save people alot<br>
> of time and headache.<br>
><br>
> james<br>
><br>
><br>
> On Tue, Sep 21, 2010 at 10:42 AM, Bogdan-Andrei Iancu<br>
</div><div><div></div><div class="h5">> <<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> <mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>>> wrote:<br>
><br>
> Hi James,<br>
><br>
> Your opensips fails to start (see the signal 2 (INT) received by<br>
> opensips).<br>
><br>
> It is strange as no ERROR is printed.....Please set debug=6 and try to<br>
> start again - and post the whole output here.<br>
><br>
> Regards,<br>
> Bogdan<br>
><br>
> James Mbuthia wrote:<br>
> > Hi,<br>
> ><br>
> > Am trying to setup opensips on a centos system and I keep on<br>
> running<br>
> > to the same problem and i have run out of ideas. I get the following<br>
> > error when trying to start opensips.<br>
> ><br>
> > ERROR: PID file /var/run/opensips.pid does not exist -- OpenSIPS<br>
> start<br>
> > failed<br>
> ><br>
> ><br>
> > When i do a tail /var/log/messages I get the following :<br>
> ><br>
> ><br>
> > Sep 20 15:52:22 CL-T020-483CL opensips: INFO:acc:mod_init:<br>
> initializing...<br>
> > Sep 20 15:52:22 CL-T020-483CL opensips: INFO:auth:mod_init:<br>
> > initializing...<br>
> > Sep 20 15:52:22 CL-T020-483CL opensips: INFO:auth_db:mod_init:<br>
> > initializing...<br>
> > Sep 20 15:52:22 CL-T020-483CL opensips:<br>
> > INFO:core:probe_max_receive_buffer: using a UDP receive buffer<br>
> of 255 kb<br>
> > Sep 20 16:13:14 CL-T020-483CL opensips: INFO:core:sig_usr: signal 2<br>
> > received<br>
> > Sep 20 16:13:14 CL-T020-483CL last message repeated 2 times<br>
> > Sep 20 16:13:14 CL-T020-483CL opensips: INFO:core:handle_sigs: child<br>
> > process 5856 exited normally, status=0<br>
> > Sep 20 16:13:14 CL-T020-483CL opensips: INFO:core:handle_sigs: child<br>
> > process 5857 exited normally, status=0<br>
> > Sep 20 16:13:14 CL-T020-483CL opensips: INFO:core:handle_sigs:<br>
> > terminating due to SIGCHLD<br>
> > Sep 20 16:13:14 CL-T020-483CL opensips: INFO:core:sig_usr: signal 15<br>
> > received<br>
> ><br>
> ><br>
> > Does anyone have a clue of whats happening and what I need to do?<br>
> ><br>
> > regards,<br>
> > James<br>
> ><br>
> ------------------------------------------------------------------------<br>
> ><br>
> > _______________________________________________<br>
> > Users mailing list<br>
</div></div>> > <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
<div class="im">> > <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
> ><br>
><br>
><br>
> --<br>
> Bogdan-Andrei Iancu<br>
> OpenSIPS Bootcamp<br>
> 15 - 19 November 2010, Edison, New Jersey, USA<br>
</div>> <a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a> <<a href="http://www.voice-system.ro" target="_blank">http://www.voice-system.ro</a>><br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>><br>
<div><div></div><div class="h5">> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
><br>
> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br>
<br>
--<br>
Bogdan-Andrei Iancu<br>
OpenSIPS Bootcamp<br>
15 - 19 November 2010, Edison, New Jersey, USA<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>