[SR-Users] Kamailio as MS-Teams SBC

Davide Zanichelli dav.zanichelli at gmail.com
Tue Jan 19 14:17:33 CET 2021


Thanks for the advice now rtpengine works,

now i have to fix the inbound call setup, because my PBX is not replying to
the ms180 ringing,
so is there a way to handle the 180 ?
Thank You !

Davide



Il giorno mar 19 gen 2021 alle ore 13:16 Daniel-Constantin Mierla <
miconda at gmail.com> ha scritto:

> Hello,
>
> I built rtpengine deb packages for debian just a few days ago and all went
> fine. I used the file mr8.5.1.5.tar.gz from the github releases of
> rtpengine project.
>
> However, I noticed that some past releases fail to build because of the
> tests. I had to edit a bit the Makefile to disable the tests target.
>
> Cheers,
> Daniel
>
> On Tue, Jan 19, 2021 at 11:41 AM Terry Tailor <terry at fullduplex.co.uk>
> wrote:
>
>> Hi Davide may be it can help here is docker file for compiling and
>> running rtp engine
>>
>> file: Dockerfile
>> ---
>> FROM debian:stretch
>>
>> RUN apt-get update \
>>   && apt-get -y --quiet --force-yes upgrade curl iproute2 \
>>   && apt-get install -y --no-install-recommends ca-certificates gcc g++
>> make build-essential git iptables-dev libavfilter-dev \
>>   libevent-dev libpcap-dev libxmlrpc-core-c3-dev markdown \
>>   libjson-glib-dev default-libmysqlclient-dev libhiredis-dev libssl-dev \
>>   libcurl4-openssl-dev libavcodec-extra gperf libspandsp-dev
>> libwebsockets-dev\
>>   && cd /usr/local/src \
>>   && git clone https://github.com/sipwise/rtpengine.git \
>>   && cd rtpengine/daemon \
>>   && git checkout mr8.5 \
>>   && make && make install \
>>   && cp /usr/local/src/rtpengine/daemon/rtpengine
>> /usr/local/bin/rtpengine \
>>   && rm -Rf /usr/local/src/rtpengine \
>>   && apt-get purge -y --quiet --force-yes --auto-remove \
>>   ca-certificates gcc g++ make build-essential git markdown \
>>   && rm -rf /var/lib/apt/* \
>>   && rm -rf /var/lib/dpkg/* \
>>   && rm -rf /var/lib/cache/* \
>>   && rm -Rf /var/log/* \
>>   && rm -Rf /usr/local/src/* \
>>   && rm -Rf /var/lib/apt/lists/*
>>
>> VOLUME ["/tmp"]
>>
>> EXPOSE 12221/udp
>>
>> COPY ./entrypoint.sh /entrypoint.sh
>>
>> COPY ./rtpengine.conf /etc
>>
>> ENTRYPOINT ["/entrypoint.sh"]
>>
>> CMD ["rtpengine"]
>> ----
>>
>> file: entrypoint.sh
>> ---
>> #!/bin/bash
>> set -e
>>
>> PATH=/usr/local/bin:$PATH
>>
>> LOCAL_IP="$(ip route get 8.8.8.8 | head -1 | cut -d' ' -f7)"
>> PUBLIC_IP="$(curl ifconfig.me)";
>>
>> if [ -n "$PUBLIC_IP" ]; then
>>   MY_IP="$LOCAL_IP"!"$PUBLIC_IP"
>> else
>>   MY_IP=$LOCAL_IP
>> fi
>>
>> sed -i -e "s/MY_IP/$MY_IP/g" /etc/rtpengine.conf
>>
>> if [ "$1" = 'rtpengine' ]; then
>>   shift
>>   exec rtpengine --config-file /etc/rtpengine.conf  "$@"
>> fi
>>
>> exec "$@"
>> ---
>>
>> file: rtpengine.conf
>> ---
>> [rtpengine]
>> interface=MY_IP
>> foreground=true
>> log-stderr=true
>> listen-ng = 12221
>> port-min = 30000
>> port-max = 40000
>> recording-dir=/tmp
>> recording-method=pcap
>> recording-format=eth
>> log-level=6
>> delete-delay=0
>> ---
>>
>> file: docker-compose.yml
>> ---
>> version: '3.5'
>> services:
>>   rtpengine:
>>     build:
>>       context: ./
>>       dockerfile: Dockerfile
>>     restart: always
>>     network_mode: "host"
>>     tmpfs:
>>       - /tmp
>>     container_name: rtpengine
>>     hostname: rtpengin
>> ---
>>
>> Thanks,
>>
>> On Tue, Jan 19, 2021 at 3:08 PM Davide Zanichelli <
>> dav.zanichelli at gmail.com> wrote:
>>
>>> Thanks you for your answer !!!
>>>
>>> Which distro are you using?
>>> which karnel ?
>>> i ve tried with ubuntu 16.04 debian 10 or centos 7
>>> but fails
>>>
>>>
>>> thanks you !!!
>>>
>>> Davide
>>>
>>> Il giorno mar 19 gen 2021 alle ore 10:53 David Villasmil <
>>> david.villasmil.work at gmail.com> ha scritto:
>>>
>>>> The instructions to build rtpengine work, have you tried those?
>>>>
>>>> https://github.com/sipwise/rtpengine
>>>>
>>>> Take a look at the readme file. Last I used was v6 and that worked
>>>> properly for me.
>>>>
>>>> On Tue, 19 Jan 2021 at 09:38, Davide Zanichelli <
>>>> dav.zanichelli at gmail.com> wrote:
>>>>
>>>>> Thanks You for your answer !
>>>>> so can you give me a configuration template ?
>>>>>
>>>>> so if i understand correctly, for the srtp > rtp conversion, i should
>>>>> use a box (asterisk for example)
>>>>> in the middle,
>>>>>
>>>>> is there any alternative to rtpengine ?
>>>>>
>>>>> Thanks You
>>>>>
>>>>> Davide
>>>>>
>>>>> Il giorno mar 19 gen 2021 alle ore 09:55 Bugaian A. Vitalie <
>>>>> bugaian at gmail.com> ha scritto:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> its simple: They need srtp so you make your pbx to accept srtp,
>>>>>> or have a box(pbx) before it to accept srtp and terminate to your pbx
>>>>>> that does not suport srtp?...
>>>>>>
>>>>>> I had it working to kamailio and softphones.
>>>>>>
>>>>>> Vitalie.
>>>>>>
>>>>>> On Tue, Jan 19, 2021 at 10:43 AM Davide Zanichelli <
>>>>>> dav.zanichelli at gmail.com> wrote:
>>>>>>
>>>>>>> Hello everybody!
>>>>>>>
>>>>>>> i am trying a setup of kamailio like sbc for ms teams,
>>>>>>> I currently have the following scenario:
>>>>>>>
>>>>>>> TLS Connection OK
>>>>>>>
>>>>>>> Out Call ok (except BYE 481 on reply)
>>>>>>>
>>>>>>> my problem is in incoming calls
>>>>>>> microsoft only supports srtp
>>>>>>> and my pbx (freeswitch based) only works with rtp,
>>>>>>>
>>>>>>> now i was reading that you need to use rtpengine to manage srtp to
>>>>>>> rtp,
>>>>>>>
>>>>>>> unfortunately it seems that rtpengine has become very difficult to
>>>>>>> build especially with recent os,
>>>>>>> I was wondering if it is possible to have an alternative to
>>>>>>> rtpengine for managing the srtp (rtpproxy does not seem to work)
>>>>>>>
>>>>>>> has anyone managed to get a working setup?
>>>>>>>
>>>>>>> in case it is possible to send a configuration template?
>>>>>>>
>>>>>>> Thanks You !!!
>>>>>>>
>>>>>>> Davide
>>>>>>> _______________________________________________
>>>>>>> Kamailio (SER) - Users Mailing List
>>>>>>> sr-users at lists.kamailio.org
>>>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>>>
>>>>>> _______________________________________________
>>>>>> Kamailio (SER) - Users Mailing List
>>>>>> sr-users at lists.kamailio.org
>>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>>
>>>>> _______________________________________________
>>>>> Kamailio (SER) - Users Mailing List
>>>>> sr-users at lists.kamailio.org
>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>
>>>> --
>>>> Regards,
>>>>
>>>> David Villasmil
>>>> email: david.villasmil.work at gmail.com
>>>> phone: +34669448337
>>>> _______________________________________________
>>>> Kamailio (SER) - Users Mailing List
>>>> sr-users at lists.kamailio.org
>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing List
>> sr-users at lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
> --
> Daniel-Constantin Mierla - https://www.asipto.com
> https://twitter.com/miconda - https://www.linkedin.com/in/miconda
> Kamailio Advanced Training - https://www.asipto.com/u/kat
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210119/62655857/attachment.htm>


More information about the sr-users mailing list