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(a)161.161.252.20
<mailto:Number@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.