alexbakker left a comment (kamailio/kamailio#4231)

> Are you using any other modules that might interact with this? or any 
> outdated or uncompatible versions of kamailio and kamcmd?

No. Kamailio and kamcmd were compiled from source and were tested together with 
matching versions. And the issue is reproducible with the exact configuration 
file I provided.

To make sure we're running the same thing, here's a Dockerfile to help 
reproduce the issue:

```Dockerfile
FROM debian:bookworm

RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
    apt-get upgrade -y && \
    apt-get install -y gpg wget watch

RUN wget -O- https://deb.kamailio.org/kamailiodebkey.gpg | gpg --dearmor | tee 
/usr/share/keyrings/kamailio.gpg

RUN printf "deb [signed-by=/usr/share/keyrings/kamailio.gpg] 
http://deb.kamailio.org/kamailio60 bookworm main\ndeb-src 
[signed-by=/usr/share/keyrings/kamailio.gpg] http://deb.kamailio.org/kamailio60 
bookworm main" > /etc/apt/sources.list

RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
    apt-get install -y kamailio kamailio-tls-modules kamailio-utils-modules

RUN cat <<'EOF' > /etc/kamailio/kamailio.cfg
#!KAMAILIO

debug=2
log_stderror=yes
fork=yes
enable_tls=1

loadmodule "tls.so"
loadmodule "cfg_rpc.so"
loadmodule "pv.so"
loadmodule "xlog.so"
loadmodule "ctl.so"
loadmodule "rtimer.so"
loadmodule "http_client.so"

modparam("tls", "certificate", "")
modparam("tls", "private_key", "")

modparam("rtimer", "timer", "name=apiban;interval=100u;mode=1;")
modparam("rtimer", "exec", "timer=apiban;route=APIBAN;")

route[APIBAN] {
    xinfo("running apiban refresh\n");
    http_client_query("https://alexbakker.me/u/7bvjn9jfas.txt";, "$var(banned)");
}

EOF

CMD ["kamailio", "-DD"]
```

To start it: 

```sh
podman run --name kamailio_issue_4231 -it $(podman build -q .)
```

To monitor the memory usage increase:

```sh
podman exec -it kamailio_issue_4231 watch -n1 -- kamcmd core.shmmem
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4231#issuecomment-3001903826
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/4231/3001903...@github.com>
_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to