<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
better use the xlog() core function to log , like:<br>
xlog("L_NOTICE","method $rm is INVITE\n");<br>
<br>
These messages will be printed to the opensips log (via syslog),
depending on what is the debug level in your opensips.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 03/22/2012 08:16 PM, Mi Tan wrote:
<blockquote
cite="mid:CAJRPpzYOOUNTmdXjBovBWDEWzA=7xcNbA4BU=EK-MM9En9iFDQ@mail.gmail.com"
type="cite">
<div class="gmail_quote">Hi,
<div> I have downloaded the source code from <a
moz-do-not-send="true" href="http://www.opensips.org"
target="_blank">www.opensips.org</a>, 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 <a
moz-do-not-send="true" href="http://www.opensips.org"
target="_blank">www.opensips.org</a> 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!</div>
<div><br>
</div>
<div>Best wishes! <span class="HOEnZb"><font color="#888888"><br
clear="all">
<div><br>
</div>
-- <br>
<div style="text-align: center;">
Tan
Mi </div>
<div style="text-align: center;">
2012-3-23</div>
<br>
</font></span></div>
</div>
<br>
<br clear="all">
<div><br>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
</body>
</html>