<blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style>I can take care of the logic of changing the DB and resizing the load balancing rules but don't see how I can log the failures/failure codes for </span></blockquote>
<div><br></div>Yes why not, give it a try. If the carrier is already down in load-balancer list then it won't even try the itsp but if its available and return congestion you can definitely lock the response. <div><br>
</div><div>hmmm..give it a try first. Why don';t you try the LCR module for this ! usually load_balancer is used for distributed load to internal servers, but you are using inverse..</div><div>see this:
<a href="http://www.opensips.org/html/docs/modules/1.7.x/drouting.html">http://www.opensips.org/html/docs/modules/1.7.x/drouting.html</a> </div><div><br><br><div class="gmail_quote">On Wed, Feb 22, 2012 at 10:08 AM, Matt Riddell <span dir="ltr"><<a href="mailto:lists@venturevoip.com">lists@venturevoip.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 22/02/12 6:05 PM, Sammy Govind wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
AFAIK, in simple words if you are forwarding the call to a provider and<br>
if that one provider returns negative response you can reach into any of<br>
the failure_route as per your script.<br>
<br>
....<br>
t_on_failure("carrier-fail");<br>
t_relay()<br>
...<br>
then do logic in failure route.<br>
<br>
OR<br>
<br>
if(!t_relay())<br>
{<br>
xlog("L_NOTICE","I couldnt send traffic to the destination<br>
now try with other carrier\n");<br>
$avp(carrier_index) = $avp(carrier_index) +1;<br>
route(send_to_carrier);<br>
}<br>
</blockquote>
<br></div>
But can I do this with load_balance()?<div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
Cheers,<br>
<br>
Matt Riddell<br>
______________________________<u></u>_________________<br>
<br>
<a href="http://www.venturevoip.com/news.php" target="_blank">http://www.venturevoip.com/<u></u>news.php</a> (Daily Asterisk News)<br>
<a href="http://www.venturevoip.com/pabx_on_disk.php" target="_blank">http://www.venturevoip.com/<u></u>pabx_on_disk.php</a> (PABX on a Disk)<br>
<a href="http://www.venturevoip.com/exchange.php" target="_blank">http://www.venturevoip.com/<u></u>exchange.php</a> (Full ITSP Solution)<br>
<a href="http://www.venturevoip.com/cc.php" target="_blank">http://www.venturevoip.com/cc.<u></u>php</a> (Call Centre Solutions)<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<u></u>bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>