Dockerized VoIP Stack

TD
Terrance Devor
Thu, Dec 22, 2022 1:28 AM

Hello Everyone,

Does anyone have experience in deploying Kamailio, Asterisk and RTPProxy to
a dockerized environment with K8s?

In short, we are looking to deploy the following applications to our
Kubernetes environment to support a SIP based PBX for our company:

  • Kamailio (Sip Proxy with DID  and Outbound SBC Functionality)
  • Asterisk Realtime (MariaDB Client, ARI)
  • RTPProxy (To-be-Determined)

Has anyone been successful, or failed, in doing this? I would love to hear
from you.

Terrance

Hello Everyone, Does anyone have experience in deploying Kamailio, Asterisk and RTPProxy to a dockerized environment with K8s? In short, we are looking to deploy the following applications to our Kubernetes environment to support a SIP based PBX for our company: - Kamailio (Sip Proxy with DID and Outbound SBC Functionality) - Asterisk Realtime (MariaDB Client, ARI) - RTPProxy (To-be-Determined) Has anyone been successful, or failed, in doing this? I would love to hear from you. Terrance
JA
jeremy ardley
Thu, Dec 22, 2022 2:17 AM

On 22/12/22 09:28, Terrance Devor wrote:

Does anyone have experience in deploying Kamailio, Asterisk and
RTPProxy to a dockerized environment with K8s?

In short, we are looking to deploy the following applications to our
Kubernetes environment to support a SIP based PBX for our company:

  • Kamailio (Sip Proxy with DID  and Outbound SBC Functionality)
  • Asterisk Realtime (MariaDB Client, ARI)
  • RTPProxy (To-be-Determined)

Has anyone been successful, or failed, in doing this? I would love to
hear from you.

Terrance

I have not done this configuration, but from experience using Kamailio
and RTP Proxy, and a media server in PBX configuration, it is not
recommended to share the host with other non-voip applications.

The issue is variable latency of RTP streams caused by non-voip
processes bursting in CPU and disk I/O at inconvenient moments.

Kamailio on its own would have no issue. RTP proxy might be marginally
affected. I would have stong concerns about using Asterisk.

--
Jeremy

On 22/12/22 09:28, Terrance Devor wrote: > > Does anyone have experience in deploying Kamailio, Asterisk and > RTPProxy to a dockerized environment with K8s? > > In short, we are looking to deploy the following applications to our > Kubernetes environment to support a SIP based PBX for our company: > - Kamailio (Sip Proxy with DID  and Outbound SBC Functionality) > - Asterisk Realtime (MariaDB Client, ARI) > - RTPProxy (To-be-Determined) > > Has anyone been successful, or failed, in doing this? I would love to > hear from you. > > Terrance > I have not done this configuration, but from experience using Kamailio and RTP Proxy, and a media server in PBX configuration, it is not recommended to share the host with other non-voip applications. The issue is variable latency of RTP streams caused by non-voip processes bursting in CPU and disk I/O at inconvenient moments. Kamailio on its own would have no issue. RTP proxy might be marginally affected. I would have stong concerns about using Asterisk. -- Jeremy
JA
jeremy ardley
Thu, Dec 22, 2022 2:26 AM

On 22/12/22 10:17, jeremy ardley via pjsip wrote:

On 22/12/22 09:28, Terrance Devor wrote:

Does anyone have experience in deploying Kamailio, Asterisk and
RTPProxy to a dockerized environment with K8s?

The issue is variable latency of RTP streams caused by non-voip
processes bursting in CPU and disk I/O at inconvenient moments.

Kamailio on its own would have no issue. RTP proxy might be marginally
affected. I would have stong concerns about using Asterisk.

As an addendum, the issue with RTP Proxy will be if you use it voice
recording mode. Any competing disk activity that can affect RTP stream
forwarding is to be avoided.

--
Jeremy

On 22/12/22 10:17, jeremy ardley via pjsip wrote: > On 22/12/22 09:28, Terrance Devor wrote: >> >> Does anyone have experience in deploying Kamailio, Asterisk and >> RTPProxy to a dockerized environment with K8s? >> > > The issue is variable latency of RTP streams caused by non-voip > processes bursting in CPU and disk I/O at inconvenient moments. > > Kamailio on its own would have no issue. RTP proxy might be marginally > affected. I would have stong concerns about using Asterisk. > > As an addendum, the issue with RTP Proxy will be if you use it voice recording mode. Any competing disk activity that can affect RTP stream forwarding is to be avoided. -- Jeremy
FG
Filippo Graziola
Thu, Dec 22, 2022 8:51 AM

Hi, sincerely I haven't any experience in this, but there is someone else
which has done something similar, here the presentation at kamailio event
https://www.kamailio.org/events/2018-KamailioWorld/Day1/04-Paolo.Visintin-Kamailio-Docker-Kybernetes.pdf

Filippo

Il giorno gio 22 dic 2022 alle ore 03:26 jeremy ardley via pjsip <
pjsip@lists.pjsip.org> ha scritto:

On 22/12/22 10:17, jeremy ardley via pjsip wrote:

On 22/12/22 09:28, Terrance Devor wrote:

Does anyone have experience in deploying Kamailio, Asterisk and RTPProxy
to a dockerized environment with K8s?

The issue is variable latency of RTP streams caused by non-voip processes
bursting in CPU and disk I/O at inconvenient moments.

Kamailio on its own would have no issue. RTP proxy might be marginally
affected. I would have stong concerns about using Asterisk.

As an addendum, the issue with RTP Proxy will be if you use it voice
recording mode. Any competing disk activity that can affect RTP stream
forwarding is to be avoided.

Jeremy


Visit our blog: http://blog.pjsip.org

pjsip mailing list -- pjsip@lists.pjsip.org
To unsubscribe send an email to pjsip-leave@lists.pjsip.org

Hi, sincerely I haven't any experience in this, but there is someone else which has done something similar, here the presentation at kamailio event https://www.kamailio.org/events/2018-KamailioWorld/Day1/04-Paolo.Visintin-Kamailio-Docker-Kybernetes.pdf Filippo Il giorno gio 22 dic 2022 alle ore 03:26 jeremy ardley via pjsip < pjsip@lists.pjsip.org> ha scritto: > > On 22/12/22 10:17, jeremy ardley via pjsip wrote: > > On 22/12/22 09:28, Terrance Devor wrote: > > > Does anyone have experience in deploying Kamailio, Asterisk and RTPProxy > to a dockerized environment with K8s? > > > The issue is variable latency of RTP streams caused by non-voip processes > bursting in CPU and disk I/O at inconvenient moments. > > Kamailio on its own would have no issue. RTP proxy might be marginally > affected. I would have stong concerns about using Asterisk. > > > As an addendum, the issue with RTP Proxy will be if you use it voice > recording mode. Any competing disk activity that can affect RTP stream > forwarding is to be avoided. > -- > Jeremy > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list -- pjsip@lists.pjsip.org > To unsubscribe send an email to pjsip-leave@lists.pjsip.org >
TD
Terrance Devor
Thu, Dec 22, 2022 2:36 PM

On Wed, Dec 21, 2022 at 9:19 PM jeremy ardley via pjsip <
pjsip@lists.pjsip.org> wrote:

On 22/12/22 09:28, Terrance Devor wrote:

Does anyone have experience in deploying Kamailio, Asterisk and RTPProxy
to a dockerized environment with K8s?

In short, we are looking to deploy the following applications to our
Kubernetes environment to support a SIP based PBX for our company:

  • Kamailio (Sip Proxy with DID  and Outbound SBC Functionality)
  • Asterisk Realtime (MariaDB Client, ARI)
  • RTPProxy (To-be-Determined)

Has anyone been successful, or failed, in doing this? I would love to hear
from you.

Terrance

I have not done this configuration, but from experience using Kamailio and
RTP Proxy, and a media server in PBX configuration, it is not recommended
to share the host with other non-voip applications.

The issue is variable latency of RTP streams caused by non-voip processes
bursting in CPU and disk I/O at inconvenient moments.

Kamailio on its own would have no issue. RTP proxy might be marginally
affected. I would have stong concerns about using Asterisk.

--
Jeremy


Visit our blog: http://blog.pjsip.org

pjsip mailing list -- pjsip@lists.pjsip.org
To unsubscribe send an email to pjsip-leave@lists.pjsip.org

Hello Jermey, we will have a dedicated host for the VoIP stack with
individual docker containers.

I really appreciate your input on the RTP and media handling. Does using
G729 not help reduce the size? We will go with the most efficient
compression.

On Wed, Dec 21, 2022 at 9:19 PM jeremy ardley via pjsip < pjsip@lists.pjsip.org> wrote: > > On 22/12/22 09:28, Terrance Devor wrote: > > > Does anyone have experience in deploying Kamailio, Asterisk and RTPProxy > to a dockerized environment with K8s? > > In short, we are looking to deploy the following applications to our > Kubernetes environment to support a SIP based PBX for our company: > - Kamailio (Sip Proxy with DID and Outbound SBC Functionality) > - Asterisk Realtime (MariaDB Client, ARI) > - RTPProxy (To-be-Determined) > > Has anyone been successful, or failed, in doing this? I would love to hear > from you. > > Terrance > > > I have not done this configuration, but from experience using Kamailio and > RTP Proxy, and a media server in PBX configuration, it is not recommended > to share the host with other non-voip applications. > > The issue is variable latency of RTP streams caused by non-voip processes > bursting in CPU and disk I/O at inconvenient moments. > > Kamailio on its own would have no issue. RTP proxy might be marginally > affected. I would have stong concerns about using Asterisk. > > -- > Jeremy > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list -- pjsip@lists.pjsip.org > To unsubscribe send an email to pjsip-leave@lists.pjsip.org Hello Jermey, we will have a dedicated host for the VoIP stack with individual docker containers. I really appreciate your input on the RTP and media handling. Does using G729 not help reduce the size? We will go with the most efficient compression.
TD
Terrance Devor
Thu, Dec 22, 2022 2:37 PM

On Wed, Dec 21, 2022 at 9:27 PM jeremy ardley via pjsip <
pjsip@lists.pjsip.org> wrote:

On 22/12/22 10:17, jeremy ardley via pjsip wrote:

On 22/12/22 09:28, Terrance Devor wrote:

Does anyone have experience in deploying Kamailio, Asterisk and RTPProxy
to a dockerized environment with K8s?

The issue is variable latency of RTP streams caused by non-voip processes
bursting in CPU and disk I/O at inconvenient moments.

Kamailio on its own would have no issue. RTP proxy might be marginally
affected. I would have stong concerns about using Asterisk.

As an addendum, the issue with RTP Proxy will be if you use it voice
recording mode. Any competing disk activity that can affect RTP stream
forwarding is to be avoided.

Jeremy


Visit our blog: http://blog.pjsip.org

pjsip mailing list -- pjsip@lists.pjsip.org
To unsubscribe send an email to pjsip-leave@lists.pjsip.org

What amazing input! RTP Proxy will be in a dedicated docker container with
its own volume.

On Wed, Dec 21, 2022 at 9:27 PM jeremy ardley via pjsip < pjsip@lists.pjsip.org> wrote: > > On 22/12/22 10:17, jeremy ardley via pjsip wrote: > > On 22/12/22 09:28, Terrance Devor wrote: > > > Does anyone have experience in deploying Kamailio, Asterisk and RTPProxy > to a dockerized environment with K8s? > > > The issue is variable latency of RTP streams caused by non-voip processes > bursting in CPU and disk I/O at inconvenient moments. > > Kamailio on its own would have no issue. RTP proxy might be marginally > affected. I would have stong concerns about using Asterisk. > > > As an addendum, the issue with RTP Proxy will be if you use it voice > recording mode. Any competing disk activity that can affect RTP stream > forwarding is to be avoided. > -- > Jeremy > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list -- pjsip@lists.pjsip.org > To unsubscribe send an email to pjsip-leave@lists.pjsip.org What amazing input! RTP Proxy will be in a dedicated docker container with its own volume.