Hello,
indeed there is a pseudo-variable that gives the environment variables.
Moreover, iirc, Luis Azedo added a while ago (it may be only from 5.3)
support to resolve variables inside substdef (and maybe define) -- so
eventually you should be able to do this with 5.3.0:
#!substdef "/PUBLICIP/$e
I've never used it but wiki says:
$env(NAME) - environment variables
*$env(NAME)* - value of the environment variable named NAME
So it should be possible.
Alex Balashov schrieb am Do., 24. Okt. 2019,
08:16:
> It is not. But you can do this via any template system such as Jinja2, or
> a hand-ro
It is not. But you can do this via any template system such as Jinja2, or a
hand-rolled substitution script.
—
Sent from mobile, with due apologies for brevity and errors.
> On Oct 24, 2019, at 2:02 AM, Gaurav Bmotra wrote:
>
>
> hi
> i using kamailio 5.2
> is it possible to use environmen
hi
i using kamailio 5.2
is it possible to use environmental variables value in kamailio.cfg
like i want to use local ip and public ip in config file
listen=udp:$(local_ip):5060 advertise $(public_ip):5060
if iti is possible then how i can use this
thank you
--
*Regards:*
Gaurav Kumar