Hello,
On 06.07.17 10:02, Sebastian Damm wrote:
Hi,
On Wed, Jul 5, 2017 at 6:47 PM, Daniel-Constantin Mierla miconda@gmail.com wrote:
the reload command marks the scripts specified by 'load' parameter to be reloaded next time they are going to be used.
That's what I saw in the debug logs. But what does that exactly mean? I thought the script would get reinitialized and starts with a fresh state. As if I would restart Kamailio only without all the Kamailio initialization. But that seems not to be true. My "initialize" method is not called, because the global object variable is already set (which isn't when the script is executed after Kamailio was started).
Is there any way to "reset" the script except restarting Kamailio?
it sounds like you want to re-initialize the Lua interpreter, not to reload the Lua script. If you want a fully fresh Lua interpreter, then at this moment you have to restart kamailio.
Cheers, Daniel