We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppose that there is an variable define in kamailio-basic-kemi.cfg with:
kamailio-basic-kemi.cfg
#!define MYVAR 1.2.3.4
Then in the kamailio-basic-kemi-lua.lua
kamailio-basic-kemi-lua.lua
Is there any alternative solution like set global via app_lua parameter, example:
modparam("app_lua", "load", "/usr/local/etc/kamailio/lua/myscript.lua") modparam("app_lua", "varset", "pstngw=s:sip:10.10.10.10")
The text was updated successfully, but these errors were encountered:
for KEMI there is an option which was recently merged to the master you can get value of #!defined by using KSR.kx.get_def("VAR")
#!define MYVAR 1234
then in your script you can use KSR.kx.get_def("MYVAR")
there was a mail thread on this topic in users list
Sorry, something went wrong.
As mentioned from @arsperger, should be already implemented with 851a8c0
No branches or pull requests
Description
Suppose that there is an variable define in
kamailio-basic-kemi.cfg
with:Then in the
kamailio-basic-kemi-lua.lua
Possible Solutions
Is there any alternative solution like set global via app_lua parameter, example:
The text was updated successfully, but these errors were encountered: