When call is passed to failover trunk, I expected to see actual failover trunk name in CDR, also minutes are to be written to proper trunk.
However, it didn't happen. It looked like first trunk (which actually failed) was taken.
Please, consider the following patch (which is also available at
http://voip-trade.net/patch3.txt):
--- trunk/A2Billing_AGI/libs_a2billing/Class.RateEngine.php.orig 2006-12-25 17:06:58.000000000 +0500
+++ trunk/A2Billing_AGI/libs_a2billing/Class.RateEngine.php 2006-12-25 17:07:12.000000000 +0500
@@ -851,6 +851,12 @@
{
$destination=$old_destination;
+
+ ///////////////////////////
+ // set actual trunk to failover trunk
+ // Ilia Chipitsine <
[email protected]>
+ $this -> ratecard_obj[$k][$usetrunk] = $failover_trunk;
+ ///////////////////////////
$QUERY = "SELECT trunkprefix, providertech, providerip, removeprefix FROM cc_trunk WHERE id_trunk='$failover_trunk'";
$A2B->instance_table = new Table();