[SR-Users] environmental variables in kamailio

Alex Balashov abalashov at evaristesys.com
Thu Oct 24 08:15:50 CEST 2019


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 <saigauravmehra91 at gmail.com> wrote:
> 
> 
> 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
> 
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20191024/800cb4c0/attachment.html>


More information about the sr-users mailing list