<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
You have to catch the failure in failure_route, and based on the
status code ( 408 is internally generated by OpenSIPS in case no
reply, or other response codes that you want ), mark the trunk as
disabled, either by lb_disable() or ds_mark_dst(), and call again
the load_balance() or ds_select_dst() to let OpenSIPS choose another
destination.<br>
<br>
Regards,<br>
<br>
Vlad Paiu
<br>
OpenSIPS Developer
<br>
<a class="moz-txt-link-freetext"
href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a>
<br>
<br>
Pe 3/5/2012 9:54 PM, Faisal Rehman a scris:
<blockquote
cite="mid:1330977285.45359.YahooMailNeo@web46207.mail.sp1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:tahoma,
new york, times, serif;font-size:10pt">
<div style="font-family: tahoma, 'new york', times, serif;
font-size: 10pt; "><span>Hi Everyone,</span></div>
<div style="font-family: tahoma, 'new york', times, serif;
font-size: 10pt; "><span><br>
</span></div>
<div><span><font size="2">I have different sip trunks, I want to
implement the fail over solution with dispatcher/load
balancer. Means if call fails from one trunk/gateway, like
if we get 503 Service Un-available from one trunk call
should be routed to next trunk. Basic routing should be
handled from dispatcher but if the call is failed the call
should be routed to next trunk according to my dispatcher.
I want to implement both timer based and response based
fail over, so any suggestions for such implementation?</font></span></div>
<div><span><font size="2"><br>
</font></span></div>
<div style="font-family: tahoma, 'new york', times, serif;
font-size: 10pt; "> </div>
<div style="font-family: tahoma, 'new york', times, serif;
font-size: 10pt; ">Regards,<br>
<br>
</div>
<div style="font-family: tahoma, 'new york', times, serif;
font-size: 10pt; ">Faisal Rehman</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>