<!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.2900.2627" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have some more information about this
issue. There are actually two problems.</FONT></DIV>
<DIV><FONT face=Arial size=2> First - When the 1st attempt fails because
connection was refused, connection timed out, or there was no route to
host, an error message as logged and the failure_route block is never
executed.</FONT></DIV>
<DIV><FONT face=Arial size=2> Second - When the 2nd or 3rd, etc
attempt fails due to a connection problem, an error is logged and only 30
seconds later the failure_route block is executed.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I would really appreciate if some body could
explain what is going on or point me in the right direction.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank You,</FONT></DIV>
<DIV><FONT face=Arial size=2>Dmitry</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=isakdim@gmail.com href="mailto:isakdim@gmail.com">Dmitry
Isakbayev</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=serusers@lists.iptel.org
href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, June 15, 2005 9:12
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> How to execute failure_route
block on tcp connect failure.</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am having a problem executing a failure_route
block when t_relay fails to establish a tcp connection. </FONT><FONT
face=Arial size=2>Everything works as expected when t_relay connects to a
proxy and receives back an error like 501. Is there a way
to configure t_relay to execute a failure_route block an a tcp connection
error?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank You in advance.</FONT></DIV>
<DIV><FONT face=Arial size=2>Dmitry</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here are the logs from connection failure
-</FONT></DIV>
<DIV>Jun 15 20:52:14 localhost ser[21870]: ERROR:
tcp_blocking_connect:<BR>SO_ERROR (111) Connection refused <BR>Jun 15 20:52:14
localhost ser[21870]: ERROR: tcpconn_connect:<BR>tcp_blocking_connect failed
<BR>Jun 15 20:52:14 localhost ser[21870]: ERROR: tcp_send: connect failed
<BR>Jun 15 20:52:14 localhost ser[21870]: msg_send: ERROR: tcp_send failed
<BR>Jun 15 20:52:14 localhost ser[21870]: ERROR: t_forward_nonack:
sending<BR>request failed <BR></DIV></BLOCKQUOTE></BODY></HTML>