Hello;
you can use rtpproxy or rtpengine. you need to search how to use on google. rtpproxy/rtpengine fixes sdp packets that has tons of flags and there is a lot of option on sdpops module to change it. for example; you can check with nat_uac_client(8) and fix sdp with rptproxy_offer/rtpproxy_manage("cor") function.

there is 2-3 sample about it , here is kamailio doc how to use functions.

http://www.kamailio.org/docs/modules/4.3.x/modules/rtpproxy.html#idp2564344
http://www.kamailio.org/docs/modules/4.3.x/modules/nathelper.html#nathelper.f.nat_uac_test

-- samples ---
http://saevolgo.blogspot.com.tr/2013/08/rtpproxy-revisited-kamailio-40.html
http://www.fredposner.com/1457/kamailio-behind-nat/
http://nil.uniza.sk/sip/nat-fw/configuring-nat-traversal-using-kamailio-31-and-rtpproxy-server

Cheers.

2016-05-06 09:59 tarihinde 王欣鑫 [via SIP Router] yazdı:
Hello,ycaner!

Now I use a real IMS user data to register this user(for example 18616278715) to China Unicom's IMS through kamailio.

I can register successsfully, and can make call using this number, the callee can pick up phone. However
neither party can hear counter part.

So, this should be rtp problem. And I captured a .pcap file on port 5060 like below. In this, I see in SDP information
it says 192.168.199.124, it's a  private address. So maybe the callee can't setup a circuit to this ip, and thus no media was transfered?

Should I uncomment RTPPROXY_ADDRESS, as in my pcscf.cfg there are two lines. If I should do this, what ip and port should I use to replace "udp:10.1.2.186:22222 udp:10.1.27.217:22222" ?

# IP-Adress(es) of the RTP-Proxy
##!define RTPPROXY_ADDRESS "udp:10.1.2.186:22222 udp:10.1.27.217:22222"
##!define RTPPROXY_ADDRESS "udp:10.1.2.186:22222"

This is the .pcap file captured on port 5060.
5060.pcap





If you reply to this email, your message will be added to the discussion below:
http://sip-router.1086192.n5.nabble.com/User-offline-tp148166p148183.html
To unsubscribe from User offline, click here.
NAML

--


View this message in context: Re: User offline
Sent from the Users mailing list archive at Nabble.com.