Hi,
Firewall (PFsense) does port forwarding:
inbound publicIP:5060 --> private ip (192.168.150.119)
inbound PublicIP:10000 to 20000 -> private ip (192.168.150.119)
The public ip is set in the config file (kamailio.cfg) and RTP proxy is started with
rtpproxy -A "private ip" -F -l "local ip" -m 10000 -M 20000 -s udp:*:7722 -d INFO
In the cfg file NATtin is defined. (define with_nat)
rtpproxy module is loaded.
This works for most audio situations, except with the carrier
Also very important: the carrier i am using for testing requires authentication, so I am using the uac module.
I can see the registration with the provider, i see the inbound call in kamailio, I see the inbound call in asterisk.
A connection is set up like it should, but then there is One way audio.
The weird thing is:
this route works without a problem: carrier --> FW -->kamailio --> (back through firewall) FW --> user subscribed to kamaiolio.
(which should imply the same NAT'ing problems?)
If you need more info, feel free to ask!
PS: What i haven't tried yet is to call from asterisk through kamailio to the carrier number, this is what i'll set up and test next)
Arnout