<div>Hi Inaki</div>
<div>&nbsp;</div>
<div>Here is the sip trace from b2bua to opensips.&nbsp; The contact in 200OK has public ip:</div>
<div>&nbsp;</div>
<div>U 233.32.345.5:5800 -&gt; <a href="http://192.168.1.101:5060">192.168.1.101:5060</a><br>SIP/2.0 200 OK.<br>Via: SIP/2.0/UDP <a href="http://192.168.1.101">192.168.1.101</a>;branch=z9hG4bK3ab5.9b17c4a1.0;received=233.32.345.5.<br>
Via: SIP/2.0/UDP 192.168.1.100:26682;received=<a href="http://116.24.163.21">116.24.163.21</a>;branch=z9hG4bK-d87543-1a09c008b901bc5c-1--d87543-;rport=2751.<br>Record-Route: &lt;sip:<a href="http://192.168.1.101">192.168.1.101</a>;lr=on;ftag=b81a6b5e;nat=yes&gt;.<br>
From: &quot;1000&quot; &lt;sip:1000@233.32.345.5:5060&gt;;tag=b81a6b5e.<br>To: &quot;0&quot; &lt;sip:0@233.32.345.5:5060&gt;;tag=Sy7K9eUFg61tB.<br>Call-ID: ODRiMGUzMGFiZDg2OGU0OGNiYmE0MWY5OWRkMTMxOTA..<br>CSeq: 2 INVITE.<br>
<font color="#ff9900">Contact: &lt;sip:mod_sofia@233.32.345.5:5800;transport=udp&gt;.<font color="#ff6666"></font><br></font>User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-10454M.<br>Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO.<br>
Supported: timer, precondition, path, replaces.<br>Allow-Events: talk.<br>Session-Expires: 120;refresher=uas.<br>Min-SE: 120.<br>Content-Type: application/sdp.<br>Content-Disposition: session.<br>Content-Length: 269.<br>.<br>
v=0.<br>o=FreeSWITCH 5494423604621376967 2638962022927722250 IN IP4 233.32.345.5.<br>s=FreeSWITCH.<br>c=IN IP4 233.32.345.5.<br>t=0 0.<br>m=audio 10272 RTP/AVP 0 101.<br>a=rtpmap:0 PCMU/8000.<br>a=rtpmap:101 telephone-event/8000.<br>
a=fmtp:101 0-16.<br>a=silenceSupp:off - - - -.<br>a=ptime:20.</div>
<div>&nbsp;</div>
<div>Here is the sip trace from opensips to xlite.&nbsp; The contact in 200OK has public ip:</div>
<div>U <a href="http://192.168.1.101:5060">192.168.1.101:5060</a> -&gt; <a href="http://116.24.163.21:2751">116.24.163.21:2751</a><br>SIP/2.0 200 OK.<br>Via: SIP/2.0/UDP 192.168.1.100:26682;received=<a href="http://116.24.163.21">116.24.163.21</a>;branch=z9hG4bK-d87543-1a09c008b901bc5c-1--d87543-;rport=2751.<br>
Record-Route: &lt;sip:<a href="http://192.168.1.101">192.168.1.101</a>;lr=on;ftag=b81a6b5e;nat=yes&gt;.<br>From: &quot;1000&quot; &lt;sip:1000@233.32.345.5:5060&gt;;tag=b81a6b5e.<br>To: &quot;0&quot; &lt;sip:0@233.32.345.5:5060&gt;;tag=Sy7K9eUFg61tB.<br>
Call-ID: ODRiMGUzMGFiZDg2OGU0OGNiYmE0MWY5OWRkMTMxOTA..<br>CSeq: 2 INVITE.<br><font color="#ff6666">Contact: &lt;sip:mod_sofia@233.32.345.5:5800;transport=udp&gt;.</font><br>User-Agent: FreeSWITCH-mod_sofia/1.0.trunk-10454M.<br>
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO.<br>Supported: timer, precondition, path, replaces.<br>Allow-Events: talk.<br>Session-Expires: 120;refresher=uas.<br>
Min-SE: 120.<br>Content-Type: application/sdp.<br>Content-Disposition: session.<br>Content-Length: 269.<br>.<br>v=0.<br>o=FreeSWITCH 5494423604621376967 2638962022927722250 IN IP4 233.32.345.5.<br>s=FreeSWITCH.<br>c=IN IP4 233.32.345.5.<br>
t=0 0.<br>m=audio 10272 RTP/AVP 0 101.<br>a=rtpmap:0 PCMU/8000.<br>a=rtpmap:101 telephone-event/8000.<br>a=fmtp:101 0-16.<br>a=silenceSupp:off - - - -.<br>a=ptime:20.<br><br></div>
<div>It looks to like it is fine.&nbsp; </div>
<div>&nbsp;</div>
<div>JB</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div class="gmail_quote">On Thu, Nov 27, 2008 at 10:48 PM, Iñaki Baz Castillo <span dir="ltr">&lt;<a href="mailto:ibc@aliax.net">ibc@aliax.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="Ih2E3d">El Jueves, 27 de Noviembre de 2008, Juan Backson escribió:<br></div>
<div class="Ih2E3d">&gt; In my onreply_route, I have:<br>&gt; &nbsp;<br>&gt; onreply_route[1] {<br>&gt; fix_nated_contact();<br>&gt; exit;<br>&gt;<br>&gt; }<br>&gt; &nbsp;<br>&gt; But that alone does not work.<br><br></div>Can you check it by doing a SIP capture? the Contact in 200 arriving to<br>
OpenSIPS will contain a private IP, while the Contact in 200 leaving OpenSIPS<br>will contain a public IP (should contain).<br><font color="#888888"><br>--<br></font>
<div>
<div></div>
<div class="Wj3C7c">Iñaki Baz Castillo<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>
</div></div></blockquote></div><br>