<div dir="ltr">Thank you; I will take a look.<div><br></div><div>Karthik</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 6, 2018 at 8:16 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF">
<p>Hello,</p>
<p>look at sipdump module, it is a simple solution for getting the
traffic stored in a file (with rotation):</p>
<p> -
<a class="m_3500842572874900213moz-txt-link-freetext" href="https://www.kamailio.org/docs/modules/stable/modules/sipdump.html" target="_blank">https://www.kamailio.org/docs/<wbr>modules/stable/modules/<wbr>sipdump.html</a><br>
</p>
The look also at siptrace, it can do it to datebase, or, as
suggested in another reply, homer sipcapture project.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="m_3500842572874900213moz-cite-prefix">On 02.03.18 21:12, Karthik Srinivasan
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hello:
<div><br>
</div>
<div>I am trying to find a simple way to log each and every SIP
message that Kamailio receives or Kamailio sends. In a
nutshell, here is what i'm trying to accomplish:</div>
<div><br>
</div>
<div>- log sip message received; log ip address and port of
where message was received from</div>
<div>- log sip message to be sent or sent; log ip address and
port of destination.</div>
<div><br>
</div>
<div>I am trying to achieve this in the context of my general
log file that contains routing/event logic from the
kamailio.cfg file. By this i mean i don't want to have to run
an external program like tcpdump to capture the packets and
log them. </div>
<div><br>
</div>
<div>I have tried a few thing but haven't been able to capture
all conditions.</div>
<div><br>
</div>
<div>examples: </div>
<div><br>
</div>
<div>i have included things like event_routes for
[tm:local-response]; [sl:local-response]; [sl:filtered-ack],
onreply_route... I can capture most replies and responses
via those but am not able to capture a 200ok relayed response
from Kamailio back to the originating UA for example.</div>
<div><br>
</div>
<div>I can log incoming messages without problem.</div>
<div><br>
</div>
<div>I have also tried to activate IO interrupt to route to
event_route[NETWORK:MSG] but unfortunately i can't access the
source/dest ip address/port info or other pseudo variables.</div>
<div><br>
</div>
<div>So back to the original question: How does one log every
SIP message that Kamailio gets? How does one log every SIP
message that Kamailio sends? via the context of the
routing/replies/event routes in kamailio.cfg.</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Karthik</div>
<div><br>
</div>
</div>
<br>
<fieldset class="m_3500842572874900213mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a class="m_3500842572874900213moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="m_3500842572874900213moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/<wbr>cgi-bin/mailman/listinfo/sr-<wbr>users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<pre class="m_3500842572874900213moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_3500842572874900213moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_3500842572874900213moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - March 5-7, 2018, Berlin - <a class="m_3500842572874900213moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="m_3500842572874900213moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</font></span></div>
</blockquote></div><br></div>