Hi Somsak<br>The Same issue is faced , <br><br>The in ur FireWall/router, ...<br>In Router , openSER system is in DMZ mode, i'm Sure , Even through u did like that...<br><br>ADSL(A) Router is mis place the HeaderContact<br>
<br>Change the Router... with Support the SIP with NAT... Cisco , Linksys, Zoom,<br><br>can u check the Dialog file UAC ( x-lite 3.0) ... U can see there for invited... Ack and Bye Contact Header is misplacing into the private ip,,,,,,
<br><br>Keep OpenSER direct to the Internet ( for testing ) ............ <br>it will work finely........<br><br><div><span class="gmail_quote">On 12/2/06, <b class="gmail_sendername">somsak vattanavakin</b> <<a href="mailto:somsak@infowavenet.com">
somsak@infowavenet.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Dear All<br><br><br> i will setup openser behind NAT like these
<br><br><br><br> OPENSER ---> ADSL ROUTER(A) <---> INTERNET <---> ADSL ROUTER(B)<-- UAC(1)<br> <-- UAC(2)<br><br><br><br> for UAC to talk each others in the same network with OPENSER server and
<br>try to REGISTER AND INVITE IT OK .<br><br> but if i use UACs that located behind ADSL ROUTER(B) for REGISTER it OK<br>when UAC(1) INVITE UAC(2) it RING and session established can heard sound<br><br>but after about 30 second the CALLEE UAC(2) is HANG UP while CALLER UAC(1)
<br>still show established<br><br>i saw some mail said that the problem may occour from ADSL ROUTER ITSELF<br>(AGL problem)or some say that ACK problem. if i connect UAC(1) and UAC(2)<br>through ADSL ROUTER(B) to <a href="http://iptel.org">
iptel.org</a> and i use UAC(1) INVITE UAC(2) it work<br>no problem for 30 second disconnection . also if i use UAC(1) and UAC(2)<br>conect to <a href="http://iptel.org">iptel.org</a> through ADSL ROUTER(A) no problem . AT this point
<br>can I CONCLUDE THAT BOTH ADSL ROUTER NO PROBLEM FOR SIP CONNECTION. is it<br>TRUE ??<br><br><br> Next i saw from LOG file it seem no ACK MESSAGE and error like these<br>-- LOG FILE -------------<br>ERROR: tcp_blocking_connect: poll error: flags 18
<br>ERROR: tcp_blocking_connect: SO_ERROR (111) Connection refused<br>ERROR: tcpconn_connect: tcp_blocking_connect failed<br>ERROR: tcp_send: connect failed<br>---<br><br> for simply NAT testing i use openser.cfg like these
<br><br>---------- OPENSER.CFG ---------<br> if (!method=="REGISTER")<br> record_route();<br> if (loose_route()) {<br> # mark routing logic in request<br> append_hf("P-hint: rr-enforced\r\n");
<br> route(1);<br> };<br><br> if (!uri==myself) {<br> # mark routing logic in request<br> append_hf("P-hint: outbound\r\n");<br> route(1);<br> };<br><br> if (uri==myself) {
<br> if (method=="REGISTER") {<br><br> if (!www_authorize("<a href="http://infowavenet.com">infowavenet.com</a>", "subscriber")) {<br> www_challenge("
<a href="http://infowavenet.com">infowavenet.com</a>", "0");<br> exit;<br> };<br> fix_nated_register();<br> save("location");
<br> exec_msg("cat >> /tmp/test");<br> exit;<br> };<br><br> lookup("aliases");<br> if (!uri==myself) {<br>
append_hf("P-hint: outbound alias\r\n");<br> route(1);<br> };<br><br> # native SIP destinations are handled using our USRLOC DB<br> if (!lookup("location")) {
<br> sl_send_reply("404", "Not Found");<br> exit;<br> };<br> append_hf("P-hint: usrloc applied\r\n");<br> };
<br> route(1);<br>}<br><br><br>route[1] {<br> # send it out now; use stateful forwarding as it works reliably<br> # even for UDP2TCP<br> fix_nated_contact();<br> if(method == "INVITE")
<br> { fix_nated_sdp("3"); }<br> if (!t_relay()) {<br> sl_reply_error();<br> } else { exec_msg("cat >> /tmp/test");}<br> exit;<br>}<br>------------<br><br><br>
MY QUESTION:<br><br> 1) can openser server is BEHIND NAT ADSL ROUTER and receive Call from<br>UAC from other NAT ROUTER .<br><br> 2) if so what the problem that CALLEE HANGUP every 30 seconds<br> ( i use XLITE v.3 for UAC )
<br><br> 3) if it possible can you fix openser.cfg that work for this situation<br><br><br><br>Best<br><br>Somsak Vattanavakin<br><br>_______________________________________________<br>Users mailing list<br><a href="mailto:Users@openser.org">
Users@openser.org</a><br><a href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Thanks and Regards<br>Ravi Prakash Sunkara                
<br><a href="mailto:ravi.sunkara@hyperion-tech.com">ravi.sunkara@hyperion-tech.com</a>         <br>M:+91 9985077535<br>O:+91 40 23114549<br>F:+91 40 40208727                 <br><a href="mailto:ravi.sunkara@hyperion-tech.com">ravi.sunkara@hyperion-tech.com
</a><br><a href="http://www.hyperion-tech.com">www.hyperion-tech.com</a>