Dear
Thanks for your quick reply and sorry for spamming your mailbox.
I am very confused about the setup of kamailio.cfg and rtpproxy. I have an existing kamailio 4.4 - rtpproxy running and I get the config files from both and setup the new vm. Just private connection works but the idea is to have connection from outside too. I am sure there is a mismatch with public ip, natting and/or setup of the vm hosts file.
- architecture:
*- 1x virtualbox* + 1x vm with bridge mode for network (get private ip address from the router). I suppose this is the PRIVATE_IP *+ 1x desktop (windows)* hosting a sipphone here Microsip ( https://www.microsip.org/) *- 1x modem/router* from the telecom provider - bbox-3V+ from PROXIMUS + forced in DMZ host the Kamailio server PRIVATE_IP
[image: 211001 - kamailio architecture and settings.png]
- the hosts file from Kamailio + rtpproxy is ( Maybe something is wrong or missing)
/etc/hosts
127.0.0.1 localhost
*/etc/kamailio/kamailio.cfg* kamailio.config
*Etc/default/rtpproxy*
PRIVATE_IP=192.168.1.19
- *Misconfiguring the VM*
That means do I need to use setup 1 or 2 or another
1. 2x NIC interfaces (one with private ip, second from dmz ip + NAT1:1 public ip) 2. 1x NIC interface (one private ip and natted 1:1 with public address)
- *test*
1. *use case 1 : *connect two (2x) sipphone from private network (included kamailio) = OK 2. *use case 2 :* connect one (1x) codec from private ip and one (1x) codec from public network (like mobile) = = issue - disconnect after 30 s (register expires) start a conversation with audio but the caller or the callee continues to send and INVITE message. 3. *use case 3 :* connect two (2x) sipphone from public network = issue - disconnect after 30 s (register expires) start a conversation with audio but the caller or the callee continue to send an INVITE message.
Best Regards,
Youssef BOUJRAF