<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>noting I don't use the ims modules and I do not know what they
are supposed to do, but the initial design for the pool of worker
processes was to be able to call module init and child init
callbacks before any traffic is handled. Alex provided details on
memory initialization as well.<br>
</p>
<p>Case by case a module can listen on additional sockets, like ctl
does for rpc commands, or lwsc with websocket client connections.</p>
<p>If an ims module need work with new sockets, then the module can
implement the mechanism for it, the developer has the whole C
language at hand. The implementation tcp layer does it with new
tcp connections, having a tcp connections manager.</p>
<p>Obviously, if someone wants to contribute it for the classic sip
workers, a PR can be made, it can be merged upon review.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 23.11.22 16:03, Oleg Belousov wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAH-zrmJP0j9++whGA3SbdAM4_QKwzC8fN2+sV1Qos3hE1hnysg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hello.
<div>I'm wondering why not having the ability to create <span
style="font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">a SIP
listener on the fly/usage instead </span>of <span
style="font-size:13px;font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif">bunch of listeners at
startup can be a limitation. I believe each listener can
serve multiple ipsec connections, or it is not the case?</span></div>
<div>
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">--<br>
<a href="http://obelousov.tel" target="_blank"
moz-do-not-send="true">obelousov.tel</a></div>
</div>
<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Oct 27, 2022 at 5:26
PM Carsten Bock <<a href="mailto:carsten@ng-voice.com"
moz-do-not-send="true" class="moz-txt-link-freetext">carsten@ng-voice.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><span
style="color:rgb(38,40,42);font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">Hi </span><span
style="color:rgb(38,40,42);font-size:13px;font-family:Helvetica,Arial,sans-serif">Hossein,</span>
<div><font face="Helvetica, Arial, sans-serif"
color="#26282a"><br>
</font></div>
<div><font face="Helvetica, Arial, sans-serif"
color="#26282a">due to those limitations, we are using a
custom, in-house solution for our MNO/MVNO deployments,
which we haven't released as open-source (yet).</font></div>
<div><font face="Helvetica, Arial, sans-serif"
color="#26282a"><br>
</font></div>
<div><font face="Helvetica, Arial, sans-serif"
color="#26282a">Thanks,</font></div>
<div><font face="Helvetica, Arial, sans-serif"
color="#26282a">Carsten</font></div>
<div><font face="Helvetica, Arial, sans-serif"
color="#26282a"><br clear="all">
</font>
<div>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">--</div>
<div dir="ltr">Carsten Bock I CTO &
Founder</div>
<div dir="ltr"><br>
<p style="margin:0cm 0cm
0.0001pt;background-image:initial;background-position:initial;background-repeat:initial"><span
style="color:black" lang="EN-US">ng-voice
GmbH</span><span
style="color:rgb(0,112,192)"
lang="EN-US"></span></p>
<p
style="margin-right:0cm;margin-bottom:12pt;margin-left:0cm;background-image:initial;background-position:initial;background-repeat:initial"><span
style="color:black" lang="EN-US">Trostbrücke
1 I 20457 Hamburg I Germany<br>
T +49 179 2021244 I <a
href="http://www.ng-voice.com/"
style="color:rgb(17,85,204)"
target="_blank" moz-do-not-send="true"><span
style="color:black">www.ng-voice.com</span></a></span></p>
<p style="margin:0cm 0cm
0.0001pt;background-image:initial;background-position:initial;background-repeat:initial"><span
style="color:black" lang="EN-US">Registry
Office at Local Court Hamburg, HRB
120189<br>
Managing Directors: Dr. David Bachmann,
Carsten Bock</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Am Mi., 26. Okt. 2022 um
18:29 Uhr schrieb H Yavari <<a
href="mailto:hyavari@rocketmail.com" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">hyavari@rocketmail.com</a>>:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div>
<div style="font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px">
<div dir="ltr">Hi Casrten,</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">Thanks for the comment. I know you
provide IMS, have you contributed to Kamailio IPsec,
or do you have something in-house solution for this
part? (I hope this question will not be off-topic)</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">BR</div>
<div dir="ltr">Hossein</div>
<div dir="ltr"><br>
</div>
<div><br>
</div>
</div>
<div
id="m_6420724801894652479m_-2817497564853573475ydpf5bbf1dfyahoo_quoted_7214463771">
<div style="font-family:"Helvetica
Neue",Helvetica,Arial,sans-serif;font-size:13px;color:rgb(38,40,42)">
<div> On Wednesday, October 26, 2022 at 06:37:33 AM
PDT, Carsten Bock <<a
href="mailto:carsten@ng-voice.com"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">carsten@ng-voice.com</a>>
wrote: </div>
<div><br>
</div>
<div><br>
</div>
<div>
<div
id="m_6420724801894652479m_-2817497564853573475ydpf5bbf1dfyiv9819291676">
<div>
<div dir="ltr">Hi <span
style="font-family:Helvetica,Arial,sans-serif;font-size:13px">Hossein,</span>
<div><font face="Helvetica Neue, Helvetica,
Arial, sans-serif"><br clear="none">
</font></div>
<div><font face="Helvetica Neue, Helvetica,
Arial, sans-serif">yes, you are right,
it is in-efficient. It may be fine for a
private network/PoC/Lab/ or anything
else small, but it will not really work
for a commercial network - for that you
need something different.</font></div>
<div><font face="Helvetica Neue, Helvetica,
Arial, sans-serif"><br clear="none">
</font></div>
<div><font face="Helvetica Neue, Helvetica,
Arial, sans-serif">Thanks,</font></div>
<div><font face="Helvetica Neue, Helvetica,
Arial, sans-serif">Carsten<br
clear="all">
</font>
<div>
<div dir="ltr">
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">--</div>
<div dir="ltr">Carsten Bock I
CTO & Founder</div>
<div dir="ltr"><br
clear="none">
<p style="margin:0cm 0cm
0.0001pt;background-image:initial;background-position:initial;background-repeat:initial"><span
style="color:black"
lang="EN-US">ng-voice
GmbH</span><span
style="color:rgb(0,112,192)"
lang="EN-US"></span></p>
<p
style="margin-right:0cm;margin-bottom:12pt;margin-left:0cm;background-image:initial;background-position:initial;background-repeat:initial"><span
style="color:black"
lang="EN-US">Trostbrücke
1 I 20457 Hamburg I
Germany<br clear="none">
T +49 179 2021244 I <a
shape="rect"
href="http://www.ng-voice.com/"
style="color:rgb(17,85,204)" rel="nofollow" target="_blank"
moz-do-not-send="true"><span
style="color:black">www.ng-voice.com</span></a></span></p>
<p style="margin:0cm 0cm
0.0001pt;background-image:initial;background-position:initial;background-repeat:initial"><span
style="color:black"
lang="EN-US">Registry
Office at Local Court
Hamburg, HRB 120189<br
clear="none">
Managing Directors: Dr.
David Bachmann, Carsten
Bock</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br clear="none">
</div>
</div>
<br clear="none">
<div>
<div dir="ltr">Am Di., 25. Okt. 2022 um
23:03 Uhr schrieb H Yavari <<a
shape="rect"
href="mailto:hyavari@rocketmail.com"
rel="nofollow" target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">hyavari@rocketmail.com</a>>:<br
clear="none">
</div>
<blockquote style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div
id="m_6420724801894652479m_-2817497564853573475ydpf5bbf1dfyiv9819291676yqt63739">
<div>
<div
style="font-family:Helvetica,Arial,sans-serif;font-size:13px">
<div dir="ltr">Thanks Alex for your
elaboration; you are right. </div>
<div dir="ltr">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"><br clear="none">
</div>
<div dir="ltr"><br clear="none">
</div>
<div dir="ltr">Regards,</div>
<div dir="ltr">Hossein</div>
<div dir="ltr"><br clear="none">
</div>
<div><br clear="none">
</div>
</div>
<div
id="m_6420724801894652479m_-2817497564853573475ydpf5bbf1dfyiv9819291676m_-8847287612210934442ydpc644defbyahoo_quoted_7673275820">
<div
style="font-family:Helvetica,Arial,sans-serif;font-size:13px;color:rgb(38,40,42)">
<div> On Tuesday, October 25, 2022
at 01:28:38 PM PDT, Alex
Balashov <<a shape="rect"
href="mailto:abalashov@evaristesys.com"
rel="nofollow" target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">abalashov@evaristesys.com</a>>
wrote: </div>
<div><br clear="none">
</div>
<div><br clear="none">
</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"
moz-do-not-send="true"
class="moz-txt-link-freetext">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"
moz-do-not-send="true"
class="moz-txt-link-freetext">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"
moz-do-not-send="true"
class="moz-txt-link-freetext">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"
moz-do-not-send="true"
class="moz-txt-link-freetext">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"
moz-do-not-send="true"
class="moz-txt-link-freetext">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"
moz-do-not-send="true"
class="moz-txt-link-freetext">http://www.evaristesys.com/,
</a><a shape="rect"
href="http://www.csrpswitch.com/"
rel="nofollow"
target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">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"
moz-do-not-send="true"
class="moz-txt-link-freetext">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"
moz-do-not-send="true"
class="moz-txt-link-freetext">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
<div
id="m_6420724801894652479m_-2817497564853573475ydpf5bbf1dfyiv9819291676m_-8847287612210934442ydpc644defbyqtfd01076"><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"
moz-do-not-send="true"
class="moz-txt-link-freetext">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"
moz-do-not-send="true"
class="moz-txt-link-freetext">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"
moz-do-not-send="true"
class="moz-txt-link-freetext">http://www.evaristesys.com/,
</a><a shape="rect"
href="http://www.csrpswitch.com/"
rel="nofollow"
target="_blank"
moz-do-not-send="true"
class="moz-txt-link-freetext">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"
moz-do-not-send="true"
class="moz-txt-link-freetext">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"
moz-do-not-send="true"
class="moz-txt-link-freetext">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br
clear="none">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
__________________________________________________________<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"
moz-do-not-send="true"
class="moz-txt-link-freetext">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"
moz-do-not-send="true"
class="moz-txt-link-freetext">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br
clear="none">
</blockquote>
</div>
</div>
</div>
<div
id="m_6420724801894652479m_-2817497564853573475ydpf5bbf1dfyqt92172">__________________________________________________________<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"
moz-do-not-send="true"
class="moz-txt-link-freetext">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"
moz-do-not-send="true"
class="moz-txt-link-freetext">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br
clear="none">
</div>
</div>
</div>
</div>
</div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
<a href="mailto:sr-users@lists.kamailio.org"
target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not
reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
<a
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer" target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
__________________________________________________________<br>
Kamailio - Users Mailing List - Non Commercial Discussions<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">sr-users@lists.kamailio.org</a><br>
Important: keep the mailing list in the recipients, do not
reply only to the sender!<br>
Edit mailing list options or unsubscribe:<br>
<a
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
rel="noreferrer" target="_blank" moz-do-not-send="true"
class="moz-txt-link-freetext">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a></pre>
</body>
</html>