<div dir="ltr"><font color="#3366ff"><font><font face="tahoma,sans-serif">I second that.<br><br>Siptrace doesn&#39;t log everything, but workarounds can be done, such as using a combination of setting a flag and using the sip_trace( ) function, and using them as well from the onsend_route for some outgoing messages, with careful handling to prevent duplicate logging.<br clear="all">

</font></font></font><div dir="ltr"><font color="#3366ff" face="tahoma, sans-serif"><br></font><div><font color="#3366ff" face="tahoma, sans-serif">Reda</font></div></div><br>
<br><br><div class="gmail_quote">On Tue, May 22, 2012 at 9:07 AM, Klaus Darilion <span dir="ltr">&lt;<a href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

In my opinion it would be cool if core has a feature to log every received and every sent message. The logging should include timestamp+proto+sourceIP:port+<u></u>receivedIP:port for received messages and timestamp+proto+sourceIP:port+<u></u>destinationIP:port for sent messages. For TLS of course it should log the encrypted message.<br>


<br>
Configuration should be done with a core parameter &quot;message_log=0-4&quot;, similiar to memlog.<br>
<br>
IIRC there were again issues with siptrace not logging all messages and for example on a load balancer I do not want to use a DB just for logging.<br>
<br>
Thus, I think this would be a good feature for 3.4 release.<br>
<br>
regards<br>
Klaus<br>
<br>
On 11.05.2012 09:30, Daniel-Constantin Mierla wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
On 5/9/12 11:45 PM, Bruno Bresciani wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
Why kamailio send to syslog only received SIP messages? I want see the<br>
messages that kamailio send to the UAs, it&#39;s possible?<br>
On TCP/TLS SIP messages there is a degub of buffer with the message<br>
that will be send, but a strange content has been shown... following<br>
the log:<br>
<br>
*tcp_send: buf= ^W^C^A^B0HFCðg^W^R<br>
£MÃ&lt;8f&gt;C^U&lt;8f&gt;ÃQB^^,¼8ÃÃ^<u></u>KZÃÃ|&lt;97&gt;¼zÃö&lt;82&gt;ìñÃ%sÃâ<u></u>³g¿Ã<br>
S©&lt;97&gt;}y&lt;91&gt;.&lt;94&gt;ð¯ô&lt;8f&gt;<u></u>Y¿¥µf&lt;9d&gt;ë&lt;8f&gt;&lt;9d&gt;*<br>
<br>
My kamailio is version 3.1.2 and run with global parameter &#39;debug=3&#39;<br>
and send the syslog messages.<br>
</blockquote>
debug messages printed to syslog from the source code are because the<br>
developer needed/wanted them for troubleshooting.<br>
<br>
As an admin, you have the option of using xlog to print what ever<br>
messages you want. In 3.1.x there is onsend_route to see outgoing<br>
requests via $snd(...) variable.<br>
<br>
But if you want to get the sip traffic going through kamailio, better<br>
use siptrace module which stores requests/replies in database table.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
--<br>
Daniel-Constantin Mierla -<a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<a href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a>  -<a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/<u></u>miconda</a><br>
<br>
<br>
<br>
______________________________<u></u>_________________<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" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<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" target="_blank">http://lists.sip-router.org/<u></u>cgi-bin/mailman/listinfo/sr-<u></u>users</a><br>
</blockquote></div><br></div>