<div dir="ltr">Actually so far it seems using KSR.siptrace.sip_trace("sip:<myhomerip>:9060") instead of KSR.siptrace.sip_trace_dst("sip:<myhomerip>:9060"), fixes it ! I'm rolling it out on more systems to be sure, and wait a bit longer to be very sure. But thx for the help!<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Op di 14 mei 2019 om 09:28 schreef Thomas Weber <<a href="mailto:thomas.weber@pascom.net">thomas.weber@pascom.net</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Davy,<br>
<br>
we're using siptrace with kemi and python 2. I can not confirm your problem on kamailio 5.2.2.<br>
<br>
In difference to your script, however, i'm not setting a target address in the invocation.<br>
Instead the cfg script sets modparam("siptrace", "duplicate_uri", "sip:<myhomerip>:9060") and uses KSR.siptrace.sip_trace() <br>
<br>
Maybe it makes a difference, can you try it out? <br>
<br>
Regards,<br>
<br>
Thomas<br>
<br>
<br>
----- Ursprüngliche Mail -----<br>
> Von: "davy van de moere" <<a href="mailto:davy.van.de.moere@gmail.com" target="_blank">davy.van.de.moere@gmail.com</a>><br>
> An: "Kamailio (SER) - Users Mailing List" <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>><br>
> Gesendet: Dienstag, 14. Mai 2019 07:57:05<br>
> Betreff: [SR-Users] Possible memory leak in siptrace module in kamailio       5.1/5.2<br>
<br>
> Dear,<br>
> <br>
> I'm using siptrace within a python handler in the KEMI framework.<br>
> KSR.siptrace.sip_trace_dst("sip:<myhomerip>:9060")<br>
> <br>
> I notice an ever increasing usage of memory, until the system runs out of<br>
> memory. (definition of a memory leak :) ). Looking at the memory information<br>
> kamailio is giving me I notice this:<br>
> <br>
> May 14 05:49:48 server kamailio[36452]: NOTICE: PYT {INVITE}<br>
> {1769595029-1513210001-1955500877} {1} : qm_sums: count= 79286 size= 5812048<br>
> bytes from siptrace: siptrace.c: ki_sip_trace_dst_cid(729)<br>
> May 14 05:51:17 server kamailio[36452]: NOTICE: PYT {REGISTER} { [<br>
> mailto:<a href="mailto:4_1419955802@192.168.0.153" target="_blank">4_1419955802@192.168.0.153</a> | <a href="mailto:4_1419955802@192.168.0.153" target="_blank">4_1419955802@192.168.0.153</a> ] } {2582} :<br>
> qm_sums: count= 79335 size= 5814840 bytes from siptrace: siptrace.c:<br>
> ki_sip_trace_dst_cid(729)<br>
> <br>
> I notice this on kamailio 5.1.8 (from a debian repo), and on kamailio 5.2.2<br>
> (from source). I can reproduce the problem very easily, and I can apply patches<br>
> in the source to try out things.<br>
> <br>
> Could I be wrongly using siptrace? Can I give you more debugging info?<br>
> <br>
> Kind regards,<br>
> Davy<br>
> <br>
> <br>
> _______________________________________________<br>
> Kamailio (SER) - Users Mailing List<br>
> <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
> <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>