<div dir="ltr">So i recommend for you to not waste your time with logging until it becomes really necessary.<div>Just install <a href="https://github.com/irontec/sngrep">sngrep</a> and run it while you make your test calls so that you can easily follow the message flows.</div><div><br></div><div>If you cannot understand kamailio behavior from SIP message flow you can enable kamailio debug log by doing  something something like:</div><div>  kamctl fifo debug 6</div><div>and this will cause kamailio to write lots of logs indicating what it is doing (after you finish, you can disable it by doing 'kamctl fifo debug 0' or restarting kamailio)<br></div><div>However, I rarely need to do this as I usually can figure out what kamailio is doing by reading the kamailio.cfg and checking the DB data.</div><div><br></div><div>You might also want to try using the module <a href="http://www.kamailio.org/docs/modules/devel/modules/debugger.html">debugger</a> to do step-by-step execution.</div><div>(although I myself never needed/used it).</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 15, 2016 at 6:39 PM, Shiv Patidar <span dir="ltr"><<a href="mailto:patidarshiv3@gmail.com" target="_blank">patidarshiv3@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Thanks for help<br>
We need this for test /development     <br>
</p><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On 15 Mar 2016 2:39 p.m., "Shiv Patidar" <<a href="mailto:patidarshiv3@gmail.com" target="_blank">patidarshiv3@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thank you for help<br>For registration , we would like to see the complete traces at all nodes whoever processing UE sending REGISTER method.<br>could you please let me know how can we check the logging at all IMS nodes?<br>i am able to successfully register and got 200OK but i want understand what and all processing has been done by server?<br>can't i see default messages with the way install step i followed<br>   <br><div>   Thanks for Your Time.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 11, 2016 at 1:07 PM, mayamatakeshi <span dir="ltr"><<a href="mailto:mayamatakeshi@gmail.com" target="_blank">mayamatakeshi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 11, 2016 at 4:28 PM, Shiv Patidar <span dir="ltr"><<a href="mailto:patidarshiv3@gmail.com" target="_blank">patidarshiv3@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>i send sip reg request to kamailio then i dump tcp thent i got sip request like(INVITE ,TO,FROM ,via header file) <br></div>but in kamailio.log file i am not got sip request what i need to do please help me<br><div>my kamailio.log print this log in my terminal<br></div><br><div><br>/usr/local/sbin/kamailio[25086]:INFO:<core>[main.c:798]:sig_usr():Signal 15 received<br>/usr/local/sbin/kamailio[15085]:INFO:<core>[main.c:798]:sig_usr():Signal 15 received<br>/usr/local/sbin/kamailio[15079]:INFO:<core>[sctp_core.c:53]:sctp_core_destroy():SCTP API not initialized<br>/usr/local/sbin/kamailio[15079]:INFO:<core>[sctp_core.c:75]:sctp_core_check_support():SCTP API not enabled-if you want to use it load sctp module<br>/usr/local/sbin/kamailio[23190]:INFO:rr[../outbound/api.h:54]:ob_load_api():failed to import bind_ob<br>/usr/local/sbin/kamailio[23190]:INFO:rr[rr-mod.c:174]:mod_init():outbound module not available<br>/usr/local/sbin/kamailio[23190]:INFO:usrloc[hslot.c:51]:ul_init_locks():locks aaray size 1024<br>/usr/local/sbin/kamailio[23190]:INFO:<core>[udp_server.c:150]:probe_max_receive_buffer():SO_RCVBUF is initially 163840<br>/usr/local/sbin/kamailio[23190]:INFO:<core>[udp_server.c:150]:probe_max_receive_buffer():SO_RCVBUF is finally 327680<br>/usr/local/sbin/kamailio[23198]:INFO:ctl[io_listener.c:210]:io_listen_loop():io_listen_loop:using epoll_lt as the io watch method (auto detected) <div><div><img src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div>i want to print<br></div><div>INVITE<br></div><div>TO<br></div><div>FROM<br></div><div>Via<br></div><div>header file in my kamailio.log<br></div></div></blockquote></div><br></div></div></div><div class="gmail_extra">Hello, </div><div class="gmail_extra">use module xlog to write logs:</div><div class="gmail_extra">  <a href="http://www.kamailio.org/docs/modules/4.3.x/modules/xlog.html" target="_blank">http://www.kamailio.org/docs/modules/4.3.x/modules/xlog.html</a><br></div><div class="gmail_extra">To specify what you want to be printed, use pseudo-variables:</div><div class="gmail_extra">  <a href="https://www.kamailio.org/wiki/cookbooks/4.3.x/pseudovariables" target="_blank">https://www.kamailio.org/wiki/cookbooks/4.3.x/pseudovariables</a><br></div><div class="gmail_extra">For example to print the request name and the To and From URIs, add something like this:</div><div class="gmail_extra">route {</div><div class="gmail_extra">  xlog("L_INFO", "$rm: To=$tu From=$fu\n");</div><div class="gmail_extra">  ...</div><div class="gmail_extra">}</div><div class="gmail_extra"><br></div><div class="gmail_extra">regards,</div><div class="gmail_extra">Takeshi</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" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>
<br>Thank you for help<br>
For registration , we would like to see the complete traces at all nodes<br>
whoever processing UE sending REGISTER method.<br>
could you please let me know how can we check the logging at all IMS nodes?<br>
i am able to successfully register and got 200OK but i want understand what<br>
and all processing has been done by server?<br>
can't i see default messages with the way install step i followed<br>
<br>
   Thanks for Your Time.<br>
<br>
On Fri, Mar 11, 2016 at 1:07 PM, mayamatakeshi <<a href="mailto:mayamatakeshi@gmail.com" target="_blank">mayamatakeshi@gmail.com</a>><br>
wrote:<br>
<br>
><br>
><br>
> On Fri, Mar 11, 2016 at 4:28 PM, Shiv Patidar <<a href="mailto:patidarshiv3@gmail.com" target="_blank">patidarshiv3@gmail.com</a>><br>
> wrote:<br>
><br>
>> i send sip reg request to kamailio then i dump tcp thent i got sip<br>
>> request like(INVITE ,TO,FROM ,via header file)<br>
>> but in kamailio.log file i am not got sip request what i need to do<br>
>> please help me<br>
>> my kamailio.log print this log in my terminal<br>
>><br>
>><br>
>> /usr/local/sbin/kamailio[25086]:INFO:<core>[main.c:798]:sig_usr():Signal<br>
>> 15 received<br>
>> /usr/local/sbin/kamailio[15085]:INFO:<core>[main.c:798]:sig_usr():Signal<br>
>> 15 received<br>
>> /usr/local/sbin/kamailio[15079]:INFO:<core>[sctp_core.c:53]:sctp_core_destroy():SCTP<br>
>> API not initialized<br>
>> /usr/local/sbin/kamailio[15079]:INFO:<core>[sctp_core.c:75]:sctp_core_check_support():SCTP<br>
>> API not enabled-if you want to use it load sctp module<br>
>> /usr/local/sbin/kamailio[23190]:INFO:rr[../outbound/api.h:54]:ob_load_api():failed<br>
>> to import bind_ob<br>
>> /usr/local/sbin/kamailio[23190]:INFO:rr[rr-mod.c:174]:mod_init():outbound<br>
>> module not available<br>
>> /usr/local/sbin/kamailio[23190]:INFO:usrloc[hslot.c:51]:ul_init_locks():locks<br>
>> aaray size 1024<br>
>> /usr/local/sbin/kamailio[23190]:INFO:<core>[udp_server.c:150]:probe_max_receive_buffer():SO_RCVBUF<br>
>> is initially 163840<br>
>> /usr/local/sbin/kamailio[23190]:INFO:<core>[udp_server.c:150]:probe_max_receive_buffer():SO_RCVBUF<br>
>> is finally 327680<br>
>> /usr/local/sbin/kamailio[23198]:INFO:ctl[io_listener.c:210]:io_listen_loop():io_listen_loop:using<br>
>> epoll_lt as the io watch method (auto detected)<br>
>> i want to print<br>
>> INVITE<br>
>> TO<br>
>> FROM<br>
>> Via<br>
>> header file in my kamailio.log<br>
>><br>
><br>
> Hello,<br>
> use module xlog to write logs:<br>
>   <a href="http://www.kamailio.org/docs/modules/4.3.x/modules/xlog.html" rel="noreferrer" target="_blank">http://www.kamailio.org/docs/modules/4.3.x/modules/xlog.html</a><br>
> To specify what you want to be printed, use pseudo-variables:<br>
>   <a href="https://www.kamailio.org/wiki/cookbooks/4.3.x/pseudovariables" rel="noreferrer" target="_blank">https://www.kamailio.org/wiki/cookbooks/4.3.x/pseudovariables</a><br>
> For example to print the request name and the To and From URIs, add<br>
> something like this:<br>
> route {<br>
>   xlog("L_INFO", "$rm: To=$tu From=$fu\n");<br>
>   ...<br>
> }<br>
><br>
> regards,<br>
> Takeshi<br>
><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" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
><br>
><br>
<br></blockquote></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" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>