I need to configure kamailio to work within different networks and over internet. I tried lot of configurations but none works.
I configured kamailio as shown in this link! but doesn't work, I looked at tcp dump:
>>14:49:20.328121 IP 192.168.10.8.sip > 187.95.131.xxx.sip: SIP: REGISTER sip:187.95.131.166 SIP/2.0
>>14:49:24.331926 IP 192.168.10.8.sip > 187.95.131.xxx.sip: SIP: REGISTER sip:187.95.131.xxx SIP/2.0
The kamailio do not respond to client.
The configuration of kamailio is:
>> WITH_MYSQL
>> WITH_AUTH
>> WITH_USRLOCDB
>> WITH_NAT
>>...
>>alias=187.95.131.xxx:5060
>>...
everything like the link says.
and rtpproxy is running when called by kamailio:
>>13:39:35 firewall /usr/sbin/kamailio[15886]: INFO: rtpproxy [rtpproxy.c:1598]: rtpp_test(): rtp proxy <unix:/var/run/rtpproxy/rtpproxy.sock> found, support for it enabled
My network setup is:
internet <----> (firewall with kamailio) <---->(LAN0, LAN1, LAN2)
LAN0 = 192.168.2.0/24
LAN1 = 192.168.3.0/24
LAN3 = 192.168.10.0/24
The LANs don't talk with other. (except by firewall rules)
If setup kamailio to bind on all lan interfaces, the voip works only if the caller is on the same lan that receiver, but within different lans or over internet the sip registers but have no voice.
For tests, all incoming/outcoming udp connection on the internet interface and all udp forward between lans and internet interface are accepted.