[OpenSIPS-Devel] [OpenSIPS/opensips] 2eab4f: rtpengine: Enhance child init to work with mi() sc...
Liviu Chircu
noreply at github.com
Thu May 11 16:59:43 UTC 2023
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 2eab4fc0a50c994ee867ea88e7b8eeb2f7db44b3
https://github.com/OpenSIPS/opensips/commit/2eab4fc0a50c994ee867ea88e7b8eeb2f7db44b3
Author: Liviu Chircu <liviu at opensips.org>
Date: 2023-05-11 (Thu, 11 May 2023)
Changed paths:
M modules/rtpengine/rtpengine.c
Log Message:
-----------
rtpengine: Enhance child init to work with mi() scripting
Make sure to initialize the DB handle in the UDP/TCP workers as well,
since nowadays they can also perform MI "rtpengine_reloads" as such:
random SIP packet -> opensips.cfg -> mi("rtpengine_reload")
Also, this commit fixes an issue where MI processes (mostly FIFO and
HTTPD) were doing 2X the amount of communication with each RTPEngine on
startup, due to the initialization being called twice in these: once in
child_init(), then in mi_child_init() by calling child_init() again :-)
Related to #3056
More information about the Devel
mailing list