[2025-09-08 00:25:04] Production.INFO: next invoice date [2025-09-08 00:25:04] Production.INFO: 2025-10-08 [2025-09-08 00:25:04] Production.INFO: getdaysdiff [2025-09-08 00:25:04] Production.INFO: +30 [2025-09-08 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (144,20,2,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:04] Production.INFO: next invoice date [2025-09-08 00:25:04] Production.INFO: 2025-10-08 [2025-09-08 00:25:04] Production.INFO: getdaysdiff [2025-09-08 00:25:04] Production.INFO: +30 [2025-09-08 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (211,11,1,30,30,'RMScheduler',2025-09-08 00:25:04,0,0,,,0) [2025-09-08 00:25:04] Production.INFO: next invoice date [2025-09-08 00:25:04] Production.INFO: 2025-10-08 [2025-09-08 00:25:04] Production.INFO: getdaysdiff [2025-09-08 00:25:04] Production.INFO: +30 [2025-09-08 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (211,13,2,30,30,'RMScheduler',2025-09-08 00:25:04,0,0,,,0) [2025-09-08 00:25:04] Production.INFO: next invoice date [2025-09-08 00:25:04] Production.INFO: 2025-10-08 [2025-09-08 00:25:04] Production.INFO: getdaysdiff [2025-09-08 00:25:04] Production.INFO: +30 [2025-09-08 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (219,11,1,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:04] Production.INFO: next invoice date [2025-09-08 00:25:04] Production.INFO: 2025-10-08 [2025-09-08 00:25:04] Production.INFO: getdaysdiff [2025-09-08 00:25:04] Production.INFO: +30 [2025-09-08 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (219,13,2,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (220,11,1,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (220,13,2,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (221,11,1,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (221,13,2,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (222,11,1,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (222,13,2,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (223,11,1,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (223,13,2,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (224,11,1,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (224,13,2,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (227,11,1,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (233,16,1,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (233,13,2,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (238,16,1,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (238,13,2,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (227,16,1,30,30,'RMScheduler',2025-09-08 00:25:04,0,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,30,30,'RMScheduler',2025-09-08 00:25:04,0,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (242,16,1,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (242,13,2,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:05] Production.INFO: next invoice date [2025-09-08 00:25:05] Production.INFO: 2025-10-08 [2025-09-08 00:25:05] Production.INFO: getdaysdiff [2025-09-08 00:25:05] Production.INFO: +30 [2025-09-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (243,16,1,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:06] Production.INFO: next invoice date [2025-09-08 00:25:06] Production.INFO: 2025-10-08 [2025-09-08 00:25:06] Production.INFO: getdaysdiff [2025-09-08 00:25:06] Production.INFO: +30 [2025-09-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (243,13,2,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:06] Production.INFO: next invoice date [2025-09-08 00:25:06] Production.INFO: 2025-10-08 [2025-09-08 00:25:06] Production.INFO: getdaysdiff [2025-09-08 00:25:06] Production.INFO: +30 [2025-09-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (245,16,1,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:06] Production.INFO: next invoice date [2025-09-08 00:25:06] Production.INFO: 2025-10-08 [2025-09-08 00:25:06] Production.INFO: getdaysdiff [2025-09-08 00:25:06] Production.INFO: +30 [2025-09-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (245,13,2,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:06] Production.INFO: next invoice date [2025-09-08 00:25:06] Production.INFO: 2025-10-08 [2025-09-08 00:25:06] Production.INFO: getdaysdiff [2025-09-08 00:25:06] Production.INFO: +30 [2025-09-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (231,16,1,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:06] Production.INFO: next invoice date [2025-09-08 00:25:06] Production.INFO: 2025-10-08 [2025-09-08 00:25:06] Production.INFO: getdaysdiff [2025-09-08 00:25:06] Production.INFO: +30 [2025-09-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (231,13,2,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:06] Production.INFO: next invoice date [2025-09-08 00:25:06] Production.INFO: 2025-10-08 [2025-09-08 00:25:06] Production.INFO: getdaysdiff [2025-09-08 00:25:06] Production.INFO: +30 [2025-09-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (250,16,1,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:06] Production.INFO: next invoice date [2025-09-08 00:25:06] Production.INFO: 2025-10-08 [2025-09-08 00:25:06] Production.INFO: getdaysdiff [2025-09-08 00:25:06] Production.INFO: +30 [2025-09-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (250,13,2,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:06] Production.INFO: next invoice date [2025-09-08 00:25:06] Production.INFO: 2025-10-08 [2025-09-08 00:25:06] Production.INFO: getdaysdiff [2025-09-08 00:25:06] Production.INFO: +30 [2025-09-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (251,16,1,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:07] Production.INFO: next invoice date [2025-09-08 00:25:07] Production.INFO: 2025-10-08 [2025-09-08 00:25:07] Production.INFO: getdaysdiff [2025-09-08 00:25:07] Production.INFO: +30 [2025-09-08 00:25:07] Production.INFO: call prc_setAccountDiscountPlan (251,13,2,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:07] Production.INFO: next invoice date [2025-09-08 00:25:07] Production.INFO: 2025-10-08 [2025-09-08 00:25:07] Production.INFO: getdaysdiff [2025-09-08 00:25:07] Production.INFO: +30 [2025-09-08 00:25:07] Production.INFO: call prc_setAccountDiscountPlan (254,16,1,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:07] Production.INFO: next invoice date [2025-09-08 00:25:07] Production.INFO: 2025-10-08 [2025-09-08 00:25:07] Production.INFO: getdaysdiff [2025-09-08 00:25:07] Production.INFO: +30 [2025-09-08 00:25:07] Production.INFO: call prc_setAccountDiscountPlan (254,13,2,30,30,'RMScheduler',2025-09-08 00:25:04,1,0,,,0) [2025-09-08 00:25:08] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 21:25:08 [end_date_ymd] => 2025-09-08 00:25:08 [RateCDR] => 1 ) [2025-09-08 00:25:08] 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-09-07 21:25:08' and `end` < '2025-09-08 00:25:08' 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-09-08 00:25:20] Production.INFO: count ==405 [2025-09-08 00:25:20] Production.ERROR: pbx CDR StartTime 2025-09-07 21:25:08 - End Time 2025-09-08 00:25:08 [2025-09-08 00:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15799822', 'tblTempUsageDetail_20' ) start [2025-09-08 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15799822', 'tblTempUsageDetail_20' ) end [2025-09-08 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15799822', 'tblTempVendorCDR_20' ) start [2025-09-08 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15799822', 'tblTempVendorCDR_20' ) end [2025-09-08 00:25:21] Production.INFO: ProcessCDR(1,15799822,1,1,2) [2025-09-08 00:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15799822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 00:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15799822,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 00:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15799822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 00:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15799822,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 00:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15799822', 'tblTempUsageDetail_20' ) start [2025-09-08 00:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15799822', 'tblTempUsageDetail_20' ) end [2025-09-08 00:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-08 00:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-08 00:25:30] Production.INFO: ==7903== Releasing lock... [2025-09-08 00:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 00:25:30] Production.INFO: 34.25 MB #Memory Used# [2025-09-08 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 22:25:05 [end_date_ymd] => 2025-09-08 01:25:05 [RateCDR] => 1 ) [2025-09-08 01:25: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-09-07 22:25:05' and `end` < '2025-09-08 01:25: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-09-08 01:25:17] Production.INFO: count ==384 [2025-09-08 01:25:17] Production.ERROR: pbx CDR StartTime 2025-09-07 22:25:05 - End Time 2025-09-08 01:25:05 [2025-09-08 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15800069', 'tblTempUsageDetail_20' ) start [2025-09-08 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15800069', 'tblTempUsageDetail_20' ) end [2025-09-08 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15800069', 'tblTempVendorCDR_20' ) start [2025-09-08 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15800069', 'tblTempVendorCDR_20' ) end [2025-09-08 01:25:17] Production.INFO: ProcessCDR(1,15800069,1,1,2) [2025-09-08 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15800069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15800069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15800069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15800069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15800069', 'tblTempUsageDetail_20' ) start [2025-09-08 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15800069', 'tblTempUsageDetail_20' ) end [2025-09-08 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-08 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-08 01:25:26] Production.INFO: ==12389== Releasing lock... [2025-09-08 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 01:25:26] Production.INFO: 32 MB #Memory Used# [2025-09-08 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-07 23:25:06 [end_date_ymd] => 2025-09-08 02:25:06 [RateCDR] => 1 ) [2025-09-08 02:25: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-09-07 23:25:06' and `end` < '2025-09-08 02:25: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-09-08 02:25:18] Production.INFO: count ==327 [2025-09-08 02:25:18] Production.ERROR: pbx CDR StartTime 2025-09-07 23:25:06 - End Time 2025-09-08 02:25:06 [2025-09-08 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15800316', 'tblTempUsageDetail_20' ) start [2025-09-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15800316', 'tblTempUsageDetail_20' ) end [2025-09-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15800316', 'tblTempVendorCDR_20' ) start [2025-09-08 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15800316', 'tblTempVendorCDR_20' ) end [2025-09-08 02:25:18] Production.INFO: ProcessCDR(1,15800316,1,1,2) [2025-09-08 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15800316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15800316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15800316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15800316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15800316', 'tblTempUsageDetail_20' ) start [2025-09-08 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15800316', 'tblTempUsageDetail_20' ) end [2025-09-08 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-08 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-08 02:25:26] Production.INFO: ==17190== Releasing lock... [2025-09-08 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 02:25:26] Production.INFO: 30.75 MB #Memory Used# [2025-09-08 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 00:25:06 [end_date_ymd] => 2025-09-08 03:25:06 [RateCDR] => 1 ) [2025-09-08 03:25: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-09-08 00:25:06' and `end` < '2025-09-08 03:25: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-09-08 03:25:18] Production.INFO: count ==251 [2025-09-08 03:25:18] Production.ERROR: pbx CDR StartTime 2025-09-08 00:25:06 - End Time 2025-09-08 03:25:06 [2025-09-08 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15800563', 'tblTempUsageDetail_20' ) start [2025-09-08 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15800563', 'tblTempUsageDetail_20' ) end [2025-09-08 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15800563', 'tblTempVendorCDR_20' ) start [2025-09-08 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15800563', 'tblTempVendorCDR_20' ) end [2025-09-08 03:25:18] Production.INFO: ProcessCDR(1,15800563,1,1,2) [2025-09-08 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15800563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15800563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15800563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15800563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15800563', 'tblTempUsageDetail_20' ) start [2025-09-08 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15800563', 'tblTempUsageDetail_20' ) end [2025-09-08 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-09-08 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-09-08 03:25:23] Production.INFO: ==21884== Releasing lock... [2025-09-08 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 03:25:23] Production.INFO: 30.25 MB #Memory Used# [2025-09-08 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 01:25:05 [end_date_ymd] => 2025-09-08 04:25:05 [RateCDR] => 1 ) [2025-09-08 04:25: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-09-08 01:25:05' and `end` < '2025-09-08 04:25: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-09-08 04:25:17] Production.INFO: count ==169 [2025-09-08 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-08 01:25:05 - End Time 2025-09-08 04:25:05 [2025-09-08 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15800811', 'tblTempUsageDetail_20' ) start [2025-09-08 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15800811', 'tblTempUsageDetail_20' ) end [2025-09-08 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15800811', 'tblTempVendorCDR_20' ) start [2025-09-08 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15800811', 'tblTempVendorCDR_20' ) end [2025-09-08 04:25:17] Production.INFO: ProcessCDR(1,15800811,1,1,2) [2025-09-08 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15800811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15800811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15800811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15800811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15800811', 'tblTempUsageDetail_20' ) start [2025-09-08 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15800811', 'tblTempUsageDetail_20' ) end [2025-09-08 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-08 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-08 04:25:24] Production.INFO: ==27065== Releasing lock... [2025-09-08 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 04:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-09-08 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 02:25:05 [end_date_ymd] => 2025-09-08 05:25:05 [RateCDR] => 1 ) [2025-09-08 05:25: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-09-08 02:25:05' and `end` < '2025-09-08 05:25: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-09-08 05:25:17] Production.INFO: count ==148 [2025-09-08 05:25:17] Production.ERROR: pbx CDR StartTime 2025-09-08 02:25:05 - End Time 2025-09-08 05:25:05 [2025-09-08 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15801059', 'tblTempUsageDetail_20' ) start [2025-09-08 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15801059', 'tblTempUsageDetail_20' ) end [2025-09-08 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15801059', 'tblTempVendorCDR_20' ) start [2025-09-08 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15801059', 'tblTempVendorCDR_20' ) end [2025-09-08 05:25:17] Production.INFO: ProcessCDR(1,15801059,1,1,2) [2025-09-08 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15801059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15801059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15801059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15801059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15801059', 'tblTempUsageDetail_20' ) start [2025-09-08 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15801059', 'tblTempUsageDetail_20' ) end [2025-09-08 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-08 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-08 05:25:24] Production.INFO: ==31756== Releasing lock... [2025-09-08 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 05:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-09-08 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 03:25:05 [end_date_ymd] => 2025-09-08 06:25:05 [RateCDR] => 1 ) [2025-09-08 06:25: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-09-08 03:25:05' and `end` < '2025-09-08 06:25: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-09-08 06:25:17] Production.INFO: count ==137 [2025-09-08 06:25:17] Production.ERROR: pbx CDR StartTime 2025-09-08 03:25:05 - End Time 2025-09-08 06:25:05 [2025-09-08 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15801306', 'tblTempUsageDetail_20' ) start [2025-09-08 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15801306', 'tblTempUsageDetail_20' ) end [2025-09-08 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15801306', 'tblTempVendorCDR_20' ) start [2025-09-08 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15801306', 'tblTempVendorCDR_20' ) end [2025-09-08 06:25:17] Production.INFO: ProcessCDR(1,15801306,1,1,2) [2025-09-08 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15801306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15801306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15801306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15801306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15801306', 'tblTempUsageDetail_20' ) start [2025-09-08 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15801306', 'tblTempUsageDetail_20' ) end [2025-09-08 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-08 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-08 06:25:24] Production.INFO: ==3893== Releasing lock... [2025-09-08 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 06:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-09-08 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 04:25:05 [end_date_ymd] => 2025-09-08 07:25:05 [RateCDR] => 1 ) [2025-09-08 07:25: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-09-08 04:25:05' and `end` < '2025-09-08 07:25: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-09-08 07:25:17] Production.INFO: count ==137 [2025-09-08 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-08 04:25:05 - End Time 2025-09-08 07:25:05 [2025-09-08 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15801553', 'tblTempUsageDetail_20' ) start [2025-09-08 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15801553', 'tblTempUsageDetail_20' ) end [2025-09-08 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15801553', 'tblTempVendorCDR_20' ) start [2025-09-08 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15801553', 'tblTempVendorCDR_20' ) end [2025-09-08 07:25:17] Production.INFO: ProcessCDR(1,15801553,1,1,2) [2025-09-08 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15801553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15801553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15801553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15801553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15801553', 'tblTempUsageDetail_20' ) start [2025-09-08 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15801553', 'tblTempUsageDetail_20' ) end [2025-09-08 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-08 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-08 07:25:25] Production.INFO: ==8267== Releasing lock... [2025-09-08 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 07:25:25] Production.INFO: 29.25 MB #Memory Used# [2025-09-08 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 05:25:05 [end_date_ymd] => 2025-09-08 08:25:05 [RateCDR] => 1 ) [2025-09-08 08:25: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-09-08 05:25:05' and `end` < '2025-09-08 08:25: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-09-08 08:25:17] Production.INFO: count ==371 [2025-09-08 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-08 05:25:05 - End Time 2025-09-08 08:25:05 [2025-09-08 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15801800', 'tblTempUsageDetail_20' ) start [2025-09-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15801800', 'tblTempUsageDetail_20' ) end [2025-09-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15801800', 'tblTempVendorCDR_20' ) start [2025-09-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15801800', 'tblTempVendorCDR_20' ) end [2025-09-08 08:25:17] Production.INFO: ProcessCDR(1,15801800,1,1,2) [2025-09-08 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15801800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15801800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15801800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15801800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15801800', 'tblTempUsageDetail_20' ) start [2025-09-08 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15801800', 'tblTempUsageDetail_20' ) end [2025-09-08 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-08 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-08 08:25:25] Production.INFO: ==13102== Releasing lock... [2025-09-08 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 08:25:25] Production.INFO: 32 MB #Memory Used# [2025-09-08 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 06:25:04 [end_date_ymd] => 2025-09-08 09:25:04 [RateCDR] => 1 ) [2025-09-08 09:25:04] 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-09-08 06:25:04' and `end` < '2025-09-08 09:25:04' 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-09-08 09:25:17] Production.INFO: count ==1659 [2025-09-08 09:25:18] Production.ERROR: pbx CDR StartTime 2025-09-08 06:25:04 - End Time 2025-09-08 09:25:04 [2025-09-08 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15802047', 'tblTempUsageDetail_20' ) start [2025-09-08 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15802047', 'tblTempUsageDetail_20' ) end [2025-09-08 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15802047', 'tblTempVendorCDR_20' ) start [2025-09-08 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15802047', 'tblTempVendorCDR_20' ) end [2025-09-08 09:25:18] Production.INFO: ProcessCDR(1,15802047,1,1,2) [2025-09-08 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15802047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15802047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15802047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15802047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15802047', 'tblTempUsageDetail_20' ) start [2025-09-08 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15802047', 'tblTempUsageDetail_20' ) end [2025-09-08 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-08 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-08 09:25:28] Production.INFO: ==17620== Releasing lock... [2025-09-08 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 09:25:28] Production.INFO: 40.5 MB #Memory Used# [2025-09-08 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 07:25:05 [end_date_ymd] => 2025-09-08 10:25:05 [RateCDR] => 1 ) [2025-09-08 10:25: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-09-08 07:25:05' and `end` < '2025-09-08 10:25: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-09-08 10:25:22] Production.INFO: count ==3331 [2025-09-08 10:25:24] Production.ERROR: pbx CDR StartTime 2025-09-08 07:25:05 - End Time 2025-09-08 10:25:05 [2025-09-08 10:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15802294', 'tblTempUsageDetail_20' ) start [2025-09-08 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15802294', 'tblTempUsageDetail_20' ) end [2025-09-08 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15802294', 'tblTempVendorCDR_20' ) start [2025-09-08 10:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15802294', 'tblTempVendorCDR_20' ) end [2025-09-08 10:25:24] Production.INFO: ProcessCDR(1,15802294,1,1,2) [2025-09-08 10:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15802294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 10:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15802294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 10:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15802294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 10:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15802294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 10:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15802294', 'tblTempUsageDetail_20' ) start [2025-09-08 10:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15802294', 'tblTempUsageDetail_20' ) end [2025-09-08 10:25:34] Production.ERROR: pbx prc_insertCDR start [2025-09-08 10:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-08 10:25:36] Production.INFO: ==22353== Releasing lock... [2025-09-08 10:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 10:25:36] Production.INFO: 53.25 MB #Memory Used# [2025-09-08 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 08:25:05 [end_date_ymd] => 2025-09-08 11:25:05 [RateCDR] => 1 ) [2025-09-08 11:25: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-09-08 08:25:05' and `end` < '2025-09-08 11:25: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-09-08 11:25:18] Production.INFO: count ==5160 [2025-09-08 11:25:21] Production.ERROR: pbx CDR StartTime 2025-09-08 08:25:05 - End Time 2025-09-08 11:25:05 [2025-09-08 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15802541', 'tblTempUsageDetail_20' ) start [2025-09-08 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15802541', 'tblTempUsageDetail_20' ) end [2025-09-08 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15802541', 'tblTempVendorCDR_20' ) start [2025-09-08 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15802541', 'tblTempVendorCDR_20' ) end [2025-09-08 11:25:21] Production.INFO: ProcessCDR(1,15802541,1,1,2) [2025-09-08 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15802541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15802541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15802541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15802541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15802541', 'tblTempUsageDetail_20' ) start [2025-09-08 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15802541', 'tblTempUsageDetail_20' ) end [2025-09-08 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-08 11:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-08 11:25:34] Production.INFO: ==27006== Releasing lock... [2025-09-08 11:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 11:25:34] Production.INFO: 66.75 MB #Memory Used# [2025-09-08 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 09:25:05 [end_date_ymd] => 2025-09-08 12:25:05 [RateCDR] => 1 ) [2025-09-08 12:25: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-09-08 09:25:05' and `end` < '2025-09-08 12:25: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-09-08 12:25:19] Production.INFO: count ==5807 [2025-09-08 12:25:22] Production.ERROR: pbx CDR StartTime 2025-09-08 09:25:05 - End Time 2025-09-08 12:25:05 [2025-09-08 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15802788', 'tblTempUsageDetail_20' ) start [2025-09-08 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15802788', 'tblTempUsageDetail_20' ) end [2025-09-08 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15802788', 'tblTempVendorCDR_20' ) start [2025-09-08 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15802788', 'tblTempVendorCDR_20' ) end [2025-09-08 12:25:22] Production.INFO: ProcessCDR(1,15802788,1,1,2) [2025-09-08 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15802788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15802788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15802788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 12:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15802788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15802788', 'tblTempUsageDetail_20' ) start [2025-09-08 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15802788', 'tblTempUsageDetail_20' ) end [2025-09-08 12:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-08 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-08 12:25:34] Production.INFO: ==31348== Releasing lock... [2025-09-08 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 12:25:34] Production.INFO: 71.75 MB #Memory Used# [2025-09-08 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 10:25:05 [end_date_ymd] => 2025-09-08 13:25:05 [RateCDR] => 1 ) [2025-09-08 13:25: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-09-08 10:25:05' and `end` < '2025-09-08 13:25: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-09-08 13:25:19] Production.INFO: count ==6190 [2025-09-08 13:25:22] Production.ERROR: pbx CDR StartTime 2025-09-08 10:25:05 - End Time 2025-09-08 13:25:05 [2025-09-08 13:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15803035', 'tblTempUsageDetail_20' ) start [2025-09-08 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15803035', 'tblTempUsageDetail_20' ) end [2025-09-08 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15803035', 'tblTempVendorCDR_20' ) start [2025-09-08 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15803035', 'tblTempVendorCDR_20' ) end [2025-09-08 13:25:23] Production.INFO: ProcessCDR(1,15803035,1,1,2) [2025-09-08 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15803035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 13:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15803035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 13:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15803035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 13:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15803035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15803035', 'tblTempUsageDetail_20' ) start [2025-09-08 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15803035', 'tblTempUsageDetail_20' ) end [2025-09-08 13:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-08 13:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-08 13:25:36] Production.INFO: ==4747== Releasing lock... [2025-09-08 13:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 13:25:36] Production.INFO: 74.5 MB #Memory Used# [2025-09-08 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 11:25:06 [end_date_ymd] => 2025-09-08 14:25:06 [RateCDR] => 1 ) [2025-09-08 14:25: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-09-08 11:25:06' and `end` < '2025-09-08 14:25: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-09-08 14:25:22] Production.INFO: count ==5695 [2025-09-08 14:25:25] Production.ERROR: pbx CDR StartTime 2025-09-08 11:25:06 - End Time 2025-09-08 14:25:06 [2025-09-08 14:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15803282', 'tblTempUsageDetail_20' ) start [2025-09-08 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15803282', 'tblTempUsageDetail_20' ) end [2025-09-08 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15803282', 'tblTempVendorCDR_20' ) start [2025-09-08 14:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15803282', 'tblTempVendorCDR_20' ) end [2025-09-08 14:25:26] Production.INFO: ProcessCDR(1,15803282,1,1,2) [2025-09-08 14:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15803282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 14:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15803282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 14:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15803282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 14:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15803282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 14:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15803282', 'tblTempUsageDetail_20' ) start [2025-09-08 14:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15803282', 'tblTempUsageDetail_20' ) end [2025-09-08 14:25:35] Production.ERROR: pbx prc_insertCDR start [2025-09-08 14:25:37] Production.ERROR: pbx prc_insertCDR end [2025-09-08 14:25:37] Production.INFO: ==11831== Releasing lock... [2025-09-08 14:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 14:25:37] Production.INFO: 71 MB #Memory Used# [2025-09-08 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 12:25:05 [end_date_ymd] => 2025-09-08 15:25:05 [RateCDR] => 1 ) [2025-09-08 15:25: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-09-08 12:25:05' and `end` < '2025-09-08 15:25: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-09-08 15:25:18] Production.INFO: count ==5418 [2025-09-08 15:25:21] Production.ERROR: pbx CDR StartTime 2025-09-08 12:25:05 - End Time 2025-09-08 15:25:05 [2025-09-08 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15803529', 'tblTempUsageDetail_20' ) start [2025-09-08 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15803529', 'tblTempUsageDetail_20' ) end [2025-09-08 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15803529', 'tblTempVendorCDR_20' ) start [2025-09-08 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15803529', 'tblTempVendorCDR_20' ) end [2025-09-08 15:25:21] Production.INFO: ProcessCDR(1,15803529,1,1,2) [2025-09-08 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15803529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15803529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15803529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 15:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15803529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 15:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15803529', 'tblTempUsageDetail_20' ) start [2025-09-08 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15803529', 'tblTempUsageDetail_20' ) end [2025-09-08 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-08 15:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-08 15:25:33] Production.INFO: ==18733== Releasing lock... [2025-09-08 15:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 15:25:33] Production.INFO: 68.75 MB #Memory Used# [2025-09-08 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 13:25:05 [end_date_ymd] => 2025-09-08 16:25:05 [RateCDR] => 1 ) [2025-09-08 16:25: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-09-08 13:25:05' and `end` < '2025-09-08 16:25: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-09-08 16:25:20] Production.INFO: count ==5059 [2025-09-08 16:25:22] Production.ERROR: pbx CDR StartTime 2025-09-08 13:25:05 - End Time 2025-09-08 16:25:05 [2025-09-08 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15803776', 'tblTempUsageDetail_20' ) start [2025-09-08 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15803776', 'tblTempUsageDetail_20' ) end [2025-09-08 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15803776', 'tblTempVendorCDR_20' ) start [2025-09-08 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15803776', 'tblTempVendorCDR_20' ) end [2025-09-08 16:25:23] Production.INFO: ProcessCDR(1,15803776,1,1,2) [2025-09-08 16:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15803776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 16:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15803776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 16:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15803776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 16:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15803776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15803776', 'tblTempUsageDetail_20' ) start [2025-09-08 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15803776', 'tblTempUsageDetail_20' ) end [2025-09-08 16:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-08 16:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-08 16:25:35] Production.INFO: ==26045== Releasing lock... [2025-09-08 16:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 16:25:35] Production.INFO: 66 MB #Memory Used# [2025-09-08 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 14:25:05 [end_date_ymd] => 2025-09-08 17:25:05 [RateCDR] => 1 ) [2025-09-08 17:25: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-09-08 14:25:05' and `end` < '2025-09-08 17:25: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-09-08 17:25:18] Production.INFO: count ==4862 [2025-09-08 17:25:21] Production.ERROR: pbx CDR StartTime 2025-09-08 14:25:05 - End Time 2025-09-08 17:25:05 [2025-09-08 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15804023', 'tblTempUsageDetail_20' ) start [2025-09-08 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15804023', 'tblTempUsageDetail_20' ) end [2025-09-08 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15804023', 'tblTempVendorCDR_20' ) start [2025-09-08 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15804023', 'tblTempVendorCDR_20' ) end [2025-09-08 17:25:21] Production.INFO: ProcessCDR(1,15804023,1,1,2) [2025-09-08 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15804023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15804023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15804023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15804023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15804023', 'tblTempUsageDetail_20' ) start [2025-09-08 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15804023', 'tblTempUsageDetail_20' ) end [2025-09-08 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-08 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-08 17:25:32] Production.INFO: ==588== Releasing lock... [2025-09-08 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 17:25:32] Production.INFO: 64.5 MB #Memory Used# [2025-09-08 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 15:25:05 [end_date_ymd] => 2025-09-08 18:25:05 [RateCDR] => 1 ) [2025-09-08 18:25: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-09-08 15:25:05' and `end` < '2025-09-08 18:25: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-09-08 18:25:18] Production.INFO: count ==4092 [2025-09-08 18:25:20] Production.ERROR: pbx CDR StartTime 2025-09-08 15:25:05 - End Time 2025-09-08 18:25:05 [2025-09-08 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15804270', 'tblTempUsageDetail_20' ) start [2025-09-08 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15804270', 'tblTempUsageDetail_20' ) end [2025-09-08 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15804270', 'tblTempVendorCDR_20' ) start [2025-09-08 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15804270', 'tblTempVendorCDR_20' ) end [2025-09-08 18:25:20] Production.INFO: ProcessCDR(1,15804270,1,1,2) [2025-09-08 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15804270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15804270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15804270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15804270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15804270', 'tblTempUsageDetail_20' ) start [2025-09-08 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15804270', 'tblTempUsageDetail_20' ) end [2025-09-08 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-08 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-08 18:25:30] Production.INFO: ==5528== Releasing lock... [2025-09-08 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 18:25:30] Production.INFO: 58.75 MB #Memory Used# [2025-09-08 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 16:25:05 [end_date_ymd] => 2025-09-08 19:25:05 [RateCDR] => 1 ) [2025-09-08 19:25: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-09-08 16:25:05' and `end` < '2025-09-08 19:25: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-09-08 19:25:18] Production.INFO: count ==2998 [2025-09-08 19:25:19] Production.ERROR: pbx CDR StartTime 2025-09-08 16:25:05 - End Time 2025-09-08 19:25:05 [2025-09-08 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15804514', 'tblTempUsageDetail_20' ) start [2025-09-08 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15804514', 'tblTempUsageDetail_20' ) end [2025-09-08 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15804514', 'tblTempVendorCDR_20' ) start [2025-09-08 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15804514', 'tblTempVendorCDR_20' ) end [2025-09-08 19:25:19] Production.INFO: ProcessCDR(1,15804514,1,1,2) [2025-09-08 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15804514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15804514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15804514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15804514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15804514', 'tblTempUsageDetail_20' ) start [2025-09-08 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15804514', 'tblTempUsageDetail_20' ) end [2025-09-08 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-08 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-08 19:25:28] Production.INFO: ==10001== Releasing lock... [2025-09-08 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 19:25:28] Production.INFO: 50.75 MB #Memory Used# [2025-09-08 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 17:25:06 [end_date_ymd] => 2025-09-08 20:25:06 [RateCDR] => 1 ) [2025-09-08 20:25: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-09-08 17:25:06' and `end` < '2025-09-08 20:25: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-09-08 20:25:18] Production.INFO: count ==2191 [2025-09-08 20:25:19] Production.ERROR: pbx CDR StartTime 2025-09-08 17:25:06 - End Time 2025-09-08 20:25:06 [2025-09-08 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15804761', 'tblTempUsageDetail_20' ) start [2025-09-08 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15804761', 'tblTempUsageDetail_20' ) end [2025-09-08 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15804761', 'tblTempVendorCDR_20' ) start [2025-09-08 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15804761', 'tblTempVendorCDR_20' ) end [2025-09-08 20:25:19] Production.INFO: ProcessCDR(1,15804761,1,1,2) [2025-09-08 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15804761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15804761,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15804761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 20:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15804761,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15804761', 'tblTempUsageDetail_20' ) start [2025-09-08 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15804761', 'tblTempUsageDetail_20' ) end [2025-09-08 20:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-08 20:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-08 20:25:29] Production.INFO: ==14401== Releasing lock... [2025-09-08 20:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 20:25:29] Production.INFO: 44.5 MB #Memory Used# [2025-09-08 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 18:25:05 [end_date_ymd] => 2025-09-08 21:25:05 [RateCDR] => 1 ) [2025-09-08 21:25: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-09-08 18:25:05' and `end` < '2025-09-08 21:25: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-09-08 21:25:17] Production.INFO: count ==1590 [2025-09-08 21:25:18] Production.ERROR: pbx CDR StartTime 2025-09-08 18:25:05 - End Time 2025-09-08 21:25:05 [2025-09-08 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15805008', 'tblTempUsageDetail_20' ) start [2025-09-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15805008', 'tblTempUsageDetail_20' ) end [2025-09-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15805008', 'tblTempVendorCDR_20' ) start [2025-09-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15805008', 'tblTempVendorCDR_20' ) end [2025-09-08 21:25:18] Production.INFO: ProcessCDR(1,15805008,1,1,2) [2025-09-08 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15805008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15805008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15805008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15805008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15805008', 'tblTempUsageDetail_20' ) start [2025-09-08 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15805008', 'tblTempUsageDetail_20' ) end [2025-09-08 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-08 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-08 21:25:26] Production.INFO: ==19029== Releasing lock... [2025-09-08 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 21:25:26] Production.INFO: 40 MB #Memory Used# [2025-09-08 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 19:25:06 [end_date_ymd] => 2025-09-08 22:25:06 [RateCDR] => 1 ) [2025-09-08 22:25: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-09-08 19:25:06' and `end` < '2025-09-08 22:25: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-09-08 22:25:18] Production.INFO: count ==1232 [2025-09-08 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-08 19:25:06 - End Time 2025-09-08 22:25:06 [2025-09-08 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15805255', 'tblTempUsageDetail_20' ) start [2025-09-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15805255', 'tblTempUsageDetail_20' ) end [2025-09-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15805255', 'tblTempVendorCDR_20' ) start [2025-09-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15805255', 'tblTempVendorCDR_20' ) end [2025-09-08 22:25:18] Production.INFO: ProcessCDR(1,15805255,1,1,2) [2025-09-08 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15805255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15805255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15805255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15805255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15805255', 'tblTempUsageDetail_20' ) start [2025-09-08 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15805255', 'tblTempUsageDetail_20' ) end [2025-09-08 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-08 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-08 22:25:27] Production.INFO: ==23246== Releasing lock... [2025-09-08 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 22:25:27] Production.INFO: 37.5 MB #Memory Used# [2025-09-08 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 20:25:05 [end_date_ymd] => 2025-09-08 23:25:05 [RateCDR] => 1 ) [2025-09-08 23:25: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-09-08 20:25:05' and `end` < '2025-09-08 23:25: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-09-08 23:25:17] Production.INFO: count ==773 [2025-09-08 23:25:17] Production.ERROR: pbx CDR StartTime 2025-09-08 20:25:05 - End Time 2025-09-08 23:25:05 [2025-09-08 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-08 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15805502', 'tblTempUsageDetail_20' ) start [2025-09-08 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15805502', 'tblTempUsageDetail_20' ) end [2025-09-08 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15805502', 'tblTempVendorCDR_20' ) start [2025-09-08 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15805502', 'tblTempVendorCDR_20' ) end [2025-09-08 23:25:17] Production.INFO: ProcessCDR(1,15805502,1,1,2) [2025-09-08 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15805502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15805502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-08 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15805502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15805502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-08 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15805502', 'tblTempUsageDetail_20' ) start [2025-09-08 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15805502', 'tblTempUsageDetail_20' ) end [2025-09-08 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-08 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-08 23:25:26] Production.INFO: ==27764== Releasing lock... [2025-09-08 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-08 23:25:26] Production.INFO: 34 MB #Memory Used#