<div dir="ltr"><div style>Hi Dave,</div><div style><br></div>When not in daemon mode ,only udp is available.<div style>and you can see more clue within the log file.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
2013/4/12 David Wilson <span dir="ltr">&lt;<a href="mailto:dw@zaq.com.au" target="_blank">dw@zaq.com.au</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Carsten,<br>
<br>
I would expect that if it didn&#39;t have children, it wouldn&#39;t report that it&#39;s listening.<br>
<br>
However, you have asked the right question...<br>
<br>
On my command line, I was using the -D flag to prevent daemon mode.  When I configure to ONLY listen for tcp, I get:<br>
&gt; Listening on<br>
<div class="im">&gt;              tcp: <a href="http://192.168.44.66:55060" target="_blank">192.168.44.66:55060</a><br>
&gt; Aliases:<br>
&gt;              &lt;snip&gt;<br>
&gt;<br>
</div>&gt; WARNING: no fork mode and no udp listen address found<br>
<br>
With that clue, I tried it without the -D flag, configured for both tcp and udp... now it is verifiably listening for tcp!<br>
<br>
So, it turns out that with -D, the report that it is listening is inaccurate.<br>
<br>
Thanks for your suggestion!<br>
<br>
Dave.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On 12/04/2013, at 4:48 PM, Carsten Bock &lt;<a href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a>&gt; wrote:<br>
<br>
&gt; &quot;WARNING: no fork mode&quot;<br>
&gt;<br>
&gt; So you&#39;ll probably don&#39;t have any children for TCP...<br>
&gt;<br>
&gt; Kind regards,<br>
&gt; Carsten<br>
&gt;<br>
&gt; 2013/4/12 Jeremy Ardley &lt;<a href="mailto:jeremy.ardley@gmail.com">jeremy.ardley@gmail.com</a>&gt;:<br>
&gt;&gt; netstat is a bit tricky. Luckily it&#39;s now obsoleted by ss<br>
&gt;&gt;<br>
&gt;&gt; Try<br>
&gt;&gt;<br>
&gt;&gt; netstat -a -n | grep 5060<br>
&gt;&gt;<br>
&gt;&gt; Also check if your kamialio.cfg file has &quot;disable_tcp=yes&quot; Comment it<br>
&gt;&gt; out if it does.<br>
&gt;&gt;<br>
&gt;&gt; P.S. I only asked about whether it was still running because it can<br>
&gt;&gt; easily die on startup if the scripts detect some error like the control<br>
&gt;&gt; files still exists. I just checked now on my system which I installed<br>
&gt;&gt; using &#39;official&#39; RPMs for Centos 6. The &#39;service kamailio restart&#39;<br>
&gt;&gt; command appears to work but fails quietly for the following reason<br>
&gt;&gt;<br>
&gt;&gt; Apr 12 14:55:40 sentinel /usr/sbin/kamailio[7501]: ERROR: ctl [ctl.c:379]: ERROR: ctl: could not delete unix socket /tmp/kamailio_ctl: Operation not permitted (1)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 12/04/13 14:37, David Wilson wrote:<br>
&gt;&gt;&gt; Hi Jeremy,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Thanks for the suggestion, I&#39;m hoping I haven&#39;t overlooked something quite that obvious!<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The last debug output I see on startup is:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Listening on<br>
&gt;&gt;&gt;&gt;             udp: <a href="http://192.168.44.66:55060" target="_blank">192.168.44.66:55060</a><br>
&gt;&gt;&gt;&gt;             tcp: <a href="http://192.168.44.66:55060" target="_blank">192.168.44.66:55060</a><br>
&gt;&gt;&gt;&gt; Aliases:<br>
&gt;&gt;&gt;&gt;     &lt;snip&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; WARNING: no fork mode<br>
&gt;&gt;&gt;&gt; 0(20372) INFO: &lt;core&gt; [tcp_main.c:4833]: init_tcp: using epoll_lt as the io watch method (auto detected)<br>
&gt;&gt;&gt;&gt; 0(20372) INFO: usrloc [hslot.c:53]: locks array size 512<br>
&gt;&gt;&gt;&gt; 0(20372) INFO: &lt;core&gt; [udp_server.c:179]: INFO: udp_init: SO_RCVBUF is initially 229376<br>
&gt;&gt;&gt;&gt; 0(20372) INFO: &lt;core&gt; [udp_server.c:230]: INFO: udp_init: SO_RCVBUF is finally 262142<br>
&gt;&gt;&gt; netstat shows listening for UDP on 55060, but nothing on TCP:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; $ netstat -l | grep 5060<br>
&gt;&gt;&gt; udp        0      0 <a href="http://192.168.44.66:55060" target="_blank">192.168.44.66:55060</a> *:*<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ps shows four kamailio processes running, all of which end when I Ctrl-C.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Cheers,<br>
&gt;&gt;&gt; Dave.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Date: Fri, 12 Apr 2013 14:22:45 +0800<br>
&gt;&gt;&gt;&gt; From: Jeremy Ardley &lt;<a href="mailto:jeremy.ardley@gmail.com">jeremy.ardley@gmail.com</a>&gt;<br>
&gt;&gt;&gt;&gt; Subject: Re: [SR-Users] Kamailio 4.0.0 not listening on TCP<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Have you checked to make sure it&#39;s still running?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On 12/04/13 14:19, David Wilson wrote:<br>
&gt;&gt;&gt;&gt;&gt; Hello All,<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; New to Kamailio, I&#39;m running 4.0 on Ubuntu 12.04 (precise).<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Running from the command line with a minimal config, it tells me that it is listening on port 5060 for both TCP and UDP.  I see the same behaviour with the default cfg.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; However, netstat does not list anything listening on TCP port 5060 and an attempted connection is rejected consistent with there being no open socket.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; Any suggestions on where I need to be looking to fix this?<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; ------------------------------<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; sr-users mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt;&gt;&gt;&gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; End of sr-users Digest, Vol 95, Issue 47<br>
&gt;&gt;&gt;&gt; ****************************************<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt;&gt;&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt;&gt;&gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt;&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt;&gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Carsten Bock<br>
&gt; CEO (Geschäftsführer)<br>
&gt;<br>
&gt; =============================================================<br>
&gt; Visit us on the Kamailio World 2013, April 16th &amp; 17th<br>
&gt; =&gt; <a href="http://conference.kamailio.com/k01/" target="_blank">http://conference.kamailio.com/k01/</a>                             See<br>
&gt; you there!<br>
&gt; =============================================================<br>
&gt;<br>
&gt; ng-voice GmbH<br>
&gt; Schomburgstr. 80<br>
&gt; D-22767 Hamburg / Germany<br>
&gt;<br>
&gt; <a href="http://www.ng-voice.com" target="_blank">http://www.ng-voice.com</a><br>
&gt; mailto:<a href="mailto:carsten@ng-voice.com">carsten@ng-voice.com</a><br>
&gt;<br>
&gt; Office +49 40 34927219<br>
&gt; Fax +49 40 34927220<br>
&gt;<br>
&gt; Sitz der Gesellschaft: Hamburg<br>
&gt; Registergericht: Amtsgericht Hamburg, HRB 120189<br>
&gt; Geschäftsführer: Carsten Bock<br>
&gt; Ust-ID: DE279344284<br>
&gt;<br>
&gt; Hier finden Sie unsere handelsrechtlichen Pflichtangaben:<br>
&gt; <a href="http://www.ng-voice.com/imprint/" target="_blank">http://www.ng-voice.com/imprint/</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
&gt; <a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
&gt; <a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>