Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Mar 19, 2024 10:06 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Call Duration more than timelimit in DialCommand.
PostPosted: Sat Apr 01, 2017 7:10 am 
Offline

Joined: Thu Apr 21, 2011 5:22 pm
Posts: 106
Sessiontime for calls are more than timelimit in DialCommand. This is causing accounts balances to go negative because we are charging more than they were limited to use based on their balance. See below log file. User had balance that would allow only 360 seconds of talk time. But he talked for 375 seconds. Rounding to 60sec increments, he was billed for 420 seconds. He got charged for 420 seconds and that made his balance go negative. Will appreciate if anyone knows how to fix this.

Code:
a2billing.php,6: file:Class.RateEngine.php - line:1327 - uniqueid:1491025128.2465 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
a2billing.php,6: file:Class.RateEngine.php - line:1223 - uniqueid:1491025128.2465 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse = inuse + 1 WHERE id_trunk = '3']
    -- AGI Script Executing Application: (DIAL) Options: (SIP/XXXXX/XXXXXXXXXX,60,HL(360000:60000))
       > Limit Data for this call:
       [b]> timelimit      = 360000 ms (360.000 s)[/b]
       > play_warning   = 60000 ms (60.000 s)
       > play_to_caller = yes
       > play_to_callee = no
       > warning_freq   = 0 ms (0.000 s)
       > start_sound    =
       > warning_sound  = timeleft
       > end_sound      =
  == Using SIP RTP CoS mark 5
    -- Called SIP/XXXX/XXXXXXX
    -- SIP/XXXXXX-000005c8 is making progress passing it to SIP/7981024676-000005c7
       > 0x7fd9dc00ad20 -- Probation passed - setting RTP source address to XXXXXXX:20548
    ...

a2billing.php,6: file:Class.RateEngine.php - line:1336 - uniqueid:1491025128.2465 - DIAL SIP/XXXXXX/XXXXXXXX|60|HL([b]360000[/b]:60000)
a2billing.php,6: file:Class.RateEngine.php - line:1223 - uniqueid:1491025128.2465 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse = inuse - 1 WHERE id_trunk = '3']
a2billing.php,6: file:Class.RateEngine.php - line:1486 - uniqueid:1491025128.2465 - -> dialstatus : ANSWER, answered time is 375

a2billing.php,6: file:Class.RateEngine.php - line:1490 - uniqueid:1491025128.2465 - [USEDRATECARD=0]
a2billing.php,6: file:Class.RateEngine.php - line:1038 - uniqueid:1491025128.2465 - :[sessiontime:375 - id_cc_package_offer:-1 - package2apply:]


a2billing.php,6: file:Class.RateEngine.php - line:807 - uniqueid:1491025128.2465 - [CC_RATE_ENGINE_CALCULCOST: K=0 - CALLDURATION:375 - freetimetocall_used=0 - freetimetocall_left=0]
a2billing.php,6: file:Class.RateEngine.php - line:889 - uniqueid:1491025128.2465 - [b][TEMP - CC_RATE_ENGINE_CALCULCOST: 1. COST: -0.203]:[ (420/60) * 0.029 ][/b]
a2billing.php,6: file:Class.RateEngine.php - line:974 - uniqueid:1491025128.2465 - [b][CC_RATE_ENGINE_CALCULCOST: K=0 - BUYCOST:-0.029375 - SELLING COST:-0.203][/b]
a2billing.php,6: file:Class.RateEngine.php - line:1114 - uniqueid:1491025128.2465 - [CC_RATE_ENGINE_UPDATESYSTEM: usedratecard K=0 - (sessiontime=375 :: dialstatus=ANSWER :: buycost=0.029375 :: cost=-0.203 : signe_cc_call=+: signe=-)]
a2billing.php,6: file:Class.RateEngine.php - line:1174 - uniqueid:1491025128.2465 - [CC_asterisk_stop : SQL: DONE : result=1]



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 
Auto Dialer Software


All times are UTC


Who is online

Users browsing this forum: No registered users and 4 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group