Star2Billing / a2billing

A2Billing is a telecom switch and billing system capable of providing and billing a range of telecom products and services to customers such as calling card products, residential and wholesale VoIP termination, DID resale and callback services.
www.asterisk2billing.org
Other
180 stars 175 forks source link

usedratecard is not set if the call fail #59

Closed kcardona closed 11 years ago

kcardona commented 11 years ago

Hello,

version 2.0.4

usedratecard is not set if the call fail,

the default value of usedratecard is an empty string line 75 file Class.RateEngine.php

$this->usedratecard = '';<<< line 75

$K = $this->usedratecard; << line 1018 in Class.RateEngine.php , set $K to an empty string

and all reference to $this->ratecard_obj[$K] doesn't work

I add this lines in the file Class.RateEngine.php in the line 1492 to fix the problem

$this->usedratecard = $k; $A2B->debug(DEBUG, $agi, FILE, LINE, "[USEDRATECARD - FAIL =" . $this->usedratecard . "]");

Regards Karel

areski commented 11 years ago

Thanks for the report, I think the following commit fix this issue.