Re: [SR-Users] RTP Engine in docker

2020-02-12 Thread David Villasmil
I got this working with kernel mode on a docker (debian 10 on debian 10)
https://github.com/davidcsi/rtpengine-docker

I haven't yet connected it to a kamailio, but it seems to be ok.

you MUST start the container with --privileged

Hope it helps.

Regards,

David Villasmil
email: david.villasmil.w...@gmail.com
phone: +34669448337


On Wed, Feb 12, 2020 at 7:51 AM Voip support  wrote:

> Hi,
>
> I got it running in docker - without kernel mode. For now is satisfying me.
> If i get more time i would need to check how to run it in kernel mode
> using docker.
>
> I used --net=host and started rtpengine using command line inside docker
> rtpengine --port-min=29000 --port-max=3 --interface=10.0.0.10!PUBLICIP
> --listen-ng=127.0.0.1:2223
> I got both way media. Kamailio was already running on host just
> reconfigured it to use rtpengine.
>
> Best regards,
> Tom
>
> pon., 10 lut 2020 o 21:46 Sergey Safarov  napisał(a):
>
>> you try this script
>>
>> https://github.com/sergey-safarov/kazoo-configs-docker/blob/master/scripts/overlay2host.sh
>>
>> It allow connect host to overlay network
>>
>> On Mon, Feb 10, 2020 at 7:37 PM Alex Balashov 
>> wrote:
>>
>>> The main issue I have with running RTPEngine containers in host network
>>> mode is that they then cannot simultaneously participate in
>>> internal/overlay container networks, defeating efforts to manage them with
>>> various orchestration architectures.
>>>
>>> —
>>> Sent from mobile, with due apologies for brevity and errors.
>>>
>>> On Feb 10, 2020, at 11:12 AM, Sergey Safarov 
>>> wrote:
>>>
>>> 
>>> > enable 1-to-1 NAT for RTP port range between host and vm (i recommend
>>> using iptables for this instead of using docker port expose feature).
>>> More simple start container with host network
>>>
>>> On Mon, Feb 10, 2020 at 7:02 PM M S  wrote:
>>>
 You would need to install kernel module in host machine, only then it
 will be available in docker container. You will also need to mark container
 as privileged container and enable 1-to-1 NAT for RTP port range between
 host and vm (i recommend using iptables for this instead of using docker
 port expose feature).

 Regarding RTPE compilation, yes it is quite difficult on Ubuntu 18.04.
 You have to tweak /debian/control file and manually add compat
 file. Also there are various dependencies that are not listed in wiki and
 cause problem in installation of deb packages, which you can install later
 on after reading the error messages.

 As for install order, for me "dpkg -i *.deb" works fine and i control
 which features to use and which not from config file. Otherwise just
 install whatever seems appropriate to you, don't worry dpkg will install
 other ngcp-* packages as needed.

 Hope this helps.


 On Mon, 10 Feb 2020, 11:03 Voip support,  wrote:

> Dear Community,
>
> I would like to use rtpengine but had a very hard time to do the
> compilation under ubuntu 16.04 and 18.04.
>
> On Ubuntu 18.04 after already compiled the rtpengine i was unable to
> install the deb packages.
> Many different errors occurred.
>
> I finally tried to install RTP engine on debian 10 and i was able to
> install it.
>
> I am thinking of 2 use scenarios:
> - handling many concurrent calls like using rtpproxy for normall
> traffic
> - make WebRTC to legacy RTP transcoding (convert WebRTC SDP to legacy
> SDP to use with non webrtc compliant sip server)
>
> For the first scenario i imagine that it would be far better to run
> in-kernel mode because of performance.
>
> For the second scenario i think userspace daemon should be fine ( i
> expect not much traffic maximum 50-100 calls).
>
> However my question is what is the correct order of installing the deb
> packages.
> Which packages do i really need.
>
> For running rtpengine in docker could i use Debian 10 OS and compile
> rtpengine and install just "
> ngcp-rtpengine-daemon_6.2.0.0+0~mr6.2.0.0_amd64.deb" ? (the in this
> case the host running docker can be any linux distribution?)
>
> If i would like to run rtpengine in docker in kernel mode - is it
> possible or i need to use same linux distribution in host and docker
> container (because of the kernel match?)
>
> Best regards,
> Tom
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
 ___
 Kamailio (SER) - Users Mailing List
 sr-users@lists.kamailio.org
 https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/m

Re: [SR-Users] RTP Engine in docker

2020-02-12 Thread Voip support
Hi,

I got it running in docker - without kernel mode. For now is satisfying me.
If i get more time i would need to check how to run it in kernel mode using
docker.

I used --net=host and started rtpengine using command line inside docker
rtpengine --port-min=29000 --port-max=3 --interface=10.0.0.10!PUBLICIP
--listen-ng=127.0.0.1:2223
I got both way media. Kamailio was already running on host just
reconfigured it to use rtpengine.

Best regards,
Tom

pon., 10 lut 2020 o 21:46 Sergey Safarov  napisał(a):

> you try this script
>
> https://github.com/sergey-safarov/kazoo-configs-docker/blob/master/scripts/overlay2host.sh
>
> It allow connect host to overlay network
>
> On Mon, Feb 10, 2020 at 7:37 PM Alex Balashov 
> wrote:
>
>> The main issue I have with running RTPEngine containers in host network
>> mode is that they then cannot simultaneously participate in
>> internal/overlay container networks, defeating efforts to manage them with
>> various orchestration architectures.
>>
>> —
>> Sent from mobile, with due apologies for brevity and errors.
>>
>> On Feb 10, 2020, at 11:12 AM, Sergey Safarov  wrote:
>>
>> 
>> > enable 1-to-1 NAT for RTP port range between host and vm (i recommend
>> using iptables for this instead of using docker port expose feature).
>> More simple start container with host network
>>
>> On Mon, Feb 10, 2020 at 7:02 PM M S  wrote:
>>
>>> You would need to install kernel module in host machine, only then it
>>> will be available in docker container. You will also need to mark container
>>> as privileged container and enable 1-to-1 NAT for RTP port range between
>>> host and vm (i recommend using iptables for this instead of using docker
>>> port expose feature).
>>>
>>> Regarding RTPE compilation, yes it is quite difficult on Ubuntu 18.04.
>>> You have to tweak /debian/control file and manually add compat
>>> file. Also there are various dependencies that are not listed in wiki and
>>> cause problem in installation of deb packages, which you can install later
>>> on after reading the error messages.
>>>
>>> As for install order, for me "dpkg -i *.deb" works fine and i control
>>> which features to use and which not from config file. Otherwise just
>>> install whatever seems appropriate to you, don't worry dpkg will install
>>> other ngcp-* packages as needed.
>>>
>>> Hope this helps.
>>>
>>>
>>> On Mon, 10 Feb 2020, 11:03 Voip support,  wrote:
>>>
 Dear Community,

 I would like to use rtpengine but had a very hard time to do the
 compilation under ubuntu 16.04 and 18.04.

 On Ubuntu 18.04 after already compiled the rtpengine i was unable to
 install the deb packages.
 Many different errors occurred.

 I finally tried to install RTP engine on debian 10 and i was able to
 install it.

 I am thinking of 2 use scenarios:
 - handling many concurrent calls like using rtpproxy for normall traffic
 - make WebRTC to legacy RTP transcoding (convert WebRTC SDP to legacy
 SDP to use with non webrtc compliant sip server)

 For the first scenario i imagine that it would be far better to run
 in-kernel mode because of performance.

 For the second scenario i think userspace daemon should be fine ( i
 expect not much traffic maximum 50-100 calls).

 However my question is what is the correct order of installing the deb
 packages.
 Which packages do i really need.

 For running rtpengine in docker could i use Debian 10 OS and compile
 rtpengine and install just "
 ngcp-rtpengine-daemon_6.2.0.0+0~mr6.2.0.0_amd64.deb" ? (the in this
 case the host running docker can be any linux distribution?)

 If i would like to run rtpengine in docker in kernel mode - is it
 possible or i need to use same linux distribution in host and docker
 container (because of the kernel match?)

 Best regards,
 Tom
 ___
 Kamailio (SER) - Users Mailing List
 sr-users@lists.kamailio.org
 https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kam

Re: [SR-Users] RTP Engine in docker

2020-02-10 Thread Sergey Safarov
you try this script
https://github.com/sergey-safarov/kazoo-configs-docker/blob/master/scripts/overlay2host.sh

It allow connect host to overlay network

On Mon, Feb 10, 2020 at 7:37 PM Alex Balashov 
wrote:

> The main issue I have with running RTPEngine containers in host network
> mode is that they then cannot simultaneously participate in
> internal/overlay container networks, defeating efforts to manage them with
> various orchestration architectures.
>
> —
> Sent from mobile, with due apologies for brevity and errors.
>
> On Feb 10, 2020, at 11:12 AM, Sergey Safarov  wrote:
>
> 
> > enable 1-to-1 NAT for RTP port range between host and vm (i recommend
> using iptables for this instead of using docker port expose feature).
> More simple start container with host network
>
> On Mon, Feb 10, 2020 at 7:02 PM M S  wrote:
>
>> You would need to install kernel module in host machine, only then it
>> will be available in docker container. You will also need to mark container
>> as privileged container and enable 1-to-1 NAT for RTP port range between
>> host and vm (i recommend using iptables for this instead of using docker
>> port expose feature).
>>
>> Regarding RTPE compilation, yes it is quite difficult on Ubuntu 18.04.
>> You have to tweak /debian/control file and manually add compat
>> file. Also there are various dependencies that are not listed in wiki and
>> cause problem in installation of deb packages, which you can install later
>> on after reading the error messages.
>>
>> As for install order, for me "dpkg -i *.deb" works fine and i control
>> which features to use and which not from config file. Otherwise just
>> install whatever seems appropriate to you, don't worry dpkg will install
>> other ngcp-* packages as needed.
>>
>> Hope this helps.
>>
>>
>> On Mon, 10 Feb 2020, 11:03 Voip support,  wrote:
>>
>>> Dear Community,
>>>
>>> I would like to use rtpengine but had a very hard time to do the
>>> compilation under ubuntu 16.04 and 18.04.
>>>
>>> On Ubuntu 18.04 after already compiled the rtpengine i was unable to
>>> install the deb packages.
>>> Many different errors occurred.
>>>
>>> I finally tried to install RTP engine on debian 10 and i was able to
>>> install it.
>>>
>>> I am thinking of 2 use scenarios:
>>> - handling many concurrent calls like using rtpproxy for normall traffic
>>> - make WebRTC to legacy RTP transcoding (convert WebRTC SDP to legacy
>>> SDP to use with non webrtc compliant sip server)
>>>
>>> For the first scenario i imagine that it would be far better to run
>>> in-kernel mode because of performance.
>>>
>>> For the second scenario i think userspace daemon should be fine ( i
>>> expect not much traffic maximum 50-100 calls).
>>>
>>> However my question is what is the correct order of installing the deb
>>> packages.
>>> Which packages do i really need.
>>>
>>> For running rtpengine in docker could i use Debian 10 OS and compile
>>> rtpengine and install just "
>>> ngcp-rtpengine-daemon_6.2.0.0+0~mr6.2.0.0_amd64.deb" ? (the in this
>>> case the host running docker can be any linux distribution?)
>>>
>>> If i would like to run rtpengine in docker in kernel mode - is it
>>> possible or i need to use same linux distribution in host and docker
>>> container (because of the kernel match?)
>>>
>>> Best regards,
>>> Tom
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] RTP Engine in docker

2020-02-10 Thread Alex Balashov
The main issue I have with running RTPEngine containers in host network mode is 
that they then cannot simultaneously participate in internal/overlay container 
networks, defeating efforts to manage them with various orchestration 
architectures.

—
Sent from mobile, with due apologies for brevity and errors.

> On Feb 10, 2020, at 11:12 AM, Sergey Safarov  wrote:
> 
> 
> > enable 1-to-1 NAT for RTP port range between host and vm (i recommend using 
> > iptables for this instead of using docker port expose feature).
> More simple start container with host network
> 
>> On Mon, Feb 10, 2020 at 7:02 PM M S  wrote:
>> You would need to install kernel module in host machine, only then it will 
>> be available in docker container. You will also need to mark container as 
>> privileged container and enable 1-to-1 NAT for RTP port range between host 
>> and vm (i recommend using iptables for this instead of using docker port 
>> expose feature).
>> 
>> Regarding RTPE compilation, yes it is quite difficult on Ubuntu 18.04. You 
>> have to tweak /debian/control file and manually add compat file. 
>> Also there are various dependencies that are not listed in wiki and cause 
>> problem in installation of deb packages, which you can install later on 
>> after reading the error messages.
>> 
>> As for install order, for me "dpkg -i *.deb" works fine and i control which 
>> features to use and which not from config file. Otherwise just install 
>> whatever seems appropriate to you, don't worry dpkg will install other 
>> ngcp-* packages as needed.
>> 
>> Hope this helps.
>> 
>> 
>>> On Mon, 10 Feb 2020, 11:03 Voip support,  wrote:
>>> Dear Community,
>>> 
>>> I would like to use rtpengine but had a very hard time to do the 
>>> compilation under ubuntu 16.04 and 18.04. 
>>> 
>>> On Ubuntu 18.04 after already compiled the rtpengine i was unable to 
>>> install the deb packages.
>>> Many different errors occurred.
>>> 
>>> I finally tried to install RTP engine on debian 10 and i was able to 
>>> install it.
>>> 
>>> I am thinking of 2 use scenarios: 
>>> - handling many concurrent calls like using rtpproxy for normall traffic
>>> - make WebRTC to legacy RTP transcoding (convert WebRTC SDP to legacy SDP 
>>> to use with non webrtc compliant sip server)
>>> 
>>> For the first scenario i imagine that it would be far better to run 
>>> in-kernel mode because of performance.
>>> 
>>> For the second scenario i think userspace daemon should be fine ( i expect 
>>> not much traffic maximum 50-100 calls).
>>> 
>>> However my question is what is the correct order of installing the deb 
>>> packages.
>>> Which packages do i really need.   
>>> 
>>> For running rtpengine in docker could i use Debian 10 OS and compile 
>>> rtpengine and install just 
>>> "ngcp-rtpengine-daemon_6.2.0.0+0~mr6.2.0.0_amd64.deb" ? (the in this case 
>>> the host running docker can be any linux distribution?)
>>> 
>>> If i would like to run rtpengine in docker in kernel mode - is it possible 
>>> or i need to use same linux distribution in host and docker container 
>>> (because of the kernel match?)
>>> 
>>> Best regards,
>>> Tom
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] RTP Engine in docker

2020-02-10 Thread Sergey Safarov
> enable 1-to-1 NAT for RTP port range between host and vm (i recommend
using iptables for this instead of using docker port expose feature).
More simple start container with host network

On Mon, Feb 10, 2020 at 7:02 PM M S  wrote:

> You would need to install kernel module in host machine, only then it will
> be available in docker container. You will also need to mark container as
> privileged container and enable 1-to-1 NAT for RTP port range between host
> and vm (i recommend using iptables for this instead of using docker port
> expose feature).
>
> Regarding RTPE compilation, yes it is quite difficult on Ubuntu 18.04. You
> have to tweak /debian/control file and manually add compat file.
> Also there are various dependencies that are not listed in wiki and cause
> problem in installation of deb packages, which you can install later on
> after reading the error messages.
>
> As for install order, for me "dpkg -i *.deb" works fine and i control
> which features to use and which not from config file. Otherwise just
> install whatever seems appropriate to you, don't worry dpkg will install
> other ngcp-* packages as needed.
>
> Hope this helps.
>
>
> On Mon, 10 Feb 2020, 11:03 Voip support,  wrote:
>
>> Dear Community,
>>
>> I would like to use rtpengine but had a very hard time to do the
>> compilation under ubuntu 16.04 and 18.04.
>>
>> On Ubuntu 18.04 after already compiled the rtpengine i was unable to
>> install the deb packages.
>> Many different errors occurred.
>>
>> I finally tried to install RTP engine on debian 10 and i was able to
>> install it.
>>
>> I am thinking of 2 use scenarios:
>> - handling many concurrent calls like using rtpproxy for normall traffic
>> - make WebRTC to legacy RTP transcoding (convert WebRTC SDP to legacy SDP
>> to use with non webrtc compliant sip server)
>>
>> For the first scenario i imagine that it would be far better to run
>> in-kernel mode because of performance.
>>
>> For the second scenario i think userspace daemon should be fine ( i
>> expect not much traffic maximum 50-100 calls).
>>
>> However my question is what is the correct order of installing the deb
>> packages.
>> Which packages do i really need.
>>
>> For running rtpengine in docker could i use Debian 10 OS and compile
>> rtpengine and install just "
>> ngcp-rtpengine-daemon_6.2.0.0+0~mr6.2.0.0_amd64.deb" ? (the in this case
>> the host running docker can be any linux distribution?)
>>
>> If i would like to run rtpengine in docker in kernel mode - is it
>> possible or i need to use same linux distribution in host and docker
>> container (because of the kernel match?)
>>
>> Best regards,
>> Tom
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] RTP Engine in docker

2020-02-10 Thread M S
You would need to install kernel module in host machine, only then it will
be available in docker container. You will also need to mark container as
privileged container and enable 1-to-1 NAT for RTP port range between host
and vm (i recommend using iptables for this instead of using docker port
expose feature).

Regarding RTPE compilation, yes it is quite difficult on Ubuntu 18.04. You
have to tweak /debian/control file and manually add compat file.
Also there are various dependencies that are not listed in wiki and cause
problem in installation of deb packages, which you can install later on
after reading the error messages.

As for install order, for me "dpkg -i *.deb" works fine and i control which
features to use and which not from config file. Otherwise just install
whatever seems appropriate to you, don't worry dpkg will install other
ngcp-* packages as needed.

Hope this helps.


On Mon, 10 Feb 2020, 11:03 Voip support,  wrote:

> Dear Community,
>
> I would like to use rtpengine but had a very hard time to do the
> compilation under ubuntu 16.04 and 18.04.
>
> On Ubuntu 18.04 after already compiled the rtpengine i was unable to
> install the deb packages.
> Many different errors occurred.
>
> I finally tried to install RTP engine on debian 10 and i was able to
> install it.
>
> I am thinking of 2 use scenarios:
> - handling many concurrent calls like using rtpproxy for normall traffic
> - make WebRTC to legacy RTP transcoding (convert WebRTC SDP to legacy SDP
> to use with non webrtc compliant sip server)
>
> For the first scenario i imagine that it would be far better to run
> in-kernel mode because of performance.
>
> For the second scenario i think userspace daemon should be fine ( i expect
> not much traffic maximum 50-100 calls).
>
> However my question is what is the correct order of installing the deb
> packages.
> Which packages do i really need.
>
> For running rtpengine in docker could i use Debian 10 OS and compile
> rtpengine and install just "
> ngcp-rtpengine-daemon_6.2.0.0+0~mr6.2.0.0_amd64.deb" ? (the in this case
> the host running docker can be any linux distribution?)
>
> If i would like to run rtpengine in docker in kernel mode - is it possible
> or i need to use same linux distribution in host and docker container
> (because of the kernel match?)
>
> Best regards,
> Tom
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] RTP Engine in docker

2020-02-10 Thread Voip support
Dear Community,

I would like to use rtpengine but had a very hard time to do the
compilation under ubuntu 16.04 and 18.04.

On Ubuntu 18.04 after already compiled the rtpengine i was unable to
install the deb packages.
Many different errors occurred.

I finally tried to install RTP engine on debian 10 and i was able to
install it.

I am thinking of 2 use scenarios:
- handling many concurrent calls like using rtpproxy for normall traffic
- make WebRTC to legacy RTP transcoding (convert WebRTC SDP to legacy SDP
to use with non webrtc compliant sip server)

For the first scenario i imagine that it would be far better to run
in-kernel mode because of performance.

For the second scenario i think userspace daemon should be fine ( i expect
not much traffic maximum 50-100 calls).

However my question is what is the correct order of installing the deb
packages.
Which packages do i really need.

For running rtpengine in docker could i use Debian 10 OS and compile
rtpengine and install just "
ngcp-rtpengine-daemon_6.2.0.0+0~mr6.2.0.0_amd64.deb" ? (the in this case
the host running docker can be any linux distribution?)

If i would like to run rtpengine in docker in kernel mode - is it possible
or i need to use same linux distribution in host and docker container
(because of the kernel match?)

Best regards,
Tom
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users