[SR-Users] Logging from cfg file

Mojtaba mespio at gmail.com
Sat Dec 29 11:00:03 CET 2018


Hi,
You could use xlog instead of log, like this:
 xlog("Register request...\n");
With Regards.Mojtaba

On Sat, Dec 29, 2018 at 11:14 AM Muhammad Allaudin
<mallaudinqazi at gmail.com> wrote:
>
> Hi everyone,
>
> I have recently started working on Kamailio, I am trying to learn the basics. For "Register" route, I am trying to print the log but log is not appearing in log file. Other logs are there, only this one is missing.
>
> if(is_method("REGISTER")){
>  log(2, "Register request");
> }
>
> I will be really helpful if you can help me with this.
>
> Thanks & Kind Regards
>
> Regards,
> M.Allaudin
> Software Engineer
> Nowtel Group
> Phone # +92-333-8291874
> Blogger @ allaudin.github.io
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users



-- 
--Mojtaba Esfandiari.S



More information about the sr-users mailing list