2

I have setup kamailio 4.2 on an azure instance as server and for client I am using PJSIP library for Android and iOS applications. The voice calls seem to work well when both the devices are connected to the same network, however, either of the device connects to a different network (or when both the devices are in different networks), they are able to register on SIP server, and even call can be triggered and accepted between both the devices but there is no audio heard on either end.
* I have even setup rtpproxy.

Can anyone please help me?

Thanks in advance.

  • Can you take Wireshark traces for SIP call flow in both networks? In SIP parties negotiates about audio streams with SDP. You should pay attention to IP addresses in SDP if they are right. – hal Mar 23 '15 at 19:30

2 Answers2

1

Please check your IP address you have given in the kamailio configuration , use external IP address and not internal.

Pratibha sarve
  • 369
  • 2
  • 11
0

I also have faced the same issue. The only thing u need to do is install and configure rtpproxy correctly. Steps for configuring in Debian are as follows. 1) Install RTP proxy.

 sudo apt-get install rtpproxy

2) In Kamailio, make it listen to unix socket of rtpproxy, because by default kamailio expects UDP.

     vim /etc/kamailio/kamailio.cfg

instead of

 modparam("rtpproxy", "rtpproxy_sock", "udp:127.0.0.1:7722")

use

 modparam("rtpproxy", "rtpproxy_sock", "unix:/var/run/rtpproxy/rtpproxy.sock")

Be sure in the top of the same file if NAT def is given as follows :

#!KAMAILIO
#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_USRLOCDB
#!define WITH_PRESENCE
**#!define WITH_NAT**
#!define WITH_TLS
#!define WITH_ACCDB

3)now start rtpproxy

sudo service rtpproxy start

4)Restart Kamailio service

sudo service kamailio start

For a detailed explanation, I have googled and found a blog. Take a look on it at your ease. RTPproxy with ka

recnac
  • 3,744
  • 6
  • 24
  • 46
SAGAR BHOOSHAN
  • 309
  • 2
  • 11