Change the L_WARN to L_NOTICE that makes a difference when you&#39;ve different debug=x value.<div>and yes you are right about the  &quot;-&quot; in -/var/log/kamailio , it is really required to prevent kamailio from waiting on syslog to print lines and then continue.</div>
<div><br><br><div class="gmail_quote">On Tue, May 29, 2012 at 3:52 PM, Faisal Yousuf <span dir="ltr">&lt;<a href="mailto:faisal.yousuf@gmail.com" target="_blank">faisal.yousuf@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
While I didnt  restarted my syslog (as the config were there from before) - but I did check after restarting syslog  <div>regarding using xlog - I have 3 xlog messages in my route logic around Registration</div><div><br></div>

<div># handle registrations</div><div><div><span style="white-space:pre-wrap">        </span>xlog(&quot;L_WARN&quot;,&quot;Code before Registrar&quot;);</div><div><span style="white-space:pre-wrap">        </span>route(REGISTRAR);</div>

<div><span style="white-space:pre-wrap">        </span>xlog(&quot;L_WARN&quot;,&quot;Code after Registrar&quot;);</div><div><br></div><div>I also have a log message at the start of the route</div><div>xlog(&quot;L_WARN&quot;,&quot;Begin Routing&quot;);</div>

<div><br></div><div>regarding the hyphen I checked removing the hyphen but based on my understanding from the link regarding enabling logging the hyphen enables asynchronous logging</div><div><br></div><div>Anyhow even after all these I still dont see any logs.</div>

<div><br></div><div>Regards,</div><div>Faisal</div><div><div class="h5"><div><br></div><div><br><div class="gmail_quote">On Tue, May 29, 2012 at 3:33 PM, Charles Chance <span dir="ltr">&lt;<a href="mailto:charles.chance@sipcentric.com" target="_blank">charles.chance@sipcentric.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>


  
  

<div>
Hi Faisal,<br>
<br>
You say you added to syslog.conf: local1.* -/var/log/kamailio<br>
<br>
Is that exactly how it appears? If so, I think you need to remove the hyphen so it becomes: local1.* /var/log/kamailio<br>
<br>
As Sammy said, don&#39;t forget to restart syslog.<br>
<br>
Regards,<br>
<br>
Charles<div><div><br>
<br>
<br>
-----Original Message-----<br>
<b>From</b>: SamyGo &lt;<a href="mailto:SamyGo%20%3cgovoiper@gmail.com%3e" target="_blank">govoiper@gmail.com</a>&gt;<br>
<b>Reply-To</b>: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List &lt;<a href="mailto:SIP%20Router%20-%20%22Kamailio%20%28OpenSER%29%20and%20SIP%20Express%20Router%20%28SER%29%20-%20Users%20Mailing%20List%22%20%3csr-users@lists.sip-router.org%3e" target="_blank">sr-users@lists.sip-router.org</a>&gt;<br>


<b>To</b>: SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List &lt;<a href="mailto:SIP%20Router%20-%20%22Kamailio%20%28OpenSER%29%20and%20SIP%20Express%20Router%20%28SER%29%20-%20Users%20Mailing%20List%22%20%3csr-users@lists.sip-router.org%3e" target="_blank">sr-users@lists.sip-router.org</a>&gt;<br>


<b>Subject</b>: Re: [SR-Users] Using Sip-Router Logging &amp; Register Problem Problem<br>
<b>Date</b>: Tue, 29 May 2012 15:27:06 +0500<br>
<br>
Did you restart your syslog ? Add xlog lines in yur config when you receive a REGISTER request so that it actually prints something out.
<br>
<br>
On Tue, May 29, 2012 at 3:23 PM, Faisal Yousuf &lt;<a href="mailto:faisal.yousuf@gmail.com" target="_blank">faisal.yousuf@gmail.com</a>&gt; wrote:<br>
<blockquote>
    Hi  Daniel/ Sammy ,
</blockquote>
<blockquote>
    I made the changes in config as suggested (i.e. move the define variables at the top of the file rather then in the middle)
</blockquote>
<blockquote>
    Regarding setting debug=3 =&gt; I am setting WITH_DEBUG in the config file so based on processing of this symbol I believe debug=4 is set.#
</blockquote>
<blockquote>
    <br>
    <br>
</blockquote>
<blockquote>
    For the log facility in the kamailio.cfg I have set the option log_facility=LOG_LOCAL1
</blockquote>
<blockquote>
    <br>
    <br>
</blockquote>
<blockquote>
    &amp; in my syslog.cfg (attached again) I have set the following
</blockquote>
<blockquote>
    local1.* -/var/log/kamailio
</blockquote>
<blockquote>
    <br>
    <br>
</blockquote>
<blockquote>
    but still I dont see any logs in this location when I start kamailio
</blockquote>
<blockquote>
    <br>
    <br>
</blockquote>
<blockquote>
    I can see the kamailio process - (in total there are 19 processes here is the root process all other are child processes of this process) 
</blockquote>
<blockquote>
    kamailio  3375     1  0 08:06 ?        00:00:00 /usr/local/sbin/kamailio -P /var/run/kamailio.pid -m 32 -M 4 -u kamailio -g kamailio
</blockquote>
<blockquote>
    <br>
    <br>
</blockquote>
<blockquote>
    I can also see kamailio starting to listen on port 5060 port on the local machine on both UDP &amp; TCP interfaces
</blockquote>
<blockquote>
    <br>
    <br>
</blockquote>
<blockquote>
    I am using an xlite phone on windows to attempt to register - on my Kamailio VM (using UDP) I started a tcpdump to see if I am receiving the Register messages - I can see the register packets coming to the Kamailio hosts from the phone - but I dont see any responses from Kamailio.
</blockquote>
<blockquote>
    <br>
    <br>
</blockquote>
<blockquote>
    Also as there are no logs I dont know what is going wrong.
</blockquote>
<blockquote>
    Regards,
</blockquote>
<blockquote>
    Faisal
</blockquote>
<blockquote>
    <br>
    <br>
</blockquote>
<blockquote>
    <br>
    <br>
</blockquote>
<blockquote>
    <br>
    <br>
</blockquote>
<blockquote>
    On Tue, May 29, 2012 at 2:37 PM, SamyGo &lt;<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>&gt; wrote:<br>
    <blockquote>
        Hi Faisal,
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <br>
        <br>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        You say you&#39;ve seen packets on kamailio but kamailio isn&#39;t replying !! 
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <br>
        <br>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        1- Please verify that yuor kamailio is indeed started  <b>[ps -ef | grep kamailio]</b>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        2- Verify if kamailio is actuallay listening on the same port as you are sending pcakets to ! <b>[netstat -pln|grep kamailio]</b>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        3- Verify if your kamailio is using the same protocol as of your client i.e TCP or UDP or TLS etc.
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        4- instead of viewing the file<i> /var/log/kamailio</i> see<i> /var/log/messages </i>because you haven&#39;t mentioned local7 as Log facility in your config.
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        I don&#39;t see your syslog<b>.conf </b> file in this mail! check that file and follow <a href="http://www.kamailio.org/dokuwiki/doku.php/utils:basic-syslog-configuration" target="_blank">the referenced link</a> completely.
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <br>
        <br>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        Also see your configurations kamailio.cfg file and use define tags from second line from top onward i.e just after #!KAMAILIO.
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
         Try getting rid of the comment line &quot;<i>####### Defined Values #########</i>&quot; - in my experience such comment before define cause trouble with configurations.
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <br>
        <br>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <br>
        <br>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        See all these and then reply with updates.
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <br>
        <br>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        Regards,
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        Sammy G.
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <br>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        On Tue, May 29, 2012 at 2:18 PM, Daniel-Constantin Mierla &lt;<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>&gt; wrote:
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            Hello,<br>
            <br>
            you can set debug=3 in kamailio config to see very verbose debug messages. If you don&#39;t get any, means the request does not reach the application layer, meaning you have a firewall in place that drops the packets from the network.<br>


            <br>
            Cheers,<br>
            Daniel
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <br>
            <br>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            On 5/29/12 8:02 AM, Faisal Yousuf wrote:<br>
            <br>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                Hi Experts, 
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                I am a newbee with SIP-Router/Kamailio - I installed Kamailio on a CentOS 5.5 VM - following the instructions from the following link
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                <br>
                <br>
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                <a href="http://kb.asipto.com/kamailio:install:3.0.x-from-git-centos5x" target="_blank">http://kb.asipto.com/kamailio:install:3.0.x-from-git-centos5x</a> 
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                <br>
                <br>
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                Kamailio is installed &amp; I can start kamailio deamon from service kamailio start 
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                <br>
                <br>
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                However I also created two subscribers - but when I try to register my SIP Phone (by setting Kamailio as the domain to register to) - I can see my sip-phone sending the Register request to Kamailio (I put a tcpdump on the kamailio machine to see sip-messages reaching the host) but I dont get any response from Kamailio - so my sip phone reaches the 408 Registeration Timeout state.
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                <br>
                <br>
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                Now, I dont get any logs from Kamailio to know what is happening while my phone is sending the register request - I tried to configure logging following instructions from the following link
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                <br>
                <br>
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                <a href="http://www.kamailio.org/dokuwiki/doku.php/utils:basic-syslog-configuration" target="_blank">http://www.kamailio.org/dokuwiki/doku.php/utils:basic-syslog-configuration</a> 
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                <br>
                <br>
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                But I dont get any logs in the /var/log/kamailio log file.
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                <br>
                <br>
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                To assist in understanding the issue - I am attaching the syslog config , kamailio config file &amp; the kamailio service script in the init.d folder.
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                <br>
                <br>
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                My first objective will be to enable logging for kamailio &amp; the next objective is to get the basic registration &amp; routing between endpoints - my ultimate objective is to configure SER/Kamailio as a load-balancer for our B2BUA &amp; Media Servers (I found the dispatcher module can help in accomplishing this) -  Can anybody help me in identifying why I am not getting any logs ?
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                I have already seen the wiki &amp; have developed some understanding regarding how Kamailio is configured but am I seeking more information regarding the route language - (the state-model + reference of the functions that can be used in the route script etc.) - in this regards if I can get any documentation pointers from the user community that can help me gain a better understanding the use of Kamailio for above it will be great 
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                <br>
                <br>
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                Regards,
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                Faisal
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                <br>
                <br>
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                Regards,
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                Faisal
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                <br>
                <br>
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                <br>
                <br>
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                <br>
                <br>
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
                <br>
                <br>
                <br>
            </blockquote>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <blockquote type="CITE">
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<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>
</pre>
            </blockquote>
            <br>
<pre><font color="#888888">-- </font>
<font color="#888888">Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></font>
<font color="#888888"><a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></font>
<font color="#888888">Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - <a href="http://asipto.com/u/katu" target="_blank">http://asipto.com/u/katu</a></font>
</pre>
            <br>
            <br>
            <br>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <blockquote>
            <br>
            _______________________________________________<br>
            SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
            <a href="mailto:sr-users@lists.sip-router.org" target="_blank">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>
            <br>
        </blockquote>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <br>
        <br>
    </blockquote>
</blockquote>
<blockquote>
    <blockquote>
        <br>
        _______________________________________________<br>
        SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
        <a href="mailto:sr-users@lists.sip-router.org" target="_blank">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>
        <br>
    </blockquote>
</blockquote>
<blockquote>
    <br>
    <br>
</blockquote>
<blockquote>
    <br>
    _______________________________________________<br>
    SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
    <a href="mailto:sr-users@lists.sip-router.org" target="_blank">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>
    <br>
</blockquote>
<br>
<br>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<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>
</pre>
</div></div></div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">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>
<br></blockquote></div><br></div></div></div></div>
<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>
<br></blockquote></div><br></div>