Hmm, i don't think it will be difficult to implement if I understand correctly what you want.

If we define those extra vars in file though, shouldn't our config file check for the existence of these defines and then change the port or whatever they are for? In this case, it can introduce a more complex config base file, but yeah probably just this one.

Moreover in the unit service file when we call

ExecStart=/usr/sbin/kamailio -P /run/kamailio/kamailio-%i.pid -Y /var/run/kamailio-%i -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY

we should know the name of the variable beforehand?

What I mean by this, one can define in the file

PORT=5061


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/pull/3904/c2243055490@github.com>