Hello to all,
i have installed a2billing 1.3.0 with asterisk 1.2.7.1, i use eyebeam as voip software to call, there are 1 situation that a2billing don't log call duration, there are all logs:
If analog phone close connection, those are asterisk log (all ok):
-- Called voipcheap_trunk/00390812398318
-- SIP/voipcheap_trunk-081eaa38 is making progress passing it to SIP/0734479661-081e6ac8
-- SIP/voipcheap_trunk-081eaa38 answered SIP/0734479661-081e6ac8
a2billing.php: file:Class.RateEngine.php - line:1086 - -> dialstatus : ANSWER, answered time is 13
a2billing.php:
a2billing.php: file:Class.RateEngine.php - line:1090 - [USEDRATECARD=0]
a2billing.php: file:Class.RateEngine.php - line:777 - ft2c_package_offer : 0 ; ; 0
a2billing.php: file:Class.RateEngine.php - line:848 - [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 ('1204905455.0', 'SIP/0734479661-081e6ac8', '0734479661', '', CURRENT_TIMESTAMP - INTERVAL 13 SECOND , '13', '390812398318', 'ANSWER', now(), '2', '+2.4333', '', '', 'Destinazione Italia', '1', '1', '1', '3', '451843761767240', '0', '1', '0.5', '0')]
a2billing.php: file:Class.RateEngine.php - line:851 - [CC_asterisk_stop 1.1: SQL: DONE : result=1]
a2billing.php: file:Class.RateEngine.php - line:869 - [CC_asterisk_stop 1.2: SQL: UPDATE cc_card SET credit= credit-2.4333 , redial='390812398318' , lastuse=now(), nbused=nbused+1 WHERE username='0734479661']
a2billing.php: file:Class.RateEngine.php - line:874 - UPDATE cc_trunk SET secondusedreal = secondusedreal + 13 WHERE id_trunk='3'
a2billing.php: file:Class.RateEngine.php - line:878 - UPDATE cc_tariffplan SET secondusedreal = secondusedreal + 13 WHERE id='1'
a2billing.php: file:a2billing.php - line:309 - [a2billing account stop]
If eyebeam close connection with asterisk key, those are asterisk log (all ok):
-- Called voipcheap_trunk/00390812398318
-- SIP/voipcheap_trunk-081eae48 is making progress passing it to SIP/0734479661-081e6ac8
-- SIP/voipcheap_trunk-081eae48 answered SIP/0734479661-081e6ac8
a2billing.php: file:Class.RateEngine.php - line:1086 - -> dialstatus : ANSWER, answered time is 15
a2billing.php:
a2billing.php: file:Class.RateEngine.php - line:1090 - [USEDRATECARD=0]
a2billing.php: file:Class.RateEngine.php - line:777 - ft2c_package_offer : 0 ; ; 0
a2billing.php: file:Class.RateEngine.php - line:848 - [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 ('1204905581.2', 'SIP/0734479661-081e6ac8', '0734479661', '', CURRENT_TIMESTAMP - INTERVAL 15 SECOND , '15', '390812398318', 'ANSWER', now(), '2', '+2.5', '', '', 'Destinazione Italia', '1', '1', '1', '3', '451843761767240', '0', '1', '0.5', '0')]
a2billing.php: file:Class.RateEngine.php - line:851 - [CC_asterisk_stop 1.1: SQL: DONE : result=1]
a2billing.php: file:Class.RateEngine.php - line:869 - [CC_asterisk_stop 1.2: SQL: UPDATE cc_card SET credit= credit-2.5 , redial='390812398318' , lastuse=now(), nbused=nbused+1 WHERE username='0734479661']
a2billing.php: file:Class.RateEngine.php - line:874 - UPDATE cc_trunk SET secondusedreal = secondusedreal + 15 WHERE id_trunk='3'
a2billing.php: file:Class.RateEngine.php - line:878 - UPDATE cc_tariffplan SET secondusedreal = secondusedreal + 15 WHERE id='1'
a2billing.php: file:a2billing.php - line:309 - [a2billing account stop]
If eyebeam close connection with connection close key, those are asterisk log (bad, connection error, duration = 0 ):
-- Called voipcheap_trunk/00390812398318
-- SIP/voipcheap_trunk-081eac08 is making progress passing it to SIP/0734479661-081e6c98
-- SIP/voipcheap_trunk-081eac08 answered SIP/0734479661-081e6c98
== Spawn extension (a2billing, 0, 3) exited non-zero on 'SIP/0734479661-081e6c98'
there are any solution to this problem ?
Thanks
|