<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    On 11/29/11 9:35 AM, Uri Shacked wrote:
    <blockquote
cite="mid:CAMMbDhQ=n1X30o=wLFi27x7GaxRs6qBCN2X2oMW2dsirBK_+Gg@mail.gmail.com"
      type="cite">
      <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'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>
          &nbsp;0(12605) WARNING: &lt;core&gt; [socket_info.c:1275]: WARNING:
          fix_hostname: could not rev. resolve 10.2.0.55<br>
          &nbsp;0(12605) WARNING: &lt;core&gt; [socket_info.c:1275]: WARNING:
          fix_hostname: could not rev. resolve 172.16.60.161<br>
          &nbsp;0(12605) WARNING: &lt;core&gt; [socket_info.c:1275]: WARNING:
          fix_hostname: could not rev. resolve 10.2.0.55<br>
          &nbsp;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>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; udp: <a moz-do-not-send="true"
            href="http://127.0.0.1:5060">127.0.0.1:5060</a><br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; udp: <a moz-do-not-send="true"
            href="http://10.2.0.55:5060">10.2.0.55:5060</a><br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; udp: <a moz-do-not-send="true"
            href="http://172.16.60.161:5060">172.16.60.161:5060</a><br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tcp: <a moz-do-not-send="true"
            href="http://127.0.0.1:5060">127.0.0.1:5060</a><br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tcp: <a moz-do-not-send="true"
            href="http://10.2.0.55:5060">10.2.0.55:5060</a><br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tcp: <a moz-do-not-send="true"
            href="http://172.16.60.161:5060">172.16.60.161:5060</a><br>
          Aliases:<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tcp: localhost:5060<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tcp: localhost.localdomain:5060<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; udp: localhost:5060<br>
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; udp: localhost.localdomain:5060<br>
        </div>
      </div>
    </blockquote>
    <br>
    Above output is not sent to syslog, but printed to terminat. The
    init.d script suppresses the output to terminal from application,
    printing the messages from the script itself.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote
cite="mid:CAMMbDhQ=n1X30o=wLFi27x7GaxRs6qBCN2X2oMW2dsirBK_+Gg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <br>
        </div>
        <div class="gmail_quote">On Mon, Nov 28, 2011 at 12:45 PM,
          Daniel-Constantin Mierla <span dir="ltr">&lt;<a
              moz-do-not-send="true" 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 "kamailio"<br>
                    only, or using "/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. &nbsp;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'kamailio -h' -- 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 moz-do-not-send="true"
                  href="http://www.asipto.com/" target="_blank">http://www.asipto.com</a><br>
                Kamailio Advanced Training, Dec 5-8, Berlin: <a
                  moz-do-not-send="true" href="http://asipto.com/u/kat"
                  target="_blank">http://asipto.com/u/kat</a><br>
                <a moz-do-not-send="true"
                  href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a>
                -- <a moz-do-not-send="true"
                  href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a><br>
                <br>
              </font></span></blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
Kamailio Advanced Training, Dec 5-8, Berlin: <a class="moz-txt-link-freetext" href="http://asipto.com/u/kat">http://asipto.com/u/kat</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
  </body>
</html>