<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Prem,<br>
<br>
There are some things that you have to take care if you want TCP to
work:<br>
<br>
1) set the script parameter : tcp_accept_aliases = 1'<br>
2) the top most Via header in Register from the client must contain
'alias' parameter.&nbsp; To check this print the Register message from the
script: xlog("$mb\n"); If you don't see this parameter, you can fix it
from the server by calling force_tcp_alias() on that Register.<br>
3) the ip and port&nbsp; in the top most Via for Register must match exactly
the ip and port in the Contact header for tcp reusage to work.
Check this.<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">-- 
Anca Vamanu
<a class="moz-txt-link-abbreviated" href="http://www.voice-system.ro">www.voice-system.ro</a></pre>
<br>
<br>
On 07/26/2010 08:54 AM, Premalatha Kuppan wrote:
<blockquote
 cite="mid:AANLkTikNBGuQ939i+tce9=eX+qpU6c1BnOaRoitDZvfZ@mail.gmail.com"
 type="cite">Hi,<br>
  <br>
I have Integrated setup of Opensips(TLS) (1.6.2)) and Asterisk
(1.4.3.1). When i try to make call to TCP enabled client. The call
fails.<br>
  <br>
Below is the Error observed at Opensips.<br>
  <br>
Jul 23 13:54:45 204548-4 /usr/local/sbin/opensips[8374]
  <div>: new branch at
<a class="moz-txt-link-freetext" href="sip:999_456_1000@209.242.149.98:1036;transport=TCP">sip:999_456_1000@209.242.149.98:1036;transport=TCP</a><br>
Jul 23 13:54:55 204548-4 /usr/local/sbin/opensips[8374]:
ERROR:core:tcp_blocking_connect: timeout 10 s elapsed from 10 s<br>
Jul 23 13:54:55 204548-4 /usr/local/sbin/opensips[8374]:
ERROR:core:tcpconn_connect: tcp_blocking_connect failed<br>
Jul 23 13:54:55 204548-4 /usr/local/sbin/opensips[8374]:
ERROR:core:tcp_send: connect failed<br>
Jul 23 13:54:55 204548-4 /usr/local/sbin/opensips[8374]:
ERROR:tm:msg_send: tcp_send failed<br>
Jul 23 13:54:55 204548-4 /usr/local/sbin/opensips[8374]:
ERROR:tm:t_forward_nonack: sending request failed<br>
Jul 23 13:54:55 204548-4 /usr/local/sbin/opensips[8374]: ACC: call
missed:
timestamp=1279907695;method=INVITE;from_tag=as2bf86f8d;to_tag=;call_id=<a
 moz-do-not-send="true"
 href="mailto:6ef81f740f13e4d778513d1315fc76fc@204.12.57.221"
 target="_blank">6ef81f740f13e4d778513d1315fc76fc@204.12.57.221</a>;code=477;reason=Request
Failure<br>
Jul 23 13:54:57 204548-4 /usr/local/sbin/opensips[8374]: ACC:
transaction answered:
timestamp=1279907697;method=BYE;from_tag=as7d156ab4;to_tag=3488896563-937568;call_id=<a
 moz-do-not-send="true"
 href="mailto:11504845-3488896563-937560@sg2-lax.yourvoip.net"
 target="_blank">11504845-3488896563-937560@sg2-lax.yourvoip.net</a>;code=200;reason=OK<br>
  <br>
Any Insight ?<br>
  <br>
Thanks,<br>
Prem</div>
</blockquote>
</body>
</html>