AFAIK, in simple words if you are forwarding the call to a provider and if
that one provider returns negative response you can reach into any of the
failure_route as per your script.

....
t_on_failure("carrier-fail");
t_relay()
...
then do logic in failure route.

OR

if(!t_relay())
{
           xlog("L_NOTICE","I couldnt send traffic to the destination now
try with other carrier\n");
           $avp(carrier_index) = $avp(carrier_index)  +1;
           route(send_to_carrier);
}


http://www.opensips.org/index.php?n=Resources.DocsCoreRoutes

Regards,
Sammy

Thats just an example so list spare me for the syntax and rest of the
exception handling.


On Wed, Feb 22, 2012 at 5:18 AM, Matt Riddell <[email protected]> wrote:

> On 21/02/12 9:33 PM, Matt Riddell wrote:
>
>> 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 providers after I've called load_balance().
>>
>
> I can see that I could do a failure_route if load_balance returns a
> negative but as far as I'm aware that only happens when all providers fail?
>
> True/false?
>
>
> --
> Cheers,
>
> Matt Riddell
> ______________________________**_________________
>
> http://www.venturevoip.com/**news.php<http://www.venturevoip.com/news.php>(Daily
>  Asterisk News)
> http://www.venturevoip.com/**pabx_on_disk.php<http://www.venturevoip.com/pabx_on_disk.php>(PABX
>  on a Disk)
> http://www.venturevoip.com/**exchange.php<http://www.venturevoip.com/exchange.php>(Full
>  ITSP Solution)
> http://www.venturevoip.com/cc.**php <http://www.venturevoip.com/cc.php>(Call 
> Centre Solutions)
>
> ______________________________**_________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-**bin/mailman/listinfo/users<http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to