Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 1:52 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Difference in actual and charged call duaration
PostPosted: Sun Jun 12, 2011 10:44 am 
Offline

Joined: Mon May 30, 2011 5:35 am
Posts: 12
Hi,

I have
AsteriskNow1.7.1 / FreePBX 2.7.0.0
A2Billing 1.9.4 (Cuprum)

I have experienced difference in charged duration and actual call duration when testing on two SIP extensions. In all the calls I have attempted I can see the call duration in a2billing cdr is 6 or 7 seconds more than the actual call duration.

By actual call duration I mean the time between when B party picks up the call till the time B party Hangs up.

I am attaching asterisk logs for a call where the actual call duration was 31 seconds but a2billing cdr shows 37 seconds.

What is the cause of this difference. Is it possible to charge the calls according to exact call duration??

Also below is log selection showing the time from B party Answered till B party Hang up

-----------------------------------------------------------------------------------------------------------

[Jun 12 10:22:03] VERBOSE[12193] app_dial.c: -- SIP/4405842394-0000000c is ringing
[Jun 12 10:22:03] VERBOSE[12193] app_dial.c: -- Local/102@did-f592;2 requested special control 20, passing it to SIP/4405842394-0000000c
[Jun 12 10:22:03] VERBOSE[12193] app_dial.c: -- Local/102@did-f592;2 requested special control 20, passing it to SIP/4405842394-0000000c
[Jun 12 10:22:07] VERBOSE[12193] app_dial.c: -- SIP/4405842394-0000000c answered Local/102@did-f592;2
[Jun 12 10:22:07] VERBOSE[12193] res_agi.c: a2billing.php,1,did: file:Class.A2Billing.php - line:1292 - uniqueid:1307856121.23 - DIAL SIP/4405842394/102|60|HiL(3600000:61000:30000)
[Jun 12 10:22:08] VERBOSE[12193] res_agi.c: a2billing.php,1,did: file:Class.A2Billing.php - line:1304 - uniqueid:1307856121.23 - [SIP/4405842394/102 Friend][followme=1]:[ANSWEREDTIME=0-DIALSTATUS=ANSWER]
[Jun 12 10:22:08] VERBOSE[12193] res_agi.c: a2billing.php,1,did: file:Class.A2Billing.php - line:1323 - uniqueid:1307856121.23 - [A2Billing] DID call friend: dialstatus : ANSWER, answered time is 0
[Jun 12 10:22:08] VERBOSE[12193] res_agi.c: a2billing.php,1,did:
[Jun 12 10:22:08] VERBOSE[12193] res_agi.c: a2billing.php,1,did: file:Class.A2Billing.php - line:750 - uniqueid:1307856121.23 - [CARD STATUS UPDATE]
[Jun 12 10:22:08] VERBOSE[12193] res_agi.c: a2billing.php,1,did: file:Class.A2Billing.php - line:759 - uniqueid:1307856121.23 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse-1, credit=credit+0.25 WHERE username='4405842394']
[Jun 12 10:22:08] VERBOSE[12193] res_agi.c: -- <Local/102@did-f592;2>AGI Script a2billing.php completed, returning -1
[Jun 12 10:22:39] VERBOSE[10999] res_agi.c: a2billing.php: file:Class.RateEngine.php - line:1274 - uniqueid:1307856101.21 - DIAL LOCAL/102@did|60|HRrL(2400000:61000:30000)
[Jun 12 10:22:39] VERBOSE[10999] res_agi.c: a2billing.php: file:Class.RateEngine.php - line:1157 - uniqueid:1307856101.21 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse=inuse-1 WHERE id_trunk='5']
[Jun 12 10:22:39] VERBOSE[10999] res_agi.c: a2billing.php: file:Class.RateEngine.php - line:1422 - uniqueid:1307856101.21 - -> dialstatus : ANSWER, answered time is 37


Attachments:
callduration.zip [6.74 KiB]
Downloaded 553 times
Top
 Profile  
 
 Post subject: Re: Difference in actual and charged call duaration
PostPosted: Tue Jun 14, 2011 6:06 am 
Offline

Joined: Mon May 30, 2011 5:35 am
Posts: 12
Hi,

Can anyone comment on the above post please.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 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