INVITE not going to Kamailio server when client is under nat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


I am trying to call a contact via PJSIP but the INVITE request is not going through the server which is Kamailio. When I am in Mobile Data it works fine but when I am under WiFi which is NAT-ed it does not work. I am using PJSIP in my iOS application.
I am able to REGISTER the client via NAT-ed wifi but RTP Communication is not happening. I saw client private IP(192.168.X.X) in many places in the RTP log when the call is being tried to make. 

I cam to know that you can override that by 

acc_cfg.rtp_cfg.public_addr = pj_str("");

acc_cfg.rtp_cfg.port = 25314;

The above code changes the private IP showing in the RTP log but still it is not able to do INVITE request. When I am in mobile data it's able to send the INVITE request. What can be the reason for this? Please help, stuck for many days into this.

Visit our blog:

pjsip mailing list

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux