Dear A2Billing developers,
I may be wrong and I beg your pardon in advance if this is not a bug.
I have noticed that in a2billing_alarm.php and Admin Call reports, Average Length of the Call and ASR are provided.
I believe they calcuation for ALOC is wrong.
I see
$ALOC = $totaltime / ($totalsuccess + $totalfail);
which divides the total session time by all calls, failied or succeeded.
Since ALOC is a good indicator of route's voice quality, so this formula is wrong. Lets suppose a route has an ASR of 30% which means 70 calls failed but those 30 successful calls had good voice quality. lets say total connected time was 450 Minutes which means every call which got connected lasted 15 minutes. The low ASR could be due to capacity issues at providers end but it has a good voice quality.
Now using the above formular the ALOC comes out to be only 4.5 Minutes which doesn't show a very good voice quality?
So i would suggest changing the ALOC value to $ALOC = $totaltime / $totalsuccess;
please comment.
|