Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Mon Oct 21, 2019 1:38 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: UniqueID BUG
PostPosted: Sun Feb 18, 2007 8:12 pm 
Offline

Joined: Sun Feb 18, 2007 8:07 pm
Posts: 2
I am making report system using asterisk cdr records and a2billing cc_call records.
I tried to join those calls using uniqueid field that exists in both tables and found a bug in a2billing.php

there is line :

Code:
if ($i>0)   $A2B-> uniqueid=$A2B-> uniqueid+ 1000000000;


but uniqueid field is string not a float number and it gets distorted with this addition. Decimals are lost or zero at the end.

for example 1171468489.13458 , 1171472390.13698

Maybe code should use substring for this operation

Code:
if ($i>0)
{
    $unique_rest = substr($A2B-> uniqueid,1);
    $unique_num = substr($A2B-> uniqueid,0,1);
    $unique_num++;
    $A2B-> uniqueid = "$unique_num$unique_rest";
}


or something like this


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 18, 2007 8:56 pm 
Offline

Joined: Fri Apr 28, 2006 5:11 am
Posts: 426
Thank you, Robert!
Do you have working patch for this solution?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 18, 2007 9:42 pm 
Offline

Joined: Sun Feb 18, 2007 8:07 pm
Posts: 2
anest wrote:
Do you have working patch for this solution?


I am not directly in charge of a2billing part. System is live and I am waiting approval for the change.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 
Predictive Dialer


All times are UTC


Who is online

Users browsing this forum: No registered users and 3 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