<div dir="ltr"><div><div>Hi Daniel.<br><br></div>Thank you for your reply. I am using kamailio 5.1 master<br><br></div>So far I managed to work in LUA script like <br><br><span style="font-family:monospace,monospace"> sr.modf("hlog", sr.pv.get("$ci"), "Message text goes here")</span><br><br> <br>I will check KSR usage as well.<br><br><div class="gmail_extra"><br clear="all"><div><div class="m_7137470360855555066gmail_signature" data-smartmail="gmail_signature"><div><font size="2"><span style="font-family:verdana,sans-serif"><span style="color:rgb(39,78,19)">--<br>regards,</span></span></font></div><font size="2"><span style="font-family:verdana,sans-serif"><span style="color:rgb(39,78,19)"><br>abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445</span></span></font></div></div>
<br><div class="gmail_quote">On 17 January 2018 at 19:21, 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>if you use release 5.1.x or branches 5.1 or master, then you can
do:</p>
<p>KSR.siptrace.hlog("log message here");<br>
</p>
<p>Not much documentation about it, but the prototype is listed at:</p>
<p> -
<a class="m_7137470360855555066m_-6912169809636146415moz-txt-link-freetext" href="http://kamailio.org/docs/tutorials/devel/kamailio-kemi-framework/modules/#siptrace" target="_blank">http://kamailio.org/docs/tutor<wbr>ials/devel/kamailio-kemi-frame<wbr>work/modules/#siptrace</a><br>
</p>
Documentation for the behaviour of the corresponding kamailio.cfg
function is in the siptrace readme.<br>
<br>
Cheers,<br>
Daniel<div><div class="m_7137470360855555066h5"><br>
<br>
<div class="m_7137470360855555066m_-6912169809636146415moz-cite-prefix">On 16.01.18 17:55, Abdul Basit wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="m_7137470360855555066h5">
<div dir="ltr">
<div>Hi K-team,<br>
</div>
<div><br>
</div>
<div>I am processing incoming INVITE events in my lua script.</div>
<div>To print the logs with kamailio syslog, i am using <br>
</div>
<div> </div>
<div><br>
</div>
<div> <span style="font-family:monospace,monospace">sr.log("info",
"-- Collecting data from kamailio -- ")<br>
</span><br>
</div>
I am searching for a way to send selective logs for an incoming
call from lua script through HEP3 towards Homer server. <br>
<div>
<div><br>
</div>
<div>How can I make it work? What utility or library is
helpful.<br>
</div>
<div><br>
</div>
<div><b>PS:</b> captagent is configured on the same server for
SIP traces.<br>
</div>
<div><br clear="all">
<div>
<div class="m_7137470360855555066m_-6912169809636146415gmail_signature">
<div><font size="2"><span style="font-family:verdana,sans-serif"><span style="color:rgb(39,78,19)">--<br>
regards,</span></span></font></div>
<font size="2"><span style="font-family:verdana,sans-serif"><span style="color:rgb(39,78,19)"><br>
abdul basit</span></span></font></div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="m_7137470360855555066m_-6912169809636146415mimeAttachmentHeader"></fieldset>
<br>
</div></div><pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a class="m_7137470360855555066m_-6912169809636146415moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="m_7137470360855555066m_-6912169809636146415moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><span class="m_7137470360855555066HOEnZb"><font color="#888888">
</font></span></pre><span class="m_7137470360855555066HOEnZb"><font color="#888888">
</font></span></blockquote><span class="m_7137470360855555066HOEnZb"><font color="#888888">
<br>
<pre class="m_7137470360855555066m_-6912169809636146415moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="m_7137470360855555066m_-6912169809636146415moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="m_7137470360855555066m_-6912169809636146415moz-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_7137470360855555066m_-6912169809636146415moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="m_7137470360855555066m_-6912169809636146415moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
</font></span></div>
</blockquote></div><br></div></div>