Since you are on Amazon AWS, make sure that you advertise the instance public IP address in the listen parameter

listen=udp:private_ip:5060 advertise public_ip:5060

according to the default kamailio cfg rtpproxy will be applied if an INVITE request passes nat_uac_test("19")
https://kamailio.org/docs/modules/5.1.x/modules/nathelper.html#nathelper.f.nat_uac_test

make sure that rtpproxy is installed and running, you also need to set public IP address in the rtpproxy startup options. 


Regards,



Arsen Semionov
cell: +442035198881

On Tue, Mar 27, 2018 at 10:45 AM, Benjamin Marty <benjamin.marty@gmail.com> wrote:
Hi Arsen,

Thanks to clean up that understanding block :)

I still have a (little?) issue in my Installation. I installed the Kamailio with standard configuration and enabled "WITH_NAT".

If I now register two clients (both Zoiper) they try to do the RTP P2P to each other. But I want to process the RTP on the Server. What Parameter do I have to change?

Thanks

Benjamin

2018-03-27 8:07 GMT+02:00 Arsen <arsen.semionov@gmail.com>:
Hi Benjamin,

Yes, Kamailio is a SIP proxy and does not deal with RTP, so rptproxy is the tool to handle media traffic in your case. 
rtpproxy is not the only choice, you also can check rtpengine. https://github.com/sipwise/rtpengine


Regards,


Arsen Semionov

On Tue, Mar 27, 2018 at 8:54 AM, Benjamin Marty <benjamin.marty@gmail.com> wrote:
Hi,

I am new to Kamailio and coming a bit from the Asterisk side.
My goal is to set up a bunch of users on a Kamailio Instance on AWS EC2 and get them able to call each other and talk to each other over the Internet without P2P media stream.
Is rtpproxy the tool that enables that? As far my knowledge is right Kamailio isn't able to do any sort of RTP handling.

Regards, Benjamin

_______________________________________________
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