Hello,
i am using a custom route on trixbox 2.2 ( Freepbx 2.2.1) to make calls via a2billing.
I am relying on caller id authentication
Calls are successful
But i have a problem which is that the duration( as specified in CDR) is ALWAYS either zero or one second
I noticed that as soon as the destination answers the call an INsert statement is being issued by rate engine.
I searched the forum, and upgraded accordingly to asterisk 1.2.24 and i also installed php-pcntl, but i am still experiencing the same problem
Please note that billing is correct when i directly use an a2billing sip friend.
billing is only wrong when i use a trixbox extension
any help is greatly appreciated . Please find the log below
a2billing.php: file:Class.A2Billing.php - line:1743 - [SET LANGUAGE() en]
a2billing.php: file:Class.A2Billing.php - line:635 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='3408130834']
a2billing.php: file:Class.A2Billing.php - line:1970 - [A2Billing] SAY BALANCE : 9.90000
a2billing.php:
a2billing.php: file:Class.A2Billing.php - line:1123 - [CURRENCY : USD]
a2billing.php: file:Class.A2Billing.php - line:1428 - [AUTO SetCallerID]
a2billing.php: file:Class.A2Billing.php - line:1434 - [REQUESTED SetCallerID : 199]
a2billing.php: file:Class.A2Billing.php - line:1445 - [EXEC SetCallerID : 199]
a2billing.php: file:a2billing.php - line:169 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:170 - [CREDIT : 9.90000][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php: file:Class.A2Billing.php - line:657 - 1 && && 10&& 0
a2billing.php: file:Class.A2Billing.php - line:682 - DESTINATION ::> 9613429689
a2billing.php: file:Class.A2Billing.php - line:684 - RULES APPLY ON DESTINATION ::> 9613429689
a2billing.php: file:Class.A2Billing.php - line:722 - OK - RESFINDRATE::> 1
a2billing.php: file:Class.A2Billing.php - line:744 - RES_ALL_CALCULTIMEOUT ::> 1
a2billing.php: file:Class.A2Billing.php - line:761 - TIMEOUT::> 11880 : minutes=198 - seconds=0
a2billing.php: file:Class.RateEngine.php - line:961 - app_callingcard: Dialing 'SIP/8943/9613429689|60|HRrL(11880000:61000:30000)' with timeout of '11880'.
a2billing.php:
a2billing.php: file:Class.RateEngine.php - line:986 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
a2billing.php: file:Class.RateEngine.php - line:1087 - -> dialstatus : ANSWER, answered time is 0
a2billing.php:
a2billing.php: file:Class.RateEngine.php - line:1091 - [USEDRATECARD=0]
a2billing.php: file:Class.RateEngine.php - line:849 - [CC_asterisk_stop QUERY = INSERT INTO cc_call (uniqueid,sessionid,username,nasipaddress,starttime,sessiontime, calledstation, terminatecause, stoptime, calledrate, sessionbill, calledcountry, calledsub, destination, id_tariffgroup, id_tariffplan, id_ratecard, id_trunk, src, sipiax, buyrate, buycost, id_card_package_offer) VALUES ('1195304958.37', 'Local/9613429689@a2billing-1622,2', '3408130834', '', CURRENT_TIMESTAMP - INTERVAL 0 SECOND , '0', '9613429689', 'ANSWER', now(), '0.05', '-0', '', '', 'all', '1', '1', '1', '1', '199', '0', '0', '0', '0')]
a2billing.php: file:Class.RateEngine.php - line:852 - [CC_asterisk_stop 1.1: SQL: DONE : result=1]
a2billing.php: file:a2billing.php - line:309 - [a2billing account stop]
a2billing.php: file:Class.A2Billing.php - line:635 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='3408130834']
|