Hi, <br><br>I am working on configuring RTP Proxy. The problem I am having is that Openser will use rtp proxy to serve the rtp session even when both UAs and Openser are withing the same LAN. <br><br>Here is the openser.cfg I used:<br>
<br> if (nat_uac_test("19")) {
<br> if (method=="REGISTER") {
<br><br> fix_nated_register();
<br> } else {<br> fix_nated_contact();
<br> };
<br> setflag(5);
<br> };<br><br>Hre is a INVITE SIP packet from one of the UA:<br><br>U <a href="http://192.168.1.101:5062">192.168.1.101:5062</a> -> <a href="http://192.168.1.104:5060">192.168.1.104:5060</a><br> INVITE <a href="mailto:sip%3A1006@192.168.1.104">sip:1006@192.168.1.104</a> SIP/2.0..Via: SIP/2.0/UDP 192.168.1.101:5062;branch=z9hG4b<br>
K-220120f9..From: "1005" <<a href="mailto:sip%3A1005@192.168.1.104">sip:1005@192.168.1.104</a>>;tag=490c5d623d5acbf5o0..To: "1006" <si<br> <a href="mailto:p%3A1006@192.168.1.104">p:1006@192.168.1.104</a>>..Call-ID: 3e5720e1-bf774681@192.168.1.101..CSeq: 102 INVITE..Max-F<br>
orwards: 70..Proxy-Authorization: Digest username="1005",realm="<a href="http://192.168.1.104">192.168.1.104</a>",nonce="48<br> 4b3b51ea052f45482ef4fd26f00a14239c3465",uri="<a href="mailto:sip%3A1006@192.168.1.104">sip:1006@192.168.1.104</a>",algorithm=MD5,respo<br>
nse="d46ea7cd9781b9a1493e6eaf7b978086",qop=auth,nc=00000001,cnonce="676aa6d8"..Contact:<br> "1005" <<a href="http://sip:1005@192.168.1.101:5062">sip:1005@192.168.1.101:5062</a>>..Expires: 240..User-Agent: Sipura/SPA921-4.1.10(b).<br>
.Content-Length: 401..Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER..Con<br> tent-Type: application/sdp....v=0..o=- 26093424 26093424 IN IP4 192.168.1.101..s=-..c=IN<br> IP4 192.168.1.101..t=0 0..m=audio 16474 RTP/AVP 0 2 4 8 18 96 97 98 101..a=rtpmap:0 PCM<br>
U/8000..a=rtpmap:2 G726-32/8000..a=rtpmap:4 G723/8000..a=rtpmap:8 PCMA/8000..a=rtpmap:18<br> G729a/8000..a=rtpmap:96 G726-40/8000..a=rtpmap:97 G726-24/8000..a=rtpmap:98 G726-16/800<br> 0..a=rtpmap:101 telephone-event/8000..a=fmtp:101 0-15..a=ptime:30..a=sendrecv..<br>
#<br><br>I even tested with nat_uac_test("1") and nat_uac_test("2") and nat_uac_test("16") seperately and found that nat_uac_test("1") is return true, meaning that Openser detects a RFC1918 address in the Contact field. <br>
<br>If Openser is in the same LAN as the UA, then no rtp proxy should be utilized. Could someone please help me out to configure rtp proxy correctly?<br><br>I would appreciate any help in solving this problem.<br><br>Regards,<br>
Mark<br><br>