[2025-11-08 00:00:06] Production.INFO: next invoice date [2025-11-08 00:00:06] Production.INFO: 2025-12-08 [2025-11-08 00:00:06] Production.INFO: getdaysdiff [2025-11-08 00:00:06] Production.INFO: +30 [2025-11-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (144,20,2,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:06] Production.INFO: next invoice date [2025-11-08 00:00:06] Production.INFO: 2025-12-08 [2025-11-08 00:00:06] Production.INFO: getdaysdiff [2025-11-08 00:00:06] Production.INFO: +30 [2025-11-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (211,11,1,30,30,'RMScheduler',2025-11-08 00:00:06,0,0,,,0) [2025-11-08 00:00:06] Production.INFO: next invoice date [2025-11-08 00:00:06] Production.INFO: 2025-12-08 [2025-11-08 00:00:06] Production.INFO: getdaysdiff [2025-11-08 00:00:06] Production.INFO: +30 [2025-11-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (211,13,2,30,30,'RMScheduler',2025-11-08 00:00:06,0,0,,,0) [2025-11-08 00:00:06] Production.INFO: next invoice date [2025-11-08 00:00:06] Production.INFO: 2025-12-08 [2025-11-08 00:00:06] Production.INFO: getdaysdiff [2025-11-08 00:00:06] Production.INFO: +30 [2025-11-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (219,11,1,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:06] Production.INFO: next invoice date [2025-11-08 00:00:06] Production.INFO: 2025-12-08 [2025-11-08 00:00:06] Production.INFO: getdaysdiff [2025-11-08 00:00:06] Production.INFO: +30 [2025-11-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (219,13,2,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:06] Production.INFO: next invoice date [2025-11-08 00:00:06] Production.INFO: 2025-12-08 [2025-11-08 00:00:06] Production.INFO: getdaysdiff [2025-11-08 00:00:06] Production.INFO: +30 [2025-11-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (220,11,1,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:06] Production.INFO: next invoice date [2025-11-08 00:00:06] Production.INFO: 2025-12-08 [2025-11-08 00:00:06] Production.INFO: getdaysdiff [2025-11-08 00:00:06] Production.INFO: +30 [2025-11-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (220,13,2,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:06] Production.INFO: next invoice date [2025-11-08 00:00:06] Production.INFO: 2025-12-08 [2025-11-08 00:00:06] Production.INFO: getdaysdiff [2025-11-08 00:00:06] Production.INFO: +30 [2025-11-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (221,11,1,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:06] Production.INFO: next invoice date [2025-11-08 00:00:06] Production.INFO: 2025-12-08 [2025-11-08 00:00:06] Production.INFO: getdaysdiff [2025-11-08 00:00:06] Production.INFO: +30 [2025-11-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (221,13,2,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:06] Production.INFO: next invoice date [2025-11-08 00:00:06] Production.INFO: 2025-12-08 [2025-11-08 00:00:06] Production.INFO: getdaysdiff [2025-11-08 00:00:06] Production.INFO: +30 [2025-11-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (222,11,1,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:06] Production.INFO: next invoice date [2025-11-08 00:00:06] Production.INFO: 2025-12-08 [2025-11-08 00:00:06] Production.INFO: getdaysdiff [2025-11-08 00:00:06] Production.INFO: +30 [2025-11-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (222,13,2,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:06] Production.INFO: next invoice date [2025-11-08 00:00:06] Production.INFO: 2025-12-08 [2025-11-08 00:00:06] Production.INFO: getdaysdiff [2025-11-08 00:00:06] Production.INFO: +30 [2025-11-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (223,11,1,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:06] Production.INFO: next invoice date [2025-11-08 00:00:06] Production.INFO: 2025-12-08 [2025-11-08 00:00:06] Production.INFO: getdaysdiff [2025-11-08 00:00:06] Production.INFO: +30 [2025-11-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (223,13,2,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:07] Production.INFO: next invoice date [2025-11-08 00:00:07] Production.INFO: 2025-12-08 [2025-11-08 00:00:07] Production.INFO: getdaysdiff [2025-11-08 00:00:07] Production.INFO: +30 [2025-11-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (224,11,1,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:07] Production.INFO: next invoice date [2025-11-08 00:00:07] Production.INFO: 2025-12-08 [2025-11-08 00:00:07] Production.INFO: getdaysdiff [2025-11-08 00:00:07] Production.INFO: +30 [2025-11-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (224,13,2,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:07] Production.INFO: next invoice date [2025-11-08 00:00:07] Production.INFO: 2025-12-08 [2025-11-08 00:00:07] Production.INFO: getdaysdiff [2025-11-08 00:00:07] Production.INFO: +30 [2025-11-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (227,11,1,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:07] Production.INFO: next invoice date [2025-11-08 00:00:07] Production.INFO: 2025-12-08 [2025-11-08 00:00:07] Production.INFO: getdaysdiff [2025-11-08 00:00:07] Production.INFO: +30 [2025-11-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:07] Production.INFO: next invoice date [2025-11-08 00:00:07] Production.INFO: 2025-12-08 [2025-11-08 00:00:07] Production.INFO: getdaysdiff [2025-11-08 00:00:07] Production.INFO: +30 [2025-11-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (233,16,1,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:07] Production.INFO: next invoice date [2025-11-08 00:00:07] Production.INFO: 2025-12-08 [2025-11-08 00:00:07] Production.INFO: getdaysdiff [2025-11-08 00:00:07] Production.INFO: +30 [2025-11-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (233,13,2,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:07] Production.INFO: next invoice date [2025-11-08 00:00:07] Production.INFO: 2025-12-08 [2025-11-08 00:00:07] Production.INFO: getdaysdiff [2025-11-08 00:00:07] Production.INFO: +30 [2025-11-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (238,16,1,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:07] Production.INFO: next invoice date [2025-11-08 00:00:07] Production.INFO: 2025-12-08 [2025-11-08 00:00:07] Production.INFO: getdaysdiff [2025-11-08 00:00:07] Production.INFO: +30 [2025-11-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (238,13,2,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:07] Production.INFO: next invoice date [2025-11-08 00:00:07] Production.INFO: 2025-12-08 [2025-11-08 00:00:07] Production.INFO: getdaysdiff [2025-11-08 00:00:07] Production.INFO: +30 [2025-11-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (227,16,1,30,30,'RMScheduler',2025-11-08 00:00:06,0,0,,,0) [2025-11-08 00:00:08] Production.INFO: next invoice date [2025-11-08 00:00:08] Production.INFO: 2025-12-08 [2025-11-08 00:00:08] Production.INFO: getdaysdiff [2025-11-08 00:00:08] Production.INFO: +30 [2025-11-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,30,30,'RMScheduler',2025-11-08 00:00:06,0,0,,,0) [2025-11-08 00:00:08] Production.INFO: next invoice date [2025-11-08 00:00:08] Production.INFO: 2025-12-08 [2025-11-08 00:00:08] Production.INFO: getdaysdiff [2025-11-08 00:00:08] Production.INFO: +30 [2025-11-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (242,16,1,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:08] Production.INFO: next invoice date [2025-11-08 00:00:08] Production.INFO: 2025-12-08 [2025-11-08 00:00:08] Production.INFO: getdaysdiff [2025-11-08 00:00:08] Production.INFO: +30 [2025-11-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (242,13,2,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:08] Production.INFO: next invoice date [2025-11-08 00:00:08] Production.INFO: 2025-12-08 [2025-11-08 00:00:08] Production.INFO: getdaysdiff [2025-11-08 00:00:08] Production.INFO: +30 [2025-11-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (243,16,1,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:08] Production.INFO: next invoice date [2025-11-08 00:00:08] Production.INFO: 2025-12-08 [2025-11-08 00:00:08] Production.INFO: getdaysdiff [2025-11-08 00:00:08] Production.INFO: +30 [2025-11-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (243,13,2,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:08] Production.INFO: next invoice date [2025-11-08 00:00:08] Production.INFO: 2025-12-08 [2025-11-08 00:00:08] Production.INFO: getdaysdiff [2025-11-08 00:00:08] Production.INFO: +30 [2025-11-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (245,16,1,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:08] Production.INFO: next invoice date [2025-11-08 00:00:08] Production.INFO: 2025-12-08 [2025-11-08 00:00:08] Production.INFO: getdaysdiff [2025-11-08 00:00:08] Production.INFO: +30 [2025-11-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (245,13,2,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:08] Production.INFO: next invoice date [2025-11-08 00:00:08] Production.INFO: 2025-12-08 [2025-11-08 00:00:08] Production.INFO: getdaysdiff [2025-11-08 00:00:08] Production.INFO: +30 [2025-11-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (231,16,1,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:09] Production.INFO: next invoice date [2025-11-08 00:00:09] Production.INFO: 2025-12-08 [2025-11-08 00:00:09] Production.INFO: getdaysdiff [2025-11-08 00:00:09] Production.INFO: +30 [2025-11-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (231,13,2,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:09] Production.INFO: next invoice date [2025-11-08 00:00:09] Production.INFO: 2025-12-08 [2025-11-08 00:00:09] Production.INFO: getdaysdiff [2025-11-08 00:00:09] Production.INFO: +30 [2025-11-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (250,16,1,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:09] Production.INFO: next invoice date [2025-11-08 00:00:09] Production.INFO: 2025-12-08 [2025-11-08 00:00:09] Production.INFO: getdaysdiff [2025-11-08 00:00:09] Production.INFO: +30 [2025-11-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (250,13,2,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:09] Production.INFO: next invoice date [2025-11-08 00:00:09] Production.INFO: 2025-12-08 [2025-11-08 00:00:09] Production.INFO: getdaysdiff [2025-11-08 00:00:09] Production.INFO: +30 [2025-11-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (251,16,1,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:09] Production.INFO: next invoice date [2025-11-08 00:00:09] Production.INFO: 2025-12-08 [2025-11-08 00:00:09] Production.INFO: getdaysdiff [2025-11-08 00:00:09] Production.INFO: +30 [2025-11-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (251,13,2,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:09] Production.INFO: next invoice date [2025-11-08 00:00:09] Production.INFO: 2025-12-08 [2025-11-08 00:00:09] Production.INFO: getdaysdiff [2025-11-08 00:00:09] Production.INFO: +30 [2025-11-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (254,16,1,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:09] Production.INFO: next invoice date [2025-11-08 00:00:09] Production.INFO: 2025-12-08 [2025-11-08 00:00:09] Production.INFO: getdaysdiff [2025-11-08 00:00:09] Production.INFO: +30 [2025-11-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (254,13,2,30,30,'RMScheduler',2025-11-08 00:00:06,1,0,,,0) [2025-11-08 00:00:11] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 21:00:11 [end_date_ymd] => 2025-11-08 00:00:11 [RateCDR] => 1 ) [2025-11-08 00:00:11] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-07 21:00:11' and `end` < '2025-11-08 00:00:11' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 00:00:23] Production.INFO: count ==1571 [2025-11-08 00:00:24] Production.ERROR: pbx CDR StartTime 2025-11-07 21:00:11 - End Time 2025-11-08 00:00:11 [2025-11-08 00:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16161577', 'tblTempUsageDetail_20' ) start [2025-11-08 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16161577', 'tblTempUsageDetail_20' ) end [2025-11-08 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16161577', 'tblTempVendorCDR_20' ) start [2025-11-08 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16161577', 'tblTempVendorCDR_20' ) end [2025-11-08 00:00:24] Production.INFO: ProcessCDR(1,16161577,1,1,2) [2025-11-08 00:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16161577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 00:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16161577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 00:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16161577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 00:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16161577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 00:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16161577', 'tblTempUsageDetail_20' ) start [2025-11-08 00:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16161577', 'tblTempUsageDetail_20' ) end [2025-11-08 00:00:36] Production.ERROR: pbx prc_insertCDR start [2025-11-08 00:00:37] Production.ERROR: pbx prc_insertCDR end [2025-11-08 00:00:44] Production.INFO: ==28515== Releasing lock... [2025-11-08 00:00:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 00:00:44] Production.INFO: 41.75 MB #Memory Used# [2025-11-08 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 22:00:06 [end_date_ymd] => 2025-11-08 01:00:06 [RateCDR] => 1 ) [2025-11-08 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-07 22:00:06' and `end` < '2025-11-08 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 01:00:19] Production.INFO: count ==909 [2025-11-08 01:00:19] Production.ERROR: pbx CDR StartTime 2025-11-07 22:00:06 - End Time 2025-11-08 01:00:06 [2025-11-08 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16161824', 'tblTempUsageDetail_20' ) start [2025-11-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16161824', 'tblTempUsageDetail_20' ) end [2025-11-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16161824', 'tblTempVendorCDR_20' ) start [2025-11-08 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16161824', 'tblTempVendorCDR_20' ) end [2025-11-08 01:00:19] Production.INFO: ProcessCDR(1,16161824,1,1,2) [2025-11-08 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16161824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 01:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16161824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 01:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16161824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 01:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16161824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 01:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16161824', 'tblTempUsageDetail_20' ) start [2025-11-08 01:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16161824', 'tblTempUsageDetail_20' ) end [2025-11-08 01:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-08 01:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-08 01:00:29] Production.INFO: ==730== Releasing lock... [2025-11-08 01:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 01:00:29] Production.INFO: 35.5 MB #Memory Used# [2025-11-08 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-07 23:00:06 [end_date_ymd] => 2025-11-08 02:00:06 [RateCDR] => 1 ) [2025-11-08 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-07 23:00:06' and `end` < '2025-11-08 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 02:00:18] Production.INFO: count ==805 [2025-11-08 02:00:18] Production.ERROR: pbx CDR StartTime 2025-11-07 23:00:06 - End Time 2025-11-08 02:00:06 [2025-11-08 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16162071', 'tblTempUsageDetail_20' ) start [2025-11-08 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16162071', 'tblTempUsageDetail_20' ) end [2025-11-08 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16162071', 'tblTempVendorCDR_20' ) start [2025-11-08 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16162071', 'tblTempVendorCDR_20' ) end [2025-11-08 02:00:18] Production.INFO: ProcessCDR(1,16162071,1,1,2) [2025-11-08 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16162071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 02:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16162071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 02:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16162071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 02:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16162071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 02:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16162071', 'tblTempUsageDetail_20' ) start [2025-11-08 02:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16162071', 'tblTempUsageDetail_20' ) end [2025-11-08 02:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-08 02:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-08 02:00:28] Production.INFO: ==5128== Releasing lock... [2025-11-08 02:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 02:00:28] Production.INFO: 34.25 MB #Memory Used# [2025-11-08 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 00:00:06 [end_date_ymd] => 2025-11-08 03:00:06 [RateCDR] => 1 ) [2025-11-08 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 00:00:06' and `end` < '2025-11-08 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 03:00:18] Production.INFO: count ==908 [2025-11-08 03:00:18] Production.ERROR: pbx CDR StartTime 2025-11-08 00:00:06 - End Time 2025-11-08 03:00:06 [2025-11-08 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16162317', 'tblTempUsageDetail_20' ) start [2025-11-08 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16162317', 'tblTempUsageDetail_20' ) end [2025-11-08 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16162317', 'tblTempVendorCDR_20' ) start [2025-11-08 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16162317', 'tblTempVendorCDR_20' ) end [2025-11-08 03:00:18] Production.INFO: ProcessCDR(1,16162317,1,1,2) [2025-11-08 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16162317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 03:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16162317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 03:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16162317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 03:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16162317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 03:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16162317', 'tblTempUsageDetail_20' ) start [2025-11-08 03:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16162317', 'tblTempUsageDetail_20' ) end [2025-11-08 03:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-08 03:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-08 03:00:28] Production.INFO: ==9572== Releasing lock... [2025-11-08 03:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 03:00:28] Production.INFO: 34.75 MB #Memory Used# [2025-11-08 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 01:00:07 [end_date_ymd] => 2025-11-08 04:00:07 [RateCDR] => 1 ) [2025-11-08 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 01:00:07' and `end` < '2025-11-08 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 04:00:19] Production.INFO: count ==819 [2025-11-08 04:00:19] Production.ERROR: pbx CDR StartTime 2025-11-08 01:00:07 - End Time 2025-11-08 04:00:07 [2025-11-08 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16162566', 'tblTempUsageDetail_20' ) start [2025-11-08 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16162566', 'tblTempUsageDetail_20' ) end [2025-11-08 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16162566', 'tblTempVendorCDR_20' ) start [2025-11-08 04:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16162566', 'tblTempVendorCDR_20' ) end [2025-11-08 04:00:20] Production.INFO: ProcessCDR(1,16162566,1,1,2) [2025-11-08 04:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16162566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 04:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16162566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 04:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16162566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 04:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16162566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 04:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16162566', 'tblTempUsageDetail_20' ) start [2025-11-08 04:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16162566', 'tblTempUsageDetail_20' ) end [2025-11-08 04:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-08 04:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-08 04:00:29] Production.INFO: ==14595== Releasing lock... [2025-11-08 04:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 04:00:29] Production.INFO: 34 MB #Memory Used# [2025-11-08 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 02:00:06 [end_date_ymd] => 2025-11-08 05:00:06 [RateCDR] => 1 ) [2025-11-08 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 02:00:06' and `end` < '2025-11-08 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 05:00:18] Production.INFO: count ==626 [2025-11-08 05:00:18] Production.ERROR: pbx CDR StartTime 2025-11-08 02:00:06 - End Time 2025-11-08 05:00:06 [2025-11-08 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16162814', 'tblTempUsageDetail_20' ) start [2025-11-08 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16162814', 'tblTempUsageDetail_20' ) end [2025-11-08 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16162814', 'tblTempVendorCDR_20' ) start [2025-11-08 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16162814', 'tblTempVendorCDR_20' ) end [2025-11-08 05:00:18] Production.INFO: ProcessCDR(1,16162814,1,1,2) [2025-11-08 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16162814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 05:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16162814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 05:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16162814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 05:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16162814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 05:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16162814', 'tblTempUsageDetail_20' ) start [2025-11-08 05:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16162814', 'tblTempUsageDetail_20' ) end [2025-11-08 05:00:27] Production.ERROR: pbx prc_insertCDR start [2025-11-08 05:00:27] Production.ERROR: pbx prc_insertCDR end [2025-11-08 05:00:27] Production.INFO: ==19447== Releasing lock... [2025-11-08 05:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 05:00:27] Production.INFO: 33.25 MB #Memory Used# [2025-11-08 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 03:00:06 [end_date_ymd] => 2025-11-08 06:00:06 [RateCDR] => 1 ) [2025-11-08 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 03:00:06' and `end` < '2025-11-08 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 06:00:18] Production.INFO: count ==272 [2025-11-08 06:00:18] Production.ERROR: pbx CDR StartTime 2025-11-08 03:00:06 - End Time 2025-11-08 06:00:06 [2025-11-08 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16163061', 'tblTempUsageDetail_20' ) start [2025-11-08 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16163061', 'tblTempUsageDetail_20' ) end [2025-11-08 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16163061', 'tblTempVendorCDR_20' ) start [2025-11-08 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16163061', 'tblTempVendorCDR_20' ) end [2025-11-08 06:00:18] Production.INFO: ProcessCDR(1,16163061,1,1,2) [2025-11-08 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16163061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 06:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16163061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 06:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16163061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 06:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16163061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16163061', 'tblTempUsageDetail_20' ) start [2025-11-08 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16163061', 'tblTempUsageDetail_20' ) end [2025-11-08 06:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-08 06:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-08 06:00:28] Production.INFO: ==23660== Releasing lock... [2025-11-08 06:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 06:00:28] Production.INFO: 30.5 MB #Memory Used# [2025-11-08 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 04:00:06 [end_date_ymd] => 2025-11-08 07:00:06 [RateCDR] => 1 ) [2025-11-08 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 04:00:06' and `end` < '2025-11-08 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 07:00:18] Production.INFO: count ==178 [2025-11-08 07:00:18] Production.ERROR: pbx CDR StartTime 2025-11-08 04:00:06 - End Time 2025-11-08 07:00:06 [2025-11-08 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16163307', 'tblTempUsageDetail_20' ) start [2025-11-08 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16163307', 'tblTempUsageDetail_20' ) end [2025-11-08 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16163307', 'tblTempVendorCDR_20' ) start [2025-11-08 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16163307', 'tblTempVendorCDR_20' ) end [2025-11-08 07:00:18] Production.INFO: ProcessCDR(1,16163307,1,1,2) [2025-11-08 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16163307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16163307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16163307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 07:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16163307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 07:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16163307', 'tblTempUsageDetail_20' ) start [2025-11-08 07:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16163307', 'tblTempUsageDetail_20' ) end [2025-11-08 07:00:25] Production.ERROR: pbx prc_insertCDR start [2025-11-08 07:00:25] Production.ERROR: pbx prc_insertCDR end [2025-11-08 07:00:25] Production.INFO: ==28148== Releasing lock... [2025-11-08 07:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 07:00:25] Production.INFO: 29.5 MB #Memory Used# [2025-11-08 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 05:00:06 [end_date_ymd] => 2025-11-08 08:00:06 [RateCDR] => 1 ) [2025-11-08 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 05:00:06' and `end` < '2025-11-08 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 08:00:18] Production.INFO: count ==198 [2025-11-08 08:00:18] Production.ERROR: pbx CDR StartTime 2025-11-08 05:00:06 - End Time 2025-11-08 08:00:06 [2025-11-08 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16163555', 'tblTempUsageDetail_20' ) start [2025-11-08 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16163555', 'tblTempUsageDetail_20' ) end [2025-11-08 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16163555', 'tblTempVendorCDR_20' ) start [2025-11-08 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16163555', 'tblTempVendorCDR_20' ) end [2025-11-08 08:00:18] Production.INFO: ProcessCDR(1,16163555,1,1,2) [2025-11-08 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16163555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 08:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16163555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 08:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16163555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 08:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16163555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 08:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16163555', 'tblTempUsageDetail_20' ) start [2025-11-08 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16163555', 'tblTempUsageDetail_20' ) end [2025-11-08 08:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-08 08:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-08 08:00:28] Production.INFO: ==32581== Releasing lock... [2025-11-08 08:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 08:00:28] Production.INFO: 29.75 MB #Memory Used# [2025-11-08 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 06:00:06 [end_date_ymd] => 2025-11-08 09:00:06 [RateCDR] => 1 ) [2025-11-08 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 06:00:06' and `end` < '2025-11-08 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 09:00:18] Production.INFO: count ==427 [2025-11-08 09:00:18] Production.ERROR: pbx CDR StartTime 2025-11-08 06:00:06 - End Time 2025-11-08 09:00:06 [2025-11-08 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16163802', 'tblTempUsageDetail_20' ) start [2025-11-08 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16163802', 'tblTempUsageDetail_20' ) end [2025-11-08 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16163802', 'tblTempVendorCDR_20' ) start [2025-11-08 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16163802', 'tblTempVendorCDR_20' ) end [2025-11-08 09:00:18] Production.INFO: ProcessCDR(1,16163802,1,1,2) [2025-11-08 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16163802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 09:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16163802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 09:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16163802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 09:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16163802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 09:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16163802', 'tblTempUsageDetail_20' ) start [2025-11-08 09:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16163802', 'tblTempUsageDetail_20' ) end [2025-11-08 09:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-08 09:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-08 09:00:28] Production.INFO: ==4460== Releasing lock... [2025-11-08 09:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 09:00:28] Production.INFO: 32 MB #Memory Used# [2025-11-08 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 07:00:06 [end_date_ymd] => 2025-11-08 10:00:06 [RateCDR] => 1 ) [2025-11-08 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 07:00:06' and `end` < '2025-11-08 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 10:00:18] Production.INFO: count ==1090 [2025-11-08 10:00:19] Production.ERROR: pbx CDR StartTime 2025-11-08 07:00:06 - End Time 2025-11-08 10:00:06 [2025-11-08 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16164049', 'tblTempUsageDetail_20' ) start [2025-11-08 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16164049', 'tblTempUsageDetail_20' ) end [2025-11-08 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16164049', 'tblTempVendorCDR_20' ) start [2025-11-08 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16164049', 'tblTempVendorCDR_20' ) end [2025-11-08 10:00:19] Production.INFO: ProcessCDR(1,16164049,1,1,2) [2025-11-08 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16164049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16164049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16164049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 10:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16164049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 10:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16164049', 'tblTempUsageDetail_20' ) start [2025-11-08 10:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16164049', 'tblTempUsageDetail_20' ) end [2025-11-08 10:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-08 10:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-08 10:00:30] Production.INFO: ==8817== Releasing lock... [2025-11-08 10:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 10:00:30] Production.INFO: 36.75 MB #Memory Used# [2025-11-08 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 08:00:06 [end_date_ymd] => 2025-11-08 11:00:06 [RateCDR] => 1 ) [2025-11-08 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 08:00:06' and `end` < '2025-11-08 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 11:00:18] Production.INFO: count ==1775 [2025-11-08 11:00:19] Production.ERROR: pbx CDR StartTime 2025-11-08 08:00:06 - End Time 2025-11-08 11:00:06 [2025-11-08 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16164296', 'tblTempUsageDetail_20' ) start [2025-11-08 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16164296', 'tblTempUsageDetail_20' ) end [2025-11-08 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16164296', 'tblTempVendorCDR_20' ) start [2025-11-08 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16164296', 'tblTempVendorCDR_20' ) end [2025-11-08 11:00:19] Production.INFO: ProcessCDR(1,16164296,1,1,2) [2025-11-08 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16164296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 11:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16164296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 11:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16164296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 11:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16164296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16164296', 'tblTempUsageDetail_20' ) start [2025-11-08 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16164296', 'tblTempUsageDetail_20' ) end [2025-11-08 11:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-08 11:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-08 11:00:30] Production.INFO: ==13538== Releasing lock... [2025-11-08 11:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 11:00:30] Production.INFO: 42 MB #Memory Used# [2025-11-08 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 09:00:07 [end_date_ymd] => 2025-11-08 12:00:07 [RateCDR] => 1 ) [2025-11-08 12:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 09:00:07' and `end` < '2025-11-08 12:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 12:00:19] Production.INFO: count ==2258 [2025-11-08 12:00:20] Production.ERROR: pbx CDR StartTime 2025-11-08 09:00:07 - End Time 2025-11-08 12:00:07 [2025-11-08 12:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16164543', 'tblTempUsageDetail_20' ) start [2025-11-08 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16164543', 'tblTempUsageDetail_20' ) end [2025-11-08 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16164543', 'tblTempVendorCDR_20' ) start [2025-11-08 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16164543', 'tblTempVendorCDR_20' ) end [2025-11-08 12:00:20] Production.INFO: ProcessCDR(1,16164543,1,1,2) [2025-11-08 12:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16164543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16164543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16164543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 12:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16164543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 12:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16164543', 'tblTempUsageDetail_20' ) start [2025-11-08 12:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16164543', 'tblTempUsageDetail_20' ) end [2025-11-08 12:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-08 12:00:32] Production.ERROR: pbx prc_insertCDR end [2025-11-08 12:00:32] Production.INFO: ==18467== Releasing lock... [2025-11-08 12:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 12:00:32] Production.INFO: 45.5 MB #Memory Used# [2025-11-08 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 10:00:05 [end_date_ymd] => 2025-11-08 13:00:05 [RateCDR] => 1 ) [2025-11-08 13:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 10:00:05' and `end` < '2025-11-08 13:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 13:00:18] Production.INFO: count ==2094 [2025-11-08 13:00:18] Production.ERROR: pbx CDR StartTime 2025-11-08 10:00:05 - End Time 2025-11-08 13:00:05 [2025-11-08 13:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16164789', 'tblTempUsageDetail_20' ) start [2025-11-08 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16164789', 'tblTempUsageDetail_20' ) end [2025-11-08 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16164789', 'tblTempVendorCDR_20' ) start [2025-11-08 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16164789', 'tblTempVendorCDR_20' ) end [2025-11-08 13:00:18] Production.INFO: ProcessCDR(1,16164789,1,1,2) [2025-11-08 13:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16164789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 13:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16164789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 13:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16164789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 13:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16164789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16164789', 'tblTempUsageDetail_20' ) start [2025-11-08 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16164789', 'tblTempUsageDetail_20' ) end [2025-11-08 13:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-08 13:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-08 13:00:29] Production.INFO: ==22818== Releasing lock... [2025-11-08 13:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 13:00:29] Production.INFO: 44 MB #Memory Used# [2025-11-08 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 11:00:06 [end_date_ymd] => 2025-11-08 14:00:06 [RateCDR] => 1 ) [2025-11-08 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 11:00:06' and `end` < '2025-11-08 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 14:00:18] Production.INFO: count ==1940 [2025-11-08 14:00:19] Production.ERROR: pbx CDR StartTime 2025-11-08 11:00:06 - End Time 2025-11-08 14:00:06 [2025-11-08 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16165037', 'tblTempUsageDetail_20' ) start [2025-11-08 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16165037', 'tblTempUsageDetail_20' ) end [2025-11-08 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16165037', 'tblTempVendorCDR_20' ) start [2025-11-08 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16165037', 'tblTempVendorCDR_20' ) end [2025-11-08 14:00:19] Production.INFO: ProcessCDR(1,16165037,1,1,2) [2025-11-08 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16165037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 14:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16165037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 14:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16165037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 14:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16165037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 14:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16165037', 'tblTempUsageDetail_20' ) start [2025-11-08 14:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16165037', 'tblTempUsageDetail_20' ) end [2025-11-08 14:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-08 14:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-08 14:00:30] Production.INFO: ==27197== Releasing lock... [2025-11-08 14:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 14:00:30] Production.INFO: 42.75 MB #Memory Used# [2025-11-08 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 12:00:06 [end_date_ymd] => 2025-11-08 15:00:06 [RateCDR] => 1 ) [2025-11-08 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 12:00:06' and `end` < '2025-11-08 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 15:00:18] Production.INFO: count ==1836 [2025-11-08 15:00:19] Production.ERROR: pbx CDR StartTime 2025-11-08 12:00:06 - End Time 2025-11-08 15:00:06 [2025-11-08 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16165284', 'tblTempUsageDetail_20' ) start [2025-11-08 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16165284', 'tblTempUsageDetail_20' ) end [2025-11-08 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16165284', 'tblTempVendorCDR_20' ) start [2025-11-08 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16165284', 'tblTempVendorCDR_20' ) end [2025-11-08 15:00:19] Production.INFO: ProcessCDR(1,16165284,1,1,2) [2025-11-08 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16165284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 15:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16165284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 15:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16165284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 15:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16165284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16165284', 'tblTempUsageDetail_20' ) start [2025-11-08 15:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16165284', 'tblTempUsageDetail_20' ) end [2025-11-08 15:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-08 15:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-08 15:00:31] Production.INFO: ==31686== Releasing lock... [2025-11-08 15:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 15:00:31] Production.INFO: 42.25 MB #Memory Used# [2025-11-08 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 13:00:06 [end_date_ymd] => 2025-11-08 16:00:06 [RateCDR] => 1 ) [2025-11-08 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 13:00:06' and `end` < '2025-11-08 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 16:00:18] Production.INFO: count ==1952 [2025-11-08 16:00:19] Production.ERROR: pbx CDR StartTime 2025-11-08 13:00:06 - End Time 2025-11-08 16:00:06 [2025-11-08 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16165531', 'tblTempUsageDetail_20' ) start [2025-11-08 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16165531', 'tblTempUsageDetail_20' ) end [2025-11-08 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16165531', 'tblTempVendorCDR_20' ) start [2025-11-08 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16165531', 'tblTempVendorCDR_20' ) end [2025-11-08 16:00:19] Production.INFO: ProcessCDR(1,16165531,1,1,2) [2025-11-08 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16165531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 16:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16165531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 16:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16165531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 16:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16165531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 16:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16165531', 'tblTempUsageDetail_20' ) start [2025-11-08 16:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16165531', 'tblTempUsageDetail_20' ) end [2025-11-08 16:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-08 16:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-08 16:00:31] Production.INFO: ==3721== Releasing lock... [2025-11-08 16:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 16:00:31] Production.INFO: 42.75 MB #Memory Used# [2025-11-08 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 14:00:06 [end_date_ymd] => 2025-11-08 17:00:06 [RateCDR] => 1 ) [2025-11-08 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 14:00:06' and `end` < '2025-11-08 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 17:00:19] Production.INFO: count ==2079 [2025-11-08 17:00:19] Production.ERROR: pbx CDR StartTime 2025-11-08 14:00:06 - End Time 2025-11-08 17:00:06 [2025-11-08 17:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16165777', 'tblTempUsageDetail_20' ) start [2025-11-08 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16165777', 'tblTempUsageDetail_20' ) end [2025-11-08 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16165777', 'tblTempVendorCDR_20' ) start [2025-11-08 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16165777', 'tblTempVendorCDR_20' ) end [2025-11-08 17:00:20] Production.INFO: ProcessCDR(1,16165777,1,1,2) [2025-11-08 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16165777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 17:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16165777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 17:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16165777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 17:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16165777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 17:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16165777', 'tblTempUsageDetail_20' ) start [2025-11-08 17:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16165777', 'tblTempUsageDetail_20' ) end [2025-11-08 17:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-08 17:00:32] Production.ERROR: pbx prc_insertCDR end [2025-11-08 17:00:32] Production.INFO: ==8131== Releasing lock... [2025-11-08 17:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 17:00:32] Production.INFO: 43.75 MB #Memory Used# [2025-11-08 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 15:00:06 [end_date_ymd] => 2025-11-08 18:00:06 [RateCDR] => 1 ) [2025-11-08 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 15:00:06' and `end` < '2025-11-08 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 18:00:19] Production.INFO: count ==2438 [2025-11-08 18:00:20] Production.ERROR: pbx CDR StartTime 2025-11-08 15:00:06 - End Time 2025-11-08 18:00:06 [2025-11-08 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16166022', 'tblTempUsageDetail_20' ) start [2025-11-08 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16166022', 'tblTempUsageDetail_20' ) end [2025-11-08 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16166022', 'tblTempVendorCDR_20' ) start [2025-11-08 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16166022', 'tblTempVendorCDR_20' ) end [2025-11-08 18:00:20] Production.INFO: ProcessCDR(1,16166022,1,1,2) [2025-11-08 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16166022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 18:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16166022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 18:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16166022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 18:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16166022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 18:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16166022', 'tblTempUsageDetail_20' ) start [2025-11-08 18:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16166022', 'tblTempUsageDetail_20' ) end [2025-11-08 18:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-08 18:00:33] Production.ERROR: pbx prc_insertCDR end [2025-11-08 18:00:33] Production.INFO: ==12716== Releasing lock... [2025-11-08 18:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 18:00:33] Production.INFO: 46.5 MB #Memory Used# [2025-11-08 19:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 16:00:07 [end_date_ymd] => 2025-11-08 19:00:07 [RateCDR] => 1 ) [2025-11-08 19:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 16:00:07' and `end` < '2025-11-08 19:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 19:00:19] Production.INFO: count ==2580 [2025-11-08 19:00:20] Production.ERROR: pbx CDR StartTime 2025-11-08 16:00:07 - End Time 2025-11-08 19:00:07 [2025-11-08 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16166269', 'tblTempUsageDetail_20' ) start [2025-11-08 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16166269', 'tblTempUsageDetail_20' ) end [2025-11-08 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16166269', 'tblTempVendorCDR_20' ) start [2025-11-08 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16166269', 'tblTempVendorCDR_20' ) end [2025-11-08 19:00:20] Production.INFO: ProcessCDR(1,16166269,1,1,2) [2025-11-08 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16166269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 19:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16166269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 19:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16166269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 19:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16166269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 19:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16166269', 'tblTempUsageDetail_20' ) start [2025-11-08 19:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16166269', 'tblTempUsageDetail_20' ) end [2025-11-08 19:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-08 19:00:32] Production.ERROR: pbx prc_insertCDR end [2025-11-08 19:00:32] Production.INFO: ==17342== Releasing lock... [2025-11-08 19:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 19:00:32] Production.INFO: 47.75 MB #Memory Used# [2025-11-08 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 17:00:07 [end_date_ymd] => 2025-11-08 20:00:07 [RateCDR] => 1 ) [2025-11-08 20:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 17:00:07' and `end` < '2025-11-08 20:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 20:00:20] Production.INFO: count ==2475 [2025-11-08 20:00:21] Production.ERROR: pbx CDR StartTime 2025-11-08 17:00:07 - End Time 2025-11-08 20:00:07 [2025-11-08 20:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16166516', 'tblTempUsageDetail_20' ) start [2025-11-08 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16166516', 'tblTempUsageDetail_20' ) end [2025-11-08 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16166516', 'tblTempVendorCDR_20' ) start [2025-11-08 20:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16166516', 'tblTempVendorCDR_20' ) end [2025-11-08 20:00:21] Production.INFO: ProcessCDR(1,16166516,1,1,2) [2025-11-08 20:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16166516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 20:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16166516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 20:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16166516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 20:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16166516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 20:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16166516', 'tblTempUsageDetail_20' ) start [2025-11-08 20:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16166516', 'tblTempUsageDetail_20' ) end [2025-11-08 20:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-08 20:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-08 20:00:31] Production.INFO: ==21675== Releasing lock... [2025-11-08 20:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 20:00:31] Production.INFO: 46.75 MB #Memory Used# [2025-11-08 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 18:00:06 [end_date_ymd] => 2025-11-08 21:00:06 [RateCDR] => 1 ) [2025-11-08 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 18:00:06' and `end` < '2025-11-08 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 21:00:19] Production.INFO: count ==2159 [2025-11-08 21:00:20] Production.ERROR: pbx CDR StartTime 2025-11-08 18:00:06 - End Time 2025-11-08 21:00:06 [2025-11-08 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16166763', 'tblTempUsageDetail_20' ) start [2025-11-08 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16166763', 'tblTempUsageDetail_20' ) end [2025-11-08 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16166763', 'tblTempVendorCDR_20' ) start [2025-11-08 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16166763', 'tblTempVendorCDR_20' ) end [2025-11-08 21:00:20] Production.INFO: ProcessCDR(1,16166763,1,1,2) [2025-11-08 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16166763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 21:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16166763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 21:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16166763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 21:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16166763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 21:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16166763', 'tblTempUsageDetail_20' ) start [2025-11-08 21:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16166763', 'tblTempUsageDetail_20' ) end [2025-11-08 21:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-08 21:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-08 21:00:31] Production.INFO: ==27329== Releasing lock... [2025-11-08 21:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 21:00:31] Production.INFO: 44.5 MB #Memory Used# [2025-11-08 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 19:00:06 [end_date_ymd] => 2025-11-08 22:00:06 [RateCDR] => 1 ) [2025-11-08 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 19:00:06' and `end` < '2025-11-08 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 22:00:19] Production.INFO: count ==1742 [2025-11-08 22:00:19] Production.ERROR: pbx CDR StartTime 2025-11-08 19:00:06 - End Time 2025-11-08 22:00:06 [2025-11-08 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16167010', 'tblTempUsageDetail_20' ) start [2025-11-08 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16167010', 'tblTempUsageDetail_20' ) end [2025-11-08 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16167010', 'tblTempVendorCDR_20' ) start [2025-11-08 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16167010', 'tblTempVendorCDR_20' ) end [2025-11-08 22:00:19] Production.INFO: ProcessCDR(1,16167010,1,1,2) [2025-11-08 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16167010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 22:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16167010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 22:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16167010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 22:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16167010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 22:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16167010', 'tblTempUsageDetail_20' ) start [2025-11-08 22:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16167010', 'tblTempUsageDetail_20' ) end [2025-11-08 22:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-08 22:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-08 22:00:30] Production.INFO: ==32651== Releasing lock... [2025-11-08 22:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 22:00:30] Production.INFO: 41.25 MB #Memory Used# [2025-11-08 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-08 20:00:06 [end_date_ymd] => 2025-11-08 23:00:06 [RateCDR] => 1 ) [2025-11-08 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-11-08 20:00:06' and `end` < '2025-11-08 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-11-08 23:00:18] Production.INFO: count ==1357 [2025-11-08 23:00:19] Production.ERROR: pbx CDR StartTime 2025-11-08 20:00:06 - End Time 2025-11-08 23:00:06 [2025-11-08 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-08 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16167256', 'tblTempUsageDetail_20' ) start [2025-11-08 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16167256', 'tblTempUsageDetail_20' ) end [2025-11-08 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16167256', 'tblTempVendorCDR_20' ) start [2025-11-08 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16167256', 'tblTempVendorCDR_20' ) end [2025-11-08 23:00:19] Production.INFO: ProcessCDR(1,16167256,1,1,2) [2025-11-08 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16167256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 23:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16167256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-08 23:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16167256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 23:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16167256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-08 23:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16167256', 'tblTempUsageDetail_20' ) start [2025-11-08 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16167256', 'tblTempUsageDetail_20' ) end [2025-11-08 23:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-08 23:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-08 23:00:29] Production.INFO: ==5447== Releasing lock... [2025-11-08 23:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-08 23:00:29] Production.INFO: 38.25 MB #Memory Used#