<div dir="ltr"><div>hi,</div>
<div>both methods run the same cfg file.</div>
<div>when i run kamailio i get the following output and syslog running (i like it...)</div>
<div>when i run the /etc/init.d/kamailio start i do not get this output and can&#39;t follow the debug on line...</div>
<div><br>[root@kamailiolabroute /]# kamailio<br>loading modules under /usr/local/lib/kamailio/modules_k/:/usr/local/lib/kamailio/modules/<br> 0(12605) WARNING: &lt;core&gt; [socket_info.c:1275]: WARNING: fix_hostname: could not rev. resolve 10.2.0.55<br>
 0(12605) WARNING: &lt;core&gt; [socket_info.c:1275]: WARNING: fix_hostname: could not rev. resolve 172.16.60.161<br> 0(12605) WARNING: &lt;core&gt; [socket_info.c:1275]: WARNING: fix_hostname: could not rev. resolve 10.2.0.55<br>
 0(12605) WARNING: &lt;core&gt; [socket_info.c:1275]: WARNING: fix_hostname: could not rev. resolve 172.16.60.161<br>Listening on<br>             udp: <a href="http://127.0.0.1:5060">127.0.0.1:5060</a><br>             udp: <a href="http://10.2.0.55:5060">10.2.0.55:5060</a><br>
             udp: <a href="http://172.16.60.161:5060">172.16.60.161:5060</a><br>             tcp: <a href="http://127.0.0.1:5060">127.0.0.1:5060</a><br>             tcp: <a href="http://10.2.0.55:5060">10.2.0.55:5060</a><br>
             tcp: <a href="http://172.16.60.161:5060">172.16.60.161:5060</a><br>Aliases:<br>             tcp: localhost:5060<br>             tcp: localhost.localdomain:5060<br>             udp: localhost:5060<br>             udp: localhost.localdomain:5060<br>
<br></div>
<div class="gmail_quote">On Mon, Nov 28, 2011 at 12:45 PM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><br><br>On 11/27/11 4:14 PM, Alex Balashov wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div class="h5">On 11/27/2011 09:56 AM, Uri Shacked wrote:<br><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">hi,<br>what is the differebt when i start kamailio with the command &quot;kamailio&quot;<br>only, or using &quot;/etc/init.d/kamailio start ?<br>
using the first one gets me to see the log running... second one does<br>not....<br>and with the second one i can configure the memory usage and so....<br>how do i make them do the same?<br></blockquote><br></div></div>These parameters are in a defaults file that, depending on your distribution, goes either in /etc/sysconfig/kamailio or /etc/default/kamailio.  It is sourced by the init script.<br>
<br></blockquote>/etc/init.d/kamailio is just a wrapper around kamailio. As Alex said, /etc/init.d/kamailio takes some parameters from different files (a matter of OS distro) and passes them to kamailio as command line parameters.<br>
<br>You can see what parameters can be passed to kamailio via command line with&#39;kamailio -h&#39; -- this will print also the path to default configuration file.<br><br>When you simply run kamailio, it will load the default configuration file, with no other command line parameters.<br>
<br>If you have different output, means that either the init.d script is using another config file (passed with -f) or it has command line parameters that overwrite the values from config file.<br><br>Cheers,<br>Daniel<span class="HOEnZb"><font color="#888888"><br>
<br>-- <br>Daniel-Constantin Mierla -- <a href="http://www.asipto.com/" target="_blank">http://www.asipto.com</a><br>Kamailio Advanced Training, Dec 5-8, Berlin: <a href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a><br>
<a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br><br></font></span></blockquote></div><br>
</div>