Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 18, 2024 4:20 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: extracharge for dnid bug 1.3.2
PostPosted: Sat Feb 09, 2008 11:46 am 
Offline

Joined: Mon Feb 04, 2008 6:09 pm
Posts: 4
Location: Birmingham, UK
When setting extracharge_did extracharge_fee in a2billing.conf. It adds extra charge for dids when calltype is standard and works correctly. When calltype is didcall it does not add extracharge.

Have investigated a little and it turns out that in Class.RateEngine.php that variable $A2B->dnid is set to destination number not dnid that call came in on when this occurs.

Does anyone know where variable $A2B->dnid is set that is used in Class.RateEngine.php ??

Anyway thanks to all of you for your great work am still investigating.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 09, 2008 12:59 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Good catch, nins!
$A2B -> dnid is set at various points throughout the AGI script (A2Billing_AGI/a2billing.php), and is also used as $this -> dnid in Class.A2Billing.php.
I've had a brief look at DID mode (from line 327 of a2billing.php) and things seems to be handled differently than the other call modes, so be careful where you tread. :wink:


Top
 Profile  
 
 Post subject: fixed
PostPosted: Sun Feb 10, 2008 4:48 pm 
Offline

Joined: Mon Feb 04, 2008 6:09 pm
Posts: 4
Location: Birmingham, UK
got it working it does now add extra charge for did call.

Changed the following in Class.A2Billing.php :

Commented out line 675 which read

$this->destination = $this->dnid;

Changed line 1088

from

$this->dnid = $this->destination = $inst_listdestination[4];

to

$this->destination = $inst_listdestination[4];

Can someone check this did not affect something else, have checked standard call rating and didcall rating which are fine.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group