Using version 1.94 I set a retail rate on an inbound DID but records never get inserted. I set debug to 4 and noted the following SQL query in the log:
Code:
INSERT INTO cc_call ( uniqueid, sessionid, card_id, nasipaddress, starttime, sessiontime, real_sessiontime, calledstation, terminatecauseid, stoptime, sessionbill, id_tariffgroup, id_tariffplan, id_ratecard, id_trunk, src, sipiax, buycost, dnid) VALUES ('1326486258.25', 'SIP/192.168.2.5-09788398','3','',SUBDATE(CURRENT_TIMESTAMP, INTERVAL SECOND), '6', '', '', 1, now(), '0.003', '0', '0', '0', '0', 'Unknown', '7', '0', '8661234567')
Note the SUBDATE command is missing the interval in seconds of the A-leg ($aleg_answeredtime in line 1835 of Class.A2Billing.php.) Is there something I could have done in the setup to trigger this, or is it a known issue? Thanks.