[sr-dev] Per-child module de-init

Daniel-Constantin Mierla miconda at gmail.com
Mon Feb 3 09:42:00 CET 2014


Hello,

On 20/01/14 13:14, Alekzander Spiridonov wrote:
>
> Hi list,
>
> Could anyone tell me if there is a symmetric way to "de-init" kamailio 
> child processes as it is done with child_init_function.
>
> Actual use case is to open connect only in timer module (for periodic 
> checks) and some how close it before kamailio is stopped. So at the 
> moment I use child_init_function to open connect but have no idea how 
> to close it since destroy_function is called only for proc_main AFTER 
> all childs are terminated.
indeed, the destroy function is executed by proc main and there is no 
option on a per child destroy callback. All connections will be cleared 
at the os layer once the application was stopped.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda




More information about the sr-dev mailing list