Hello,

On 06.07.17 10:02, Sebastian Damm wrote:
> Hi,
>
> On Wed, Jul 5, 2017 at 6:47 PM, Daniel-Constantin Mierla
> <[email protected]> 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

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com


_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to