[OpenSIPS-Users] Opensips core function log()

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Mar 23 10:10:22 CET 2012


Hi,

better use the xlog() core function to log , like:
         xlog("L_NOTICE","method $rm is INVITE\n");

These messages will be printed to the opensips log (via syslog), 
depending on what is the debug level in your opensips.

Regards,
Bogdan

On 03/22/2012 08:16 PM, Mi Tan wrote:
> Hi,
>     I have downloaded the source code from www.opensips.org 
> <http://www.opensips.org>, made it, and started the Opensips server on 
> my virtual machine. I thought the Opensips was started correctly and 
> there were no error messages. However, it seemed that after the client 
> sent the REGISTER message to the server, the server did nothing. I 
> have used the wireshark to capture packages between client and server 
> and found that there were only indeed REGISTER packages from client to 
> server and no replies at all. So I decided to add the "function log()" 
>  in "function route()" in the /etc/opensips/opensips.cfg to print some 
> information to see if the server worked properly, but there were no 
> outputs. In www.opensips.org <http://www.opensips.org> website, It is 
> said that I could specify the log level as first parameter, but I 
> couldn't find what parameter to be specified on the website and I 
> didn't understand where to find the output of function log(). Could 
> you tell me how to solve these problems? Thank you very much!
>
> Best wishes!
>
> -- 
>                                                                       
>        Tan Mi
>                                                                        
>        2012-3-23
>
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users


-- 
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120323/3cdca6fc/attachment.htm>


More information about the Users mailing list