Hello,
Hope you walk it with me here ..
I did not go through the whole file, i just jumped directly ot the end of the call where the CDR of A2B is written ,, the SQL statement :
First File :
Quote:
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, id_card_package_offer, dnid, destination) VALUES ('mydomain.com-1320748576.10', 'Local/7777@callingcard-67b2;2', '1', '', SUBDATE(CURRENT_TIMESTAMP, INTERVAL 1 SECOND) , '1', '1', '346*********', 1, now() , '+0.0925', '1', '17', '92652', '10', '1092', '0', '0.00096666666666667', NULL, 'unknown', '346')]
It is showing that the call took 1 sec
Second File :
Quote:
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, id_card_package_offer, dnid, destination) VALUES ('mydomain.com-1320748331.6', 'SIP/435657678-00000006', '1', '', SUBDATE(CURRENT_TIMESTAMP, INTERVAL 5 SECOND) , '5', '5', '346*********', 1, now() , '+0.0925', '1', '17', '92652', '10', '91********', '0', '0.0048333333333333', NULL, '346*********', '346')]
It is showing that the call took 5 sec
Do theses figures match your tests ?
Could you see the result of the two INSERT statements in the cc_call table ?
BTW : I use asterisk 1.8.2 in one of my servers and can still use the DeadAGI() ,,
deprecated (as I know it) means planned for future removal, but does not mean you can not use it now ,, I guess !
Regards