I have a working CID callback configuration, with the only exception that, if the initial callback does not go through due to a problem on the trunk I select for the A-Leg, the callback is finished, and logged as ERROR. Failover trunk is not being used.
I use a separate ratecard for the A-Leg and the trunk specified for the rates there indeed a has a failover trunk, in case the call does not go on the specified trunk.
Can anyone help me with that? I have looked at a2billing.php, and I think it might be related to what is going on in these lines:
Code:
// MAKE THE CALL
if ($RateEngine -> ratecard_obj[0][34]!='-1') {
$usetrunk = 34;
$usetrunk_failover = 1;
$RateEngine -> usedtrunk = $RateEngine -> ratecard_obj[0][34];
} else {
$usetrunk = 29;
$RateEngine -> usedtrunk = $RateEngine -> ratecard_obj[0][29];
$usetrunk_failover = 0;
}
However, I can't thoroughly understand it.
Help, anyone?
Thanks,
Burak