<p></p>
<h3>Description</h3>
<p>Suppose that there is an variable define in <code>kamailio-basic-kemi.cfg</code> with:</p>
<pre><code>#!define MYVAR 1.2.3.4
</code></pre>
<p>Then in the <code>kamailio-basic-kemi-lua.lua</code></p>
<ul>
<li>How can we get that variable?</li>
</ul>
<h3>Possible Solutions</h3>
<p>Is there any alternative solution like set global via app_lua parameter, example:</p>
<pre><code>modparam("app_lua", "load", "/usr/local/etc/kamailio/lua/myscript.lua")
modparam("app_lua", "varset", "pstngw=s:sip:10.10.10.10")
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2822">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZLEZDNWAPMVOSFMMO3T4NATJANCNFSM5CADTUSQ">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email">Android</a>.<img src="https://github.com/notifications/beacon/ABO7UZLUSDTPHVVH74OKPL3T4NATJA5CNFSM5CADTUS2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ONSDA6A.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2822",
"url": "https://github.com/kamailio/kamailio/issues/2822",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>