Changeset 602
- Timestamp:
- 02/28/08 10:15:51 (9 months ago)
- Files:
-
- branches/1.3/A2Billing_AGI/libs_a2billing/Class.A2Billing.php (modified) (1 diff)
- branches/1.3/A2Billing_AGI/libs_a2billing/Class.RateEngine.php (modified) (1 diff)
- branches/1.3/a2billing.conf (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.3/A2Billing_AGI/libs_a2billing/Class.A2Billing.php
r574 r602 462 462 if(isset($this->config["agi-conf$idconfig"]['extracharge_did'])) $this->config["agi-conf$idconfig"]['extracharge_did'] = explode(",",$this->config["agi-conf$idconfig"]['extracharge_did']); 463 463 if(isset($this->config["agi-conf$idconfig"]['extracharge_fee'])) $this->config["agi-conf$idconfig"]['extracharge_fee'] = explode(",",$this->config["agi-conf$idconfig"]['extracharge_fee']); 464 if(isset($this->config["agi-conf$idconfig"]['extracharge_buyfee'])) { 465 $this->config["agi-conf$idconfig"]['extracharge_buyfee'] = explode(',',$this->config["agi-conf$idconfig"]['extracharge_buyfee']); 466 } else { 467 if(isset($this->config["agi-conf$idconfig"]['extracharge_fee'])) $this->config["agi-conf$idconfig"]['extracharge_buyfee'] = explode(',',$this->config["agi-conf$idconfig"]['extracharge_fee']); 468 } 464 469 465 470 if(isset($this->config["agi-conf$idconfig"]['international_prefixes'])) { branches/1.3/A2Billing_AGI/libs_a2billing/Class.RateEngine.php
r507 r602 270 270 { 271 271 $fee=$A2B->agiconfig['extracharge_fee'][array_search($A2B->dnid, $A2B->agiconfig['extracharge_did'])]; 272 $A2B -> debug( WRITELOG, $agi, __FILE__, __LINE__, "[CC_asterisk_rate-engine: Extracharge DID found: ".$A2B->dnid.", extra fee: ".$fee."]"); 272 $buyfee=$A2B->agiconfig['extracharge_buyfee'][array_search($A2B->dnid, $A2B->agiconfig['extracharge_did'])]; 273 $A2B -> debug( WRITELOG, $agi, __FILE__, __LINE__, "[CC_asterisk_rate-engine: Extracharge DID found: ".$A2B->dnid.", extra fee: ".$fee.", extra buy fee: ".$buyfee."]"); 273 274 for ($i=0; $i<count($this->ratecard_obj); $i++) 274 275 { 275 $this->ratecard_obj[$i][9] +=$ fee;276 $this->ratecard_obj[$i][9] +=$buyfee; 276 277 $this->ratecard_obj[$i][12]+=$fee; 277 278 } branches/1.3/a2billing.conf
r530 r602 604 604 ;extracharge_fee = 0.02,0.03 605 605 extracharge_fee = 606 ;extracharge_buyfee = 0.015,0.025 607 extracharge_buyfee = 606 608 607 609 ; List the prefixes that will be stripped off if the call plan requires it
