Search code examples
iosiphonevoippjsipkamailio

PJSIP Calls fail while calling a client over a different network


I have build a PJSIP app for VoIP. Which works well when trying to connect a client which is using the same network. I am maintaining the connection over TLS.

I have successfully configured RTPEnginge And using Kamailio 4.3 I have tried all the methods on the PJSIP help site for getting through NAT.

I am able to connect the call with a client but unable to hear any audio. Please help or suggest a way to solve this issue. Any help or guidance is much appreciated.


Solution

  • The exact reason could certainly be confirmed only by getting much more informations.

    However, from your description, you may be simply missing a RTP relay: kamailio usually requires rtpproxy to be installed.

    You will also need to configure kamailio (kamailio.cfg) to use rtpproxy.

    Here is the documentation for kamailio's rtpproxy module.