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
|