[SR-Users] kamailio rtp connection
Pieter Muller
pieter at swishits.co.za
Fri Sep 28 11:47:12 CEST 2018
Thank you Daniel, I'm currently looking into your suggestion.
If I insert my public IP under:
# - start RTPProxy:
# rtpproxy -l _your_public_ip_ -s udp:localhost:7722
# - option for NAT SIP OPTIONS keepalives: WITH_NATSIPPING
Must I also modify UDP part below:
#!ifdef WITH_NAT
# ----- rtpproxy params -----
modparam("rtpproxy", "rtpproxy_sock", "udp:127.0.0.1:7722")
or can I leave it as is.
I have 1 NIC running private to VSP and 1NIC Public facing...So my mind is telling me to keep it as 127.0.0.1???
Regards
Pieter
-----Original Message-----
From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Daniel Tryba
Sent: Thursday, 27 September 2018 10:59 AM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.kamailio.org>
Subject: Re: [SR-Users] kamailio rtp connection
On Thu, Sep 27, 2018 at 10:03:24AM +0200, Pieter Muller wrote:
> VoIP Supplier (IP:161.161.252.20{Private Net}) ? Connect via routing
> to Kamailio Server(155.155.16.2 eno2{private Net}),Kamailio
> Server(187.221.197.252 eno1{public facing})?connect to PBX(public IP
> set in
> dispatcher) ? connect to RTP server(Public IP)
>
> Now the problem is that if you call in Number at 161.161.252.20
> <mailto:Number at 161.161.252.20> is send to kamailio, kamailio then
> sends it down to dispatcher IP and that PBX responds directly back via
> rtp server to 161.161.252.20. The 161.161.252.20 IP is private and
> cannot be reached from the cloud and vice versa . How do I get
> kamailio to be the middle man between 161.161.252.20 and RTP
> server(all traffic must go via the kamailio
> server) Is there specific modules I must load.
You need to use an RTP proxy to achieve this. So yes you need to load extra modules and configure kamailio for this proxying. If you take a look at https://github.com/kamailio/kamailio/blob/master/etc/kamailio.cfg
and search for rtpproxy. The really really short explanation:
you need to call rtpproxy_manage for calls that you want to rewrite rtp for.
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
More information about the sr-users
mailing list