[sr-dev] [kamailio/kamailio] Cannot use environment variables in modparam() function (#2276)

Daniel-Constantin Mierla notifications at github.com
Wed Apr 8 15:21:57 CEST 2020


This should be possible via:

```
#substdef "/MYENVSECRET/$env(AUTH_EPHEMERAL_SECRET)/"
modparam("auth_ephemeral", "secret", "MYENVSECRET")
```
There is another alternative to use command line parameters to set defined values or substdef rules, see `kamailio -h`.

I am going to close this one, having alternatives for it. If one wants to implement direct evaluation in modparams, then just do a pull request.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2276#issuecomment-610956007
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20200408/d9cf85b3/attachment.html>


More information about the sr-dev mailing list