<html><head></head><body><div class="ydp4af5e3eayahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
        <div dir="ltr" data-setdir="false">Thanks Alex for your elaboration; you are right. </div><div dir="ltr" data-setdir="false">This is the reason that the current ims_ipsec module will create a bunch of listeners at startup that looks not efficient.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Regards,</div><div dir="ltr" data-setdir="false">Hossein</div><div dir="ltr" data-setdir="false"><br></div><div><br></div>
        
        </div><div id="ydpc644defbyahoo_quoted_7673275820" class="ydpc644defbyahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Tuesday, October 25, 2022 at 01:28:38 PM PDT, Alex Balashov <abalashov@evaristesys.com> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div dir="ltr">Well, no, it just stems from some knowledge of Kamailio’s multiprocess architecture.<br clear="none"><br clear="none">Kamailio uses a static pool of preforked SIP worker processes, and this is initialised once upon startup. These child processes are spawned for every listener, and communicate and share data using SysV IPC and shared memory. The shared memory pool is likewise initialised upon startup, as is the small fixed-size area of private memory associated with each other worker process (“package memory”). <br clear="none"><br clear="none">While perhaps not strictly impossible to alter, this setup isn’t particularly amenable to the dynamic creation and destruction of listeners, or the additional child processes they beget. The child processes need to be forked on startup, before their heap is laden with runtime baggage. All this is relatively expensive to initialise. <br clear="none"><br clear="none">— Alex<br clear="none"><br clear="none">> On Oct 25, 2022, at 4:14 PM, H Yavari <<a shape="rect" href="mailto:hyavari@rocketmail.com" rel="nofollow" target="_blank">hyavari@rocketmail.com</a>> wrote:<br clear="none">> <br clear="none">> Thanks Alex.<br clear="none">> Is there any document or material that tells more about those reasons?<br clear="none">> <br clear="none">> <br clear="none">> Regards,<br clear="none">> Hossein<br clear="none">> <br clear="none">> <br clear="none">> On Tuesday, October 25, 2022 at 01:00:18 PM PDT, Alex Balashov <<a shape="rect" href="mailto:abalashov@evaristesys.com" rel="nofollow" target="_blank">abalashov@evaristesys.com</a>> wrote:<br clear="none">> <br clear="none">> <br clear="none">> Hi,<br clear="none">> <br clear="none">> Unfortunately, for a variety of architectural reasons, this is not practical. <br clear="none">> <br clear="none">> — Alex<br clear="none">> <br clear="none">> > On Oct 25, 2022, at 12:43 PM, H Yavari <<a shape="rect" href="mailto:hyavari@rocketmail.com" rel="nofollow" target="_blank">hyavari@rocketmail.com</a>> wrote:<br clear="none">> > <br clear="none">> > Hi Kamailio community,<br clear="none">> > <br clear="none">> > <br clear="none">> > I am running an IPsec server beside Kamailio, so I am interested to know if there is any method to create a SIP listener on a specific port on the fly. I mean, when I create the IPsec SAs through the IPsec server, I ask Kamailio to create a listener/handler for that port too.<br clear="none">> > This case might be very rare, but it is always good to hear community ideas. <br clear="none">> > <br clear="none">> > Thank you.<br clear="none">> > <br clear="none">> > Regards,<br clear="none">> > Hossein<br clear="none">> <br clear="none">> > __________________________________________________________<br clear="none">> > Kamailio - Users Mailing List - Non Commercial Discussions<br clear="none">> > <a shape="rect" href="mailto:sr-users@lists.kamailio.org" rel="nofollow" target="_blank">sr-users@lists.kamailio.org</a><br clear="none">> > Important: keep the mailing list in the recipients, do not reply only to the sender!<br clear="none">> > Edit mailing list options or unsubscribe:<br clear="none">> > <a shape="rect" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="nofollow" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br clear="none">> <br clear="none">> -- <br clear="none">> Alex Balashov | Principal | Evariste Systems LLC<br clear="none">> <br clear="none">> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)<br clear="none">> Web: <a shape="rect" href="http://www.evaristesys.com/, " rel="nofollow" target="_blank">http://www.evaristesys.com/, </a><a shape="rect" href="http://www.csrpswitch.com/" rel="nofollow" target="_blank">http://www.csrpswitch.com/</a><br clear="none">> <br clear="none">> <br clear="none">> __________________________________________________________<br clear="none">> Kamailio - Users Mailing List - Non Commercial Discussions<br clear="none">> <a shape="rect" href="mailto:sr-users@lists.kamailio.org" rel="nofollow" target="_blank">sr-users@lists.kamailio.org</a><br clear="none">> Important: keep the mailing list in the recipients, do not reply only to the sender!<br clear="none">> Edit mailing list options or unsubscribe:<br clear="none">> <a shape="rect" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="nofollow" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><div class="ydpc644defbyqt7328375414" id="ydpc644defbyqtfd01076"><br clear="none">> <br clear="none">> __________________________________________________________<br clear="none">> Kamailio - Users Mailing List - Non Commercial Discussions<br clear="none">> <a shape="rect" href="mailto:sr-users@lists.kamailio.org" rel="nofollow" target="_blank">sr-users@lists.kamailio.org</a><br clear="none">> Important: keep the mailing list in the recipients, do not reply only to the sender!<br clear="none">> Edit mailing list options or unsubscribe:<br clear="none">> <a shape="rect" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="nofollow" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br clear="none"><br clear="none">-- <br clear="none">Alex Balashov | Principal | Evariste Systems LLC<br clear="none"><br clear="none">Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)<br clear="none">Web: <a shape="rect" href="http://www.evaristesys.com/, " rel="nofollow" target="_blank">http://www.evaristesys.com/, </a><a shape="rect" href="http://www.csrpswitch.com/" rel="nofollow" target="_blank">http://www.csrpswitch.com/</a><br clear="none"><br clear="none"><br clear="none">__________________________________________________________<br clear="none">Kamailio - Users Mailing List - Non Commercial Discussions<br clear="none"><a shape="rect" href="mailto:sr-users@lists.kamailio.org" rel="nofollow" target="_blank">sr-users@lists.kamailio.org</a><br clear="none">Important: keep the mailing list in the recipients, do not reply only to the sender!<br clear="none">Edit mailing list options or unsubscribe:<br clear="none"><a shape="rect" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="nofollow" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br clear="none"></div></div></div>
            </div>
        </div></body></html>