Hi Nicolas,
you are right, there is no special function for children destroy. Most modules do not need
it, as the data is in shared memory, processes are started over standard kamailio APIs
which will be stopped from the core automatically, to give some background.
Some modules do it by just iterating over an internal list of their children and then do
the cleanup task. You can find an example in cdp module (destroy, diameter_peer_destroy).
Cheers,
Henning
--
Henning Westerholt -
https://skalatan.de/blog/
Kamailio services -
https://gilawa.com<https://gilawa.com/>
From: sr-users <sr-users-bounces(a)lists.kamailio.org> On Behalf Of Chaigneau,
Nicolas
Sent: Tuesday, October 26, 2021 7:14 PM
To: sr-users(a)lists.kamailio.org
Subject: [SR-Users] No "child_destroy" export ?
Hello,
I have a module, for which I need to perform some processing in the children processes
when Kamailio is being stopped.
I've looked at the "struct module_export", in which I see
"mod_init", "child_init", "mod_destroy"... but no
"child_destroy". :/
Is there a way to achieve this ?
Thanks for your help.
Regards,
Nicolas.
This message contains information that may be privileged or confidential and is the
property of the Capgemini Group. It is intended only for the person to whom it is
addressed. If you are not the intended recipient, you are not authorized to read, print,
retain, copy, disseminate, distribute, or use this message or any part thereof. If you
receive this message in error, please notify the sender immediately and delete all copies
of this message.