So i recommend for you to not waste your time with logging until it becomes really necessary.
Just install sngrep and run it while you make your test calls so that you can easily follow the message flows.

If you cannot understand kamailio behavior from SIP message flow you can enable kamailio debug log by doing  something something like:
  kamctl fifo debug 6
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)
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.

You might also want to try using the module debugger to do step-by-step execution.
(although I myself never needed/used it).


On Tue, Mar 15, 2016 at 6:39 PM, Shiv Patidar <patidarshiv3@gmail.com> wrote:

Thanks for help
We need this for test /development    

On 15 Mar 2016 2:39 p.m., "Shiv Patidar" <patidarshiv3@gmail.com> wrote:
Thank you for help
For registration , we would like to see the complete traces at all nodes whoever processing UE sending REGISTER method.
could you please let me know how can we check the logging at all IMS nodes?
i am able to successfully register and got 200OK but i want understand what and all processing has been done by server?
can't i see default messages with the way install step i followed
  
   Thanks for Your Time.

On Fri, Mar 11, 2016 at 1:07 PM, mayamatakeshi <mayamatakeshi@gmail.com> wrote:


On Fri, Mar 11, 2016 at 4:28 PM, Shiv Patidar <patidarshiv3@gmail.com> wrote:
i send sip reg request to kamailio then i dump tcp thent i got sip request like(INVITE ,TO,FROM ,via header file)
but in kamailio.log file i am not got sip request what i need to do please help me
my kamailio.log print this log in my terminal


/usr/local/sbin/kamailio[25086]:INFO:<core>[main.c:798]:sig_usr():Signal 15 received
/usr/local/sbin/kamailio[15085]:INFO:<core>[main.c:798]:sig_usr():Signal 15 received
/usr/local/sbin/kamailio[15079]:INFO:<core>[sctp_core.c:53]:sctp_core_destroy():SCTP API not initialized
/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
/usr/local/sbin/kamailio[23190]:INFO:rr[../outbound/api.h:54]:ob_load_api():failed to import bind_ob
/usr/local/sbin/kamailio[23190]:INFO:rr[rr-mod.c:174]:mod_init():outbound module not available
/usr/local/sbin/kamailio[23190]:INFO:usrloc[hslot.c:51]:ul_init_locks():locks aaray size 1024
/usr/local/sbin/kamailio[23190]:INFO:<core>[udp_server.c:150]:probe_max_receive_buffer():SO_RCVBUF is initially 163840
/usr/local/sbin/kamailio[23190]:INFO:<core>[udp_server.c:150]:probe_max_receive_buffer():SO_RCVBUF is finally 327680
/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)
i want to print
INVITE
TO
FROM
Via
header file in my kamailio.log

Hello, 
use module xlog to write logs:
To specify what you want to be printed, use pseudo-variables:
For example to print the request name and the To and From URIs, add something like this:
route {
  xlog("L_INFO", "$rm: To=$tu From=$fu\n");
  ...
}

regards,
Takeshi

_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



Thank you for help
For registration , we would like to see the complete traces at all nodes
whoever processing UE sending REGISTER method.
could you please let me know how can we check the logging at all IMS nodes?
i am able to successfully register and got 200OK but i want understand what
and all processing has been done by server?
can't i see default messages with the way install step i followed

   Thanks for Your Time.

On Fri, Mar 11, 2016 at 1:07 PM, mayamatakeshi <mayamatakeshi@gmail.com>
wrote:

>
>
> On Fri, Mar 11, 2016 at 4:28 PM, Shiv Patidar <patidarshiv3@gmail.com>
> wrote:
>
>> i send sip reg request to kamailio then i dump tcp thent i got sip
>> request like(INVITE ,TO,FROM ,via header file)
>> but in kamailio.log file i am not got sip request what i need to do
>> please help me
>> my kamailio.log print this log in my terminal
>>
>>
>> /usr/local/sbin/kamailio[25086]:INFO:<core>[main.c:798]:sig_usr():Signal
>> 15 received
>> /usr/local/sbin/kamailio[15085]:INFO:<core>[main.c:798]:sig_usr():Signal
>> 15 received
>> /usr/local/sbin/kamailio[15079]:INFO:<core>[sctp_core.c:53]:sctp_core_destroy():SCTP
>> API not initialized
>> /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
>> /usr/local/sbin/kamailio[23190]:INFO:rr[../outbound/api.h:54]:ob_load_api():failed
>> to import bind_ob
>> /usr/local/sbin/kamailio[23190]:INFO:rr[rr-mod.c:174]:mod_init():outbound
>> module not available
>> /usr/local/sbin/kamailio[23190]:INFO:usrloc[hslot.c:51]:ul_init_locks():locks
>> aaray size 1024
>> /usr/local/sbin/kamailio[23190]:INFO:<core>[udp_server.c:150]:probe_max_receive_buffer():SO_RCVBUF
>> is initially 163840
>> /usr/local/sbin/kamailio[23190]:INFO:<core>[udp_server.c:150]:probe_max_receive_buffer():SO_RCVBUF
>> is finally 327680
>> /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)
>> i want to print
>> INVITE
>> TO
>> FROM
>> Via
>> header file in my kamailio.log
>>
>
> Hello,
> use module xlog to write logs:
>   http://www.kamailio.org/docs/modules/4.3.x/modules/xlog.html
> To specify what you want to be printed, use pseudo-variables:
>   https://www.kamailio.org/wiki/cookbooks/4.3.x/pseudovariables
> For example to print the request name and the To and From URIs, add
> something like this:
> route {
>   xlog("L_INFO", "$rm: To=$tu From=$fu\n");
>   ...
> }
>
> regards,
> Takeshi
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users