Disable stun and public ip address detection on xlite. Have it use the local IP address and that way opensips will use the source IP address. This usually fixes the problem.<div><br></div><div>In your messaging below it&#39;s not clear to what IP addresses/ports the messages are sent/received. This is the key and that&#39;s what you need to examine.</div>
<div><br></div><div>Regards,</div><div>Ali Pey</div><div><br><br><div class="gmail_quote">On Wed, Jul 11, 2012 at 5:20 PM, Ignacio Gonzalez <span dir="ltr">&lt;<a href="mailto:mylaneza@gmail.com" target="_blank">mylaneza@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everybody, I&#39;m trying to connect two sip clients, an xlite softphone behind a NAT and a Sip User Agent build with JAIN-SIP, this UA is in a host with a public IP. The JAIN Agent REGISTER successfully but when I use the xlite to call the agent, opensips does not redirect the OK response from the User Agent. Here are the SIP messages that the opensips proxy receive:<br>

<br>INVITE <a href="mailto:sip%3A2427002@domain.org" target="_blank">sip:2427002@domain.org</a> SIP/2.0<br>Via: SIP/2.0/UDP 189.181.48.143:1737;branch=z9hG4bK-d87543-db6cdc02d2345b76-1--d87543-;rport<br>Max-Forwards: 70<br>
Contact: &lt;<a href="http://sip:2427001@189.181.48.143:1737" target="_blank">sip:2427001@189.181.48.143:1737</a>&gt;<br>
To: &quot;2427002&quot;&lt;<a href="mailto:sip%3A2427002@domain.org" target="_blank">sip:2427002@domain.org</a>&gt;<br>From: &quot;2427001&quot;&lt;<a href="mailto:sip%3A2427001@domain.org" target="_blank">sip:2427001@domain.org</a>&gt;;tag=1d740661<br>

Call-ID: 406db678fb29d214MzFjY2NjYTIwNWFjZDQwNWFmNzQ0OGFjYzI0YzY4N2U.<br>CSeq: 1 INVITE<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO<br>Content-Type: application/sdp<br>User-Agent: X-Lite release 1002tx stamp 29712<br>

Content-Length: 847<br><br>v=0<br>o=- 3 2 IN IP4 189.181.48.143<br>s=&lt;CounterPath eyeBeam 1.5&gt;<br>c=IN IP4 189.181.48.143<br>t=0 0<br>m=audio 1742 RTP/AVP 107 119 0 98 8 3 101<br>a=alt:1 3 : DyqmwKwg iKJbLF1I 10.188.123.26 61510<br>

a=alt:2 2 : 9s6ct+vW fiwpiJbN 192.188.200.1 61510<br>a=alt:3 1 : JBvmcu7C aeAEMO9J 192.188.129.1 61510<br>a=fmtp:101 0-15<br>a=rtpmap:107 BV32/16000<br>a=rtpmap:119 BV32-FEC/16000<br>a=rtpmap:98 iLBC/8000<br>a=rtpmap:101 telephone-event/8000<br>

a=sendrecv<br>a=x-rtp-session-id:4E160A53513C4828AD841903785A5B73<br>m=video 1740 RTP/AVP 115 34<br>a=alt:1 3 : 7KF3a7ry trG+qu1k 10.188.123.26 48170<br>a=alt:2 2 : 7Or3DIwR SUvlz0xo 192.188.200.1 48170<br>a=alt:3 1 : Pe/okXax QdIQD2uP 192.188.129.1 48170<br>

a=fmtp:115 QCIF=1 MAXBR=1960<br>a=fmtp:34 QCIF=1 MAXBR=1960<br>a=rtpmap:115 H263-1998/90000<br>a=rtpmap:34 H263/90000<br>a=sendrecv<br>a=x-rtp-session-id:8EA1C094BF1E43718B27CF80B76C38EA<br><br><br>SIP/2.0 100 Giving a try<br>

Via: SIP/2.0/UDP 189.181.48.143:1737;received=189.181.48.143;branch=z9hG4bK-d87543-6b13cd3fa93abf2e-1--d87543-;rport=1737<br>To: &quot;2427002&quot;&lt;<a href="mailto:sip%3A2427002@domain.org" target="_blank">sip:2427002@domain.org</a>&gt;<br>

From: &quot;2427001&quot;&lt;<a href="mailto:sip%3A2427001@domain.org" target="_blank">sip:2427001@domain.org</a>&gt;;tag=1d740661<br>Call-ID: 406db678fb29d214MzFjY2NjYTIwNWFjZDQwNWFmNzQ0OGFjYzI0YzY4N2U.<br>CSeq: 1 INVITE<br>
Server: OpenSIPS (1.8.0-notls (i386/linux))<br>
Content-Length: 0<br><br><br>SIP/2.0 200 OK<br>To: &quot;2427002&quot; &lt;<a href="mailto:sip%3A2427002@domain.org" target="_blank">sip:2427002@domain.org</a>&gt;;tag=42e61ae4<br>CSeq: 2 INVITE<br>Call-ID: 406db678fb29d214MzFjY2NjYTIwNWFjZDQwNWFmNzQ0OGFjYzI0YzY4N2U.<br>

Via: SIP/2.0/UDP 189.181.48.143:1737;received=189.181.48.143;branch=z9hG4bK-d87543-6b13cd3fa93abf2e-1--d87543-;rport=1737<br>From: &quot;2427001&quot; &lt;<a href="mailto:sip%3A2427001@domain.org" target="_blank">sip:2427001@domain.org</a>&gt;;tag=1d740661<br>

Record-Route: &lt;sip:<a href="http://domain.org" target="_blank">domain.org</a>;lr;did=bcb.7d8c5155&gt;<br>Contact: &lt;sip:2427002@70.70.70.70:8000;lr&gt;<br>Content-Type: application/sdp<br>Content-Length: 196<br><br>
<br><br>v=0<br>o=- 0 0 IN IP4 70.70.70.70<br>
s=-<br>c=IN IP4 70.70.70.70<br>t=0 0<br>m=audio 50000 RTP/AVP 0<br>c=IN IP4 70.70.70.70<br>a=sendrecv<br>m=video 50010 RTP/AVP 34<br>a=sendonly<br>a=rtpmap:34 H263/90000<br><br><br>...  (retries OK messages)<br><br>Can any body tell me why xlite do not receive the OK response? or why opensips do not send the OK response?<br>

<br><br><br><br>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>