I am not 100% sure if its a bug or feature request. And, I have already asked this question in mailing list.
I was trying to pass environment variables to Kamailio that are definitely there in the container. Also, I am trying to use the environment variables to specify ports for Kamailio to listen on. I have already tried passing variables through -A option but to no avail.
Please note that these values are known at start time so should work.
Errors
I have tried:
#!define TLS_TO_LISTEN tls:TLS_IP:$env(TLS_PORT)
I have also tried using in EVAPI bind_addr
modparam but that throws errors:
#!define EVAPI_LISTEN "0.0.0.0:EVAPI_PORT"
..
modparam("evapi", "bind_addr", EVAPI_LISTEN ) // IP and port to listen on for incoming TCP connections.
Error:
ERROR: evapi [evapi_mod.c:156]: mod_init(): invalid port: 0
version: kamailio 5.4.2 (x86_64/linux) f8885c
Linux fe1933ee6208 4.15.0-124-generic #127-Ubuntu SMP Fri Nov 6 10:54:43 UTC 2020 x86_64 GNU/Linux
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.