You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually, looking at the code I'm not sure now. I see the config being referenced as $this->agiconfig['answer_call'], $A2B->agiconfig['answer_call'] as well as $this->config['agiconf1']['answer_call'].
Probably the fix should just replace the reference to $A2B->agiconfig['answer_call'] with $this->agiconfig['answer_call'].
diff --git a/common/lib/Class.A2Billing.php b/common/lib/Class.A2Billing.php
index fe80988..7021b1b 100755
--- a/common/lib/Class.A2Billing.php+++ b/common/lib/Class.A2Billing.php@@ -1853,7 +1853,7 @@ class A2Billing {
# duration of the call for the A-Leg is since the start date
// SET CORRECTLY THE CALLTIME FOR THE 1st LEG
- if ($A2B -> agiconfig['answer_call'] == 1) {+ if ($this -> agiconfig['answer_call'] == 1) {
$aleg_answeredtime = time() - $this -> G_startime;
} else {
$aleg_answeredtime = $b_leg_answeredtime;
Function bill_did_aleg in Class.A2Billing.php needs $A2B to be declared so it can check the status of answer_call.
The text was updated successfully, but these errors were encountered: