<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.21264" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am trying to use TCP </FONT><FONT face=Arial
size=2>on OpenSIPS 1.6 (with PJSIP as client). Client successfully
registers and sends keep-alives to keep the TCP connection open. However, all
call attempts (or any other request) fail with a '477 Send Failed'. The logs
show this -</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Dec 8 06:58:18 ip-208-109-177-46
/usr/local/sbin/opensips[15463]: ERROR:core:tcp_blocking_connect: timeout 10 s
elapsed from 10 s<BR>Dec 8 06:58:18 ip-208-109-177-46
/usr/local/sbin/opensips[15463]: ERROR:core:tcpconn_connect:
tcp_blocking_connect failed<BR>Dec 8 06:58:18 ip-208-109-177-46
/usr/local/sbin/opensips[15463]: ERROR:core:tcp_send: connect
failed<BR>Dec 8 06:58:18 ip-208-109-177-46
/usr/local/sbin/opensips[15463]: ERROR:tm:msg_send: tcp_send
failed<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Client is behind a NAT so registers with contact
containing the private IP address. It seems that OpenSIPS is trying to connect
to the private IP address contained in the REGISTER request rather than reusing
the connection the request arrived on.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Is this a bug? Or is there a way to configure it to
use the established connection?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2>Anshuman</FONT></DIV>
<DIV> </DIV></BODY></HTML>