[2025-10-08 00:25:05] Production.INFO: next invoice date [2025-10-08 00:25:05] Production.INFO: 2025-11-08 [2025-10-08 00:25:05] Production.INFO: getdaysdiff [2025-10-08 00:25:05] Production.INFO: +31 [2025-10-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (144,20,2,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:05] Production.INFO: next invoice date [2025-10-08 00:25:05] Production.INFO: 2025-11-08 [2025-10-08 00:25:05] Production.INFO: getdaysdiff [2025-10-08 00:25:05] Production.INFO: +31 [2025-10-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (211,11,1,31,31,'RMScheduler',2025-10-08 00:25:05,0,0,,,0) [2025-10-08 00:25:05] Production.INFO: next invoice date [2025-10-08 00:25:05] Production.INFO: 2025-11-08 [2025-10-08 00:25:05] Production.INFO: getdaysdiff [2025-10-08 00:25:05] Production.INFO: +31 [2025-10-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (211,13,2,31,31,'RMScheduler',2025-10-08 00:25:05,0,0,,,0) [2025-10-08 00:25:05] Production.INFO: next invoice date [2025-10-08 00:25:05] Production.INFO: 2025-11-08 [2025-10-08 00:25:05] Production.INFO: getdaysdiff [2025-10-08 00:25:05] Production.INFO: +31 [2025-10-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (219,11,1,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:05] Production.INFO: next invoice date [2025-10-08 00:25:05] Production.INFO: 2025-11-08 [2025-10-08 00:25:05] Production.INFO: getdaysdiff [2025-10-08 00:25:05] Production.INFO: +31 [2025-10-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (219,13,2,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:05] Production.INFO: next invoice date [2025-10-08 00:25:05] Production.INFO: 2025-11-08 [2025-10-08 00:25:05] Production.INFO: getdaysdiff [2025-10-08 00:25:05] Production.INFO: +31 [2025-10-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (220,11,1,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:05] Production.INFO: next invoice date [2025-10-08 00:25:05] Production.INFO: 2025-11-08 [2025-10-08 00:25:05] Production.INFO: getdaysdiff [2025-10-08 00:25:05] Production.INFO: +31 [2025-10-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (220,13,2,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:05] Production.INFO: next invoice date [2025-10-08 00:25:05] Production.INFO: 2025-11-08 [2025-10-08 00:25:05] Production.INFO: getdaysdiff [2025-10-08 00:25:05] Production.INFO: +31 [2025-10-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (221,11,1,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:05] Production.INFO: next invoice date [2025-10-08 00:25:05] Production.INFO: 2025-11-08 [2025-10-08 00:25:05] Production.INFO: getdaysdiff [2025-10-08 00:25:05] Production.INFO: +31 [2025-10-08 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (221,13,2,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:06] Production.INFO: next invoice date [2025-10-08 00:25:06] Production.INFO: 2025-11-08 [2025-10-08 00:25:06] Production.INFO: getdaysdiff [2025-10-08 00:25:06] Production.INFO: +31 [2025-10-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (222,11,1,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:06] Production.INFO: next invoice date [2025-10-08 00:25:06] Production.INFO: 2025-11-08 [2025-10-08 00:25:06] Production.INFO: getdaysdiff [2025-10-08 00:25:06] Production.INFO: +31 [2025-10-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (222,13,2,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:06] Production.INFO: next invoice date [2025-10-08 00:25:06] Production.INFO: 2025-11-08 [2025-10-08 00:25:06] Production.INFO: getdaysdiff [2025-10-08 00:25:06] Production.INFO: +31 [2025-10-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (223,11,1,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:06] Production.INFO: next invoice date [2025-10-08 00:25:06] Production.INFO: 2025-11-08 [2025-10-08 00:25:06] Production.INFO: getdaysdiff [2025-10-08 00:25:06] Production.INFO: +31 [2025-10-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (223,13,2,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:06] Production.INFO: next invoice date [2025-10-08 00:25:06] Production.INFO: 2025-11-08 [2025-10-08 00:25:06] Production.INFO: getdaysdiff [2025-10-08 00:25:06] Production.INFO: +31 [2025-10-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (224,11,1,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:06] Production.INFO: next invoice date [2025-10-08 00:25:06] Production.INFO: 2025-11-08 [2025-10-08 00:25:06] Production.INFO: getdaysdiff [2025-10-08 00:25:06] Production.INFO: +31 [2025-10-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (224,13,2,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:06] Production.INFO: next invoice date [2025-10-08 00:25:06] Production.INFO: 2025-11-08 [2025-10-08 00:25:06] Production.INFO: getdaysdiff [2025-10-08 00:25:06] Production.INFO: +31 [2025-10-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (227,11,1,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:06] Production.INFO: next invoice date [2025-10-08 00:25:06] Production.INFO: 2025-11-08 [2025-10-08 00:25:06] Production.INFO: getdaysdiff [2025-10-08 00:25:06] Production.INFO: +31 [2025-10-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:06] Production.INFO: next invoice date [2025-10-08 00:25:06] Production.INFO: 2025-11-08 [2025-10-08 00:25:06] Production.INFO: getdaysdiff [2025-10-08 00:25:06] Production.INFO: +31 [2025-10-08 00:25:06] Production.INFO: call prc_setAccountDiscountPlan (233,16,1,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:07] Production.INFO: next invoice date [2025-10-08 00:25:07] Production.INFO: 2025-11-08 [2025-10-08 00:25:07] Production.INFO: getdaysdiff [2025-10-08 00:25:07] Production.INFO: +31 [2025-10-08 00:25:07] Production.INFO: call prc_setAccountDiscountPlan (233,13,2,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:07] Production.INFO: next invoice date [2025-10-08 00:25:07] Production.INFO: 2025-11-08 [2025-10-08 00:25:07] Production.INFO: getdaysdiff [2025-10-08 00:25:07] Production.INFO: +31 [2025-10-08 00:25:07] Production.INFO: call prc_setAccountDiscountPlan (238,16,1,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:07] Production.INFO: next invoice date [2025-10-08 00:25:07] Production.INFO: 2025-11-08 [2025-10-08 00:25:07] Production.INFO: getdaysdiff [2025-10-08 00:25:07] Production.INFO: +31 [2025-10-08 00:25:07] Production.INFO: call prc_setAccountDiscountPlan (238,13,2,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:07] Production.INFO: next invoice date [2025-10-08 00:25:07] Production.INFO: 2025-11-08 [2025-10-08 00:25:07] Production.INFO: getdaysdiff [2025-10-08 00:25:07] Production.INFO: +31 [2025-10-08 00:25:07] Production.INFO: call prc_setAccountDiscountPlan (227,16,1,31,31,'RMScheduler',2025-10-08 00:25:05,0,0,,,0) [2025-10-08 00:25:07] Production.INFO: next invoice date [2025-10-08 00:25:07] Production.INFO: 2025-11-08 [2025-10-08 00:25:07] Production.INFO: getdaysdiff [2025-10-08 00:25:07] Production.INFO: +31 [2025-10-08 00:25:07] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,31,31,'RMScheduler',2025-10-08 00:25:05,0,0,,,0) [2025-10-08 00:25:07] Production.INFO: next invoice date [2025-10-08 00:25:07] Production.INFO: 2025-11-08 [2025-10-08 00:25:07] Production.INFO: getdaysdiff [2025-10-08 00:25:07] Production.INFO: +31 [2025-10-08 00:25:07] Production.INFO: call prc_setAccountDiscountPlan (242,16,1,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:08] Production.INFO: next invoice date [2025-10-08 00:25:08] Production.INFO: 2025-11-08 [2025-10-08 00:25:08] Production.INFO: getdaysdiff [2025-10-08 00:25:08] Production.INFO: +31 [2025-10-08 00:25:08] Production.INFO: call prc_setAccountDiscountPlan (242,13,2,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:08] Production.INFO: next invoice date [2025-10-08 00:25:08] Production.INFO: 2025-11-08 [2025-10-08 00:25:08] Production.INFO: getdaysdiff [2025-10-08 00:25:08] Production.INFO: +31 [2025-10-08 00:25:08] Production.INFO: call prc_setAccountDiscountPlan (243,16,1,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:08] Production.INFO: next invoice date [2025-10-08 00:25:08] Production.INFO: 2025-11-08 [2025-10-08 00:25:08] Production.INFO: getdaysdiff [2025-10-08 00:25:08] Production.INFO: +31 [2025-10-08 00:25:08] Production.INFO: call prc_setAccountDiscountPlan (243,13,2,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:08] Production.INFO: next invoice date [2025-10-08 00:25:08] Production.INFO: 2025-11-08 [2025-10-08 00:25:08] Production.INFO: getdaysdiff [2025-10-08 00:25:08] Production.INFO: +31 [2025-10-08 00:25:08] Production.INFO: call prc_setAccountDiscountPlan (245,16,1,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:08] Production.INFO: next invoice date [2025-10-08 00:25:08] Production.INFO: 2025-11-08 [2025-10-08 00:25:08] Production.INFO: getdaysdiff [2025-10-08 00:25:08] Production.INFO: +31 [2025-10-08 00:25:08] Production.INFO: call prc_setAccountDiscountPlan (245,13,2,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:08] Production.INFO: next invoice date [2025-10-08 00:25:08] Production.INFO: 2025-11-08 [2025-10-08 00:25:08] Production.INFO: getdaysdiff [2025-10-08 00:25:08] Production.INFO: +31 [2025-10-08 00:25:08] Production.INFO: call prc_setAccountDiscountPlan (231,16,1,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:08] Production.INFO: next invoice date [2025-10-08 00:25:08] Production.INFO: 2025-11-08 [2025-10-08 00:25:08] Production.INFO: getdaysdiff [2025-10-08 00:25:08] Production.INFO: +31 [2025-10-08 00:25:08] Production.INFO: call prc_setAccountDiscountPlan (231,13,2,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:09] Production.INFO: next invoice date [2025-10-08 00:25:09] Production.INFO: 2025-11-08 [2025-10-08 00:25:09] Production.INFO: getdaysdiff [2025-10-08 00:25:09] Production.INFO: +31 [2025-10-08 00:25:09] Production.INFO: call prc_setAccountDiscountPlan (250,16,1,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:09] Production.INFO: next invoice date [2025-10-08 00:25:09] Production.INFO: 2025-11-08 [2025-10-08 00:25:09] Production.INFO: getdaysdiff [2025-10-08 00:25:09] Production.INFO: +31 [2025-10-08 00:25:09] Production.INFO: call prc_setAccountDiscountPlan (250,13,2,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:09] Production.INFO: next invoice date [2025-10-08 00:25:09] Production.INFO: 2025-11-08 [2025-10-08 00:25:09] Production.INFO: getdaysdiff [2025-10-08 00:25:09] Production.INFO: +31 [2025-10-08 00:25:09] Production.INFO: call prc_setAccountDiscountPlan (251,16,1,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:09] Production.INFO: next invoice date [2025-10-08 00:25:09] Production.INFO: 2025-11-08 [2025-10-08 00:25:09] Production.INFO: getdaysdiff [2025-10-08 00:25:09] Production.INFO: +31 [2025-10-08 00:25:09] Production.INFO: call prc_setAccountDiscountPlan (251,13,2,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:09] Production.INFO: next invoice date [2025-10-08 00:25:09] Production.INFO: 2025-11-08 [2025-10-08 00:25:09] Production.INFO: getdaysdiff [2025-10-08 00:25:09] Production.INFO: +31 [2025-10-08 00:25:09] Production.INFO: call prc_setAccountDiscountPlan (254,16,1,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:09] Production.INFO: next invoice date [2025-10-08 00:25:09] Production.INFO: 2025-11-08 [2025-10-08 00:25:09] Production.INFO: getdaysdiff [2025-10-08 00:25:09] Production.INFO: +31 [2025-10-08 00:25:09] Production.INFO: call prc_setAccountDiscountPlan (254,13,2,31,31,'RMScheduler',2025-10-08 00:25:05,1,0,,,0) [2025-10-08 00:25:10] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 21:25:10 [end_date_ymd] => 2025-10-08 00:25:10 [RateCDR] => 1 ) [2025-10-08 00:25:10] 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-10-07 21:25:10' and `end` < '2025-10-08 00:25:10' 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-10-08 00:25:38] Production.INFO: count ==482 [2025-10-08 00:25:38] Production.ERROR: pbx CDR StartTime 2025-10-07 21:25:10 - End Time 2025-10-08 00:25:10 [2025-10-08 00:25:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 00:25:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15977642', 'tblTempUsageDetail_20' ) start [2025-10-08 00:25:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15977642', 'tblTempUsageDetail_20' ) end [2025-10-08 00:25:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15977642', 'tblTempVendorCDR_20' ) start [2025-10-08 00:25:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15977642', 'tblTempVendorCDR_20' ) end [2025-10-08 00:25:38] Production.INFO: ProcessCDR(1,15977642,1,1,2) [2025-10-08 00:25:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15977642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 00:25:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15977642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 00:25:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15977642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 00:25:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15977642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 00:25:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15977642', 'tblTempUsageDetail_20' ) start [2025-10-08 00:25:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15977642', 'tblTempUsageDetail_20' ) end [2025-10-08 00:25:47] Production.ERROR: pbx prc_insertCDR start [2025-10-08 00:25:47] Production.ERROR: pbx prc_insertCDR end [2025-10-08 00:25:48] Production.INFO: ==954== Releasing lock... [2025-10-08 00:25:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 00:25:48] Production.INFO: 35.75 MB #Memory Used# [2025-10-08 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 22:25:06 [end_date_ymd] => 2025-10-08 01:25:06 [RateCDR] => 1 ) [2025-10-08 01: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-10-07 22:25:06' and `end` < '2025-10-08 01: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-10-08 01:25:18] Production.INFO: count ==415 [2025-10-08 01:25:19] Production.ERROR: pbx CDR StartTime 2025-10-07 22:25:06 - End Time 2025-10-08 01:25:06 [2025-10-08 01:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15977889', 'tblTempUsageDetail_20' ) start [2025-10-08 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15977889', 'tblTempUsageDetail_20' ) end [2025-10-08 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15977889', 'tblTempVendorCDR_20' ) start [2025-10-08 01:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15977889', 'tblTempVendorCDR_20' ) end [2025-10-08 01:25:19] Production.INFO: ProcessCDR(1,15977889,1,1,2) [2025-10-08 01:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15977889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 01:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15977889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 01:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15977889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 01:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15977889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 01:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15977889', 'tblTempUsageDetail_20' ) start [2025-10-08 01:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15977889', 'tblTempUsageDetail_20' ) end [2025-10-08 01:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-08 01:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-08 01:25:28] Production.INFO: ==5842== Releasing lock... [2025-10-08 01:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 01:25:28] Production.INFO: 31.5 MB #Memory Used# [2025-10-08 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-07 23:25:05 [end_date_ymd] => 2025-10-08 02:25:05 [RateCDR] => 1 ) [2025-10-08 02: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-10-07 23:25:05' and `end` < '2025-10-08 02: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-10-08 02:25:17] Production.INFO: count ==371 [2025-10-08 02:25:17] Production.ERROR: pbx CDR StartTime 2025-10-07 23:25:05 - End Time 2025-10-08 02:25:05 [2025-10-08 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15978136', 'tblTempUsageDetail_20' ) start [2025-10-08 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15978136', 'tblTempUsageDetail_20' ) end [2025-10-08 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15978136', 'tblTempVendorCDR_20' ) start [2025-10-08 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15978136', 'tblTempVendorCDR_20' ) end [2025-10-08 02:25:17] Production.INFO: ProcessCDR(1,15978136,1,1,2) [2025-10-08 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15978136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15978136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15978136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15978136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15978136', 'tblTempUsageDetail_20' ) start [2025-10-08 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15978136', 'tblTempUsageDetail_20' ) end [2025-10-08 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-08 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-08 02:25:26] Production.INFO: ==10844== Releasing lock... [2025-10-08 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 02:25:26] Production.INFO: 31 MB #Memory Used# [2025-10-08 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 00:25:05 [end_date_ymd] => 2025-10-08 03:25:05 [RateCDR] => 1 ) [2025-10-08 03: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-10-08 00:25:05' and `end` < '2025-10-08 03: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-10-08 03:25:17] Production.INFO: count ==291 [2025-10-08 03:25:17] Production.ERROR: pbx CDR StartTime 2025-10-08 00:25:05 - End Time 2025-10-08 03:25:05 [2025-10-08 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15978383', 'tblTempUsageDetail_20' ) start [2025-10-08 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15978383', 'tblTempUsageDetail_20' ) end [2025-10-08 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15978383', 'tblTempVendorCDR_20' ) start [2025-10-08 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15978383', 'tblTempVendorCDR_20' ) end [2025-10-08 03:25:17] Production.INFO: ProcessCDR(1,15978383,1,1,2) [2025-10-08 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15978383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15978383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15978383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 03:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15978383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15978383', 'tblTempUsageDetail_20' ) start [2025-10-08 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15978383', 'tblTempUsageDetail_20' ) end [2025-10-08 03:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-08 03:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-08 03:25:26] Production.INFO: ==15251== Releasing lock... [2025-10-08 03:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 03:25:26] Production.INFO: 31 MB #Memory Used# [2025-10-08 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 01:25:05 [end_date_ymd] => 2025-10-08 04:25:05 [RateCDR] => 1 ) [2025-10-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-10-08 01:25:05' and `end` < '2025-10-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-10-08 04:25:17] Production.INFO: count ==210 [2025-10-08 04:25:17] Production.ERROR: pbx CDR StartTime 2025-10-08 01:25:05 - End Time 2025-10-08 04:25:05 [2025-10-08 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15978631', 'tblTempUsageDetail_20' ) start [2025-10-08 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15978631', 'tblTempUsageDetail_20' ) end [2025-10-08 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15978631', 'tblTempVendorCDR_20' ) start [2025-10-08 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15978631', 'tblTempVendorCDR_20' ) end [2025-10-08 04:25:17] Production.INFO: ProcessCDR(1,15978631,1,1,2) [2025-10-08 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15978631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 04:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15978631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 04:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15978631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 04:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15978631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15978631', 'tblTempUsageDetail_20' ) start [2025-10-08 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15978631', 'tblTempUsageDetail_20' ) end [2025-10-08 04:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-08 04:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-08 04:25:26] Production.INFO: ==19756== Releasing lock... [2025-10-08 04:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 04:25:26] Production.INFO: 29.75 MB #Memory Used# [2025-10-08 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 02:25:06 [end_date_ymd] => 2025-10-08 05:25:06 [RateCDR] => 1 ) [2025-10-08 05: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-10-08 02:25:06' and `end` < '2025-10-08 05: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-10-08 05:25:18] Production.INFO: count ==123 [2025-10-08 05:25:18] Production.ERROR: pbx CDR StartTime 2025-10-08 02:25:06 - End Time 2025-10-08 05:25:06 [2025-10-08 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15978879', 'tblTempUsageDetail_20' ) start [2025-10-08 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15978879', 'tblTempUsageDetail_20' ) end [2025-10-08 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15978879', 'tblTempVendorCDR_20' ) start [2025-10-08 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15978879', 'tblTempVendorCDR_20' ) end [2025-10-08 05:25:18] Production.INFO: ProcessCDR(1,15978879,1,1,2) [2025-10-08 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15978879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 05:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15978879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 05:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15978879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 05:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15978879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 05:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15978879', 'tblTempUsageDetail_20' ) start [2025-10-08 05:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15978879', 'tblTempUsageDetail_20' ) end [2025-10-08 05:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-08 05:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-08 05:25:27] Production.INFO: ==24675== Releasing lock... [2025-10-08 05:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 05:25:27] Production.INFO: 28.75 MB #Memory Used# [2025-10-08 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 03:25:05 [end_date_ymd] => 2025-10-08 06:25:05 [RateCDR] => 1 ) [2025-10-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-10-08 03:25:05' and `end` < '2025-10-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-10-08 06:25:17] Production.INFO: count ==90 [2025-10-08 06:25:17] Production.ERROR: pbx CDR StartTime 2025-10-08 03:25:05 - End Time 2025-10-08 06:25:05 [2025-10-08 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15979126', 'tblTempUsageDetail_20' ) start [2025-10-08 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15979126', 'tblTempUsageDetail_20' ) end [2025-10-08 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15979126', 'tblTempVendorCDR_20' ) start [2025-10-08 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15979126', 'tblTempVendorCDR_20' ) end [2025-10-08 06:25:17] Production.INFO: ProcessCDR(1,15979126,1,1,2) [2025-10-08 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15979126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15979126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15979126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 06:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15979126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15979126', 'tblTempUsageDetail_20' ) start [2025-10-08 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15979126', 'tblTempUsageDetail_20' ) end [2025-10-08 06:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-08 06:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-08 06:25:26] Production.INFO: ==29400== Releasing lock... [2025-10-08 06:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 06:25:26] Production.INFO: 28.25 MB #Memory Used# [2025-10-08 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 04:25:05 [end_date_ymd] => 2025-10-08 07:25:05 [RateCDR] => 1 ) [2025-10-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-10-08 04:25:05' and `end` < '2025-10-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-10-08 07:25:17] Production.INFO: count ==103 [2025-10-08 07:25:17] Production.ERROR: pbx CDR StartTime 2025-10-08 04:25:05 - End Time 2025-10-08 07:25:05 [2025-10-08 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15979373', 'tblTempUsageDetail_20' ) start [2025-10-08 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15979373', 'tblTempUsageDetail_20' ) end [2025-10-08 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15979373', 'tblTempVendorCDR_20' ) start [2025-10-08 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15979373', 'tblTempVendorCDR_20' ) end [2025-10-08 07:25:18] Production.INFO: ProcessCDR(1,15979373,1,1,2) [2025-10-08 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15979373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 07:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15979373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 07:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15979373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 07:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15979373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15979373', 'tblTempUsageDetail_20' ) start [2025-10-08 07:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15979373', 'tblTempUsageDetail_20' ) end [2025-10-08 07:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-08 07:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-08 07:25:27] Production.INFO: ==1574== Releasing lock... [2025-10-08 07:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 07:25:27] Production.INFO: 28.5 MB #Memory Used# [2025-10-08 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 05:25:05 [end_date_ymd] => 2025-10-08 08:25:05 [RateCDR] => 1 ) [2025-10-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-10-08 05:25:05' and `end` < '2025-10-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-10-08 08:25:17] Production.INFO: count ==315 [2025-10-08 08:25:17] Production.ERROR: pbx CDR StartTime 2025-10-08 05:25:05 - End Time 2025-10-08 08:25:05 [2025-10-08 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15979620', 'tblTempUsageDetail_20' ) start [2025-10-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15979620', 'tblTempUsageDetail_20' ) end [2025-10-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15979620', 'tblTempVendorCDR_20' ) start [2025-10-08 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15979620', 'tblTempVendorCDR_20' ) end [2025-10-08 08:25:17] Production.INFO: ProcessCDR(1,15979620,1,1,2) [2025-10-08 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15979620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15979620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15979620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15979620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15979620', 'tblTempUsageDetail_20' ) start [2025-10-08 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15979620', 'tblTempUsageDetail_20' ) end [2025-10-08 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-08 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-08 08:25:26] Production.INFO: ==6021== Releasing lock... [2025-10-08 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 08:25:26] Production.INFO: 31.25 MB #Memory Used# [2025-10-08 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 06:25:05 [end_date_ymd] => 2025-10-08 09:25:05 [RateCDR] => 1 ) [2025-10-08 09: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-10-08 06:25:05' and `end` < '2025-10-08 09: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-10-08 09:25:19] Production.INFO: count ==1373 [2025-10-08 09:25:20] Production.ERROR: pbx CDR StartTime 2025-10-08 06:25:05 - End Time 2025-10-08 09:25:05 [2025-10-08 09:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15979867', 'tblTempUsageDetail_20' ) start [2025-10-08 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15979867', 'tblTempUsageDetail_20' ) end [2025-10-08 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15979867', 'tblTempVendorCDR_20' ) start [2025-10-08 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15979867', 'tblTempVendorCDR_20' ) end [2025-10-08 09:25:20] Production.INFO: ProcessCDR(1,15979867,1,1,2) [2025-10-08 09:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15979867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 09:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15979867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 09:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15979867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 09:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15979867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 09:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15979867', 'tblTempUsageDetail_20' ) start [2025-10-08 09:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15979867', 'tblTempUsageDetail_20' ) end [2025-10-08 09:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-08 09:25:30] Production.ERROR: pbx prc_insertCDR end [2025-10-08 09:25:30] Production.INFO: ==11391== Releasing lock... [2025-10-08 09:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 09:25:30] Production.INFO: 38.75 MB #Memory Used# [2025-10-08 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 07:25:05 [end_date_ymd] => 2025-10-08 10:25:05 [RateCDR] => 1 ) [2025-10-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-10-08 07:25:05' and `end` < '2025-10-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-10-08 10:25:18] Production.INFO: count ==3047 [2025-10-08 10:25:19] Production.ERROR: pbx CDR StartTime 2025-10-08 07:25:05 - End Time 2025-10-08 10:25:05 [2025-10-08 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15980114', 'tblTempUsageDetail_20' ) start [2025-10-08 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15980114', 'tblTempUsageDetail_20' ) end [2025-10-08 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15980114', 'tblTempVendorCDR_20' ) start [2025-10-08 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15980114', 'tblTempVendorCDR_20' ) end [2025-10-08 10:25:20] Production.INFO: ProcessCDR(1,15980114,1,1,2) [2025-10-08 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15980114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 10:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15980114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 10:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15980114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 10:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15980114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15980114', 'tblTempUsageDetail_20' ) start [2025-10-08 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15980114', 'tblTempUsageDetail_20' ) end [2025-10-08 10:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-08 10:25:32] Production.ERROR: pbx prc_insertCDR end [2025-10-08 10:25:32] Production.INFO: ==15949== Releasing lock... [2025-10-08 10:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 10:25:32] Production.INFO: 50.75 MB #Memory Used# [2025-10-08 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 08:25:05 [end_date_ymd] => 2025-10-08 11:25:05 [RateCDR] => 1 ) [2025-10-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-10-08 08:25:05' and `end` < '2025-10-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-10-08 11:25:20] Production.INFO: count ==4807 [2025-10-08 11:25:22] Production.ERROR: pbx CDR StartTime 2025-10-08 08:25:05 - End Time 2025-10-08 11:25:05 [2025-10-08 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15980361', 'tblTempUsageDetail_20' ) start [2025-10-08 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15980361', 'tblTempUsageDetail_20' ) end [2025-10-08 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15980361', 'tblTempVendorCDR_20' ) start [2025-10-08 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15980361', 'tblTempVendorCDR_20' ) end [2025-10-08 11:25:23] Production.INFO: ProcessCDR(1,15980361,1,1,2) [2025-10-08 11:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15980361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 11:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15980361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 11:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15980361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 11:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15980361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 11:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15980361', 'tblTempUsageDetail_20' ) start [2025-10-08 11:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15980361', 'tblTempUsageDetail_20' ) end [2025-10-08 11:25:34] Production.ERROR: pbx prc_insertCDR start [2025-10-08 11:25:36] Production.ERROR: pbx prc_insertCDR end [2025-10-08 11:25:36] Production.INFO: ==20722== Releasing lock... [2025-10-08 11:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 11:25:36] Production.INFO: 64.25 MB #Memory Used# [2025-10-08 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 09:25:05 [end_date_ymd] => 2025-10-08 12:25:05 [RateCDR] => 1 ) [2025-10-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-10-08 09:25:05' and `end` < '2025-10-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-10-08 12:25:19] Production.INFO: count ==5784 [2025-10-08 12:25:21] Production.ERROR: pbx CDR StartTime 2025-10-08 09:25:05 - End Time 2025-10-08 12:25:05 [2025-10-08 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15980608', 'tblTempUsageDetail_20' ) start [2025-10-08 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15980608', 'tblTempUsageDetail_20' ) end [2025-10-08 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15980608', 'tblTempVendorCDR_20' ) start [2025-10-08 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15980608', 'tblTempVendorCDR_20' ) end [2025-10-08 12:25:22] Production.INFO: ProcessCDR(1,15980608,1,1,2) [2025-10-08 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15980608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15980608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15980608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 12:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15980608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15980608', 'tblTempUsageDetail_20' ) start [2025-10-08 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15980608', 'tblTempUsageDetail_20' ) end [2025-10-08 12:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-08 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-10-08 12:25:34] Production.INFO: ==25853== Releasing lock... [2025-10-08 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 12:25:34] Production.INFO: 71.5 MB #Memory Used# [2025-10-08 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 10:25:05 [end_date_ymd] => 2025-10-08 13:25:05 [RateCDR] => 1 ) [2025-10-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-10-08 10:25:05' and `end` < '2025-10-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-10-08 13:25:22] Production.INFO: count ==5856 [2025-10-08 13:25:25] Production.ERROR: pbx CDR StartTime 2025-10-08 10:25:05 - End Time 2025-10-08 13:25:05 [2025-10-08 13:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15980855', 'tblTempUsageDetail_20' ) start [2025-10-08 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15980855', 'tblTempUsageDetail_20' ) end [2025-10-08 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15980855', 'tblTempVendorCDR_20' ) start [2025-10-08 13:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15980855', 'tblTempVendorCDR_20' ) end [2025-10-08 13:25:26] Production.INFO: ProcessCDR(1,15980855,1,1,2) [2025-10-08 13:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15980855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 13:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15980855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 13:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15980855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 13:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15980855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 13:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15980855', 'tblTempUsageDetail_20' ) start [2025-10-08 13:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15980855', 'tblTempUsageDetail_20' ) end [2025-10-08 13:25:36] Production.ERROR: pbx prc_insertCDR start [2025-10-08 13:25:39] Production.ERROR: pbx prc_insertCDR end [2025-10-08 13:25:39] Production.INFO: ==31128== Releasing lock... [2025-10-08 13:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 13:25:39] Production.INFO: 72 MB #Memory Used# [2025-10-08 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 11:25:05 [end_date_ymd] => 2025-10-08 14:25:05 [RateCDR] => 1 ) [2025-10-08 14: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-10-08 11:25:05' and `end` < '2025-10-08 14: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-10-08 14:25:18] Production.INFO: count ==5565 [2025-10-08 14:25:21] Production.ERROR: pbx CDR StartTime 2025-10-08 11:25:05 - End Time 2025-10-08 14:25:05 [2025-10-08 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15981102', 'tblTempUsageDetail_20' ) start [2025-10-08 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15981102', 'tblTempUsageDetail_20' ) end [2025-10-08 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15981102', 'tblTempVendorCDR_20' ) start [2025-10-08 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15981102', 'tblTempVendorCDR_20' ) end [2025-10-08 14:25:21] Production.INFO: ProcessCDR(1,15981102,1,1,2) [2025-10-08 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15981102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 14:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15981102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 14:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15981102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 14:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15981102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15981102', 'tblTempUsageDetail_20' ) start [2025-10-08 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15981102', 'tblTempUsageDetail_20' ) end [2025-10-08 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-08 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-10-08 14:25:34] Production.INFO: ==4175== Releasing lock... [2025-10-08 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 14:25:34] Production.INFO: 70 MB #Memory Used# [2025-10-08 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 12:25:05 [end_date_ymd] => 2025-10-08 15:25:05 [RateCDR] => 1 ) [2025-10-08 15: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-10-08 12:25:05' and `end` < '2025-10-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-10-08 15:25:22] Production.INFO: count ==5201 [2025-10-08 15:25:24] Production.ERROR: pbx CDR StartTime 2025-10-08 12:25:05 - End Time 2025-10-08 15:25:05 [2025-10-08 15:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15981349', 'tblTempUsageDetail_20' ) start [2025-10-08 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15981349', 'tblTempUsageDetail_20' ) end [2025-10-08 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15981349', 'tblTempVendorCDR_20' ) start [2025-10-08 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15981349', 'tblTempVendorCDR_20' ) end [2025-10-08 15:25:25] Production.INFO: ProcessCDR(1,15981349,1,1,2) [2025-10-08 15:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15981349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 15:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15981349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 15:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15981349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 15:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15981349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 15:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15981349', 'tblTempUsageDetail_20' ) start [2025-10-08 15:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15981349', 'tblTempUsageDetail_20' ) end [2025-10-08 15:25:35] Production.ERROR: pbx prc_insertCDR start [2025-10-08 15:25:37] Production.ERROR: pbx prc_insertCDR end [2025-10-08 15:25:37] Production.INFO: ==9112== Releasing lock... [2025-10-08 15:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 15:25:37] Production.INFO: 67.25 MB #Memory Used# [2025-10-08 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 13:25:05 [end_date_ymd] => 2025-10-08 16:25:05 [RateCDR] => 1 ) [2025-10-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-10-08 13:25:05' and `end` < '2025-10-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-10-08 16:25:18] Production.INFO: count ==5101 [2025-10-08 16:25:21] Production.ERROR: pbx CDR StartTime 2025-10-08 13:25:05 - End Time 2025-10-08 16:25:05 [2025-10-08 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15981596', 'tblTempUsageDetail_20' ) start [2025-10-08 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15981596', 'tblTempUsageDetail_20' ) end [2025-10-08 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15981596', 'tblTempVendorCDR_20' ) start [2025-10-08 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15981596', 'tblTempVendorCDR_20' ) end [2025-10-08 16:25:21] Production.INFO: ProcessCDR(1,15981596,1,1,2) [2025-10-08 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15981596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15981596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15981596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 16:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15981596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15981596', 'tblTempUsageDetail_20' ) start [2025-10-08 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15981596', 'tblTempUsageDetail_20' ) end [2025-10-08 16:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-08 16:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-08 16:25:35] Production.INFO: ==14445== Releasing lock... [2025-10-08 16:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 16:25:35] Production.INFO: 66.5 MB #Memory Used# [2025-10-08 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 14:25:06 [end_date_ymd] => 2025-10-08 17:25:06 [RateCDR] => 1 ) [2025-10-08 17: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-10-08 14:25:06' and `end` < '2025-10-08 17: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-10-08 17:25:20] Production.INFO: count ==5070 [2025-10-08 17:25:23] Production.ERROR: pbx CDR StartTime 2025-10-08 14:25:06 - End Time 2025-10-08 17:25:06 [2025-10-08 17:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15981843', 'tblTempUsageDetail_20' ) start [2025-10-08 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15981843', 'tblTempUsageDetail_20' ) end [2025-10-08 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15981843', 'tblTempVendorCDR_20' ) start [2025-10-08 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15981843', 'tblTempVendorCDR_20' ) end [2025-10-08 17:25:23] Production.INFO: ProcessCDR(1,15981843,1,1,2) [2025-10-08 17:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15981843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 17:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15981843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 17:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15981843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 17:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15981843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 17:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15981843', 'tblTempUsageDetail_20' ) start [2025-10-08 17:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15981843', 'tblTempUsageDetail_20' ) end [2025-10-08 17:25:33] Production.ERROR: pbx prc_insertCDR start [2025-10-08 17:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-08 17:25:35] Production.INFO: ==19624== Releasing lock... [2025-10-08 17:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 17:25:35] Production.INFO: 66.25 MB #Memory Used# [2025-10-08 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 15:25:05 [end_date_ymd] => 2025-10-08 18:25:05 [RateCDR] => 1 ) [2025-10-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-10-08 15:25:05' and `end` < '2025-10-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-10-08 18:25:18] Production.INFO: count ==4398 [2025-10-08 18:25:20] Production.ERROR: pbx CDR StartTime 2025-10-08 15:25:05 - End Time 2025-10-08 18:25:05 [2025-10-08 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15982090', 'tblTempUsageDetail_20' ) start [2025-10-08 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15982090', 'tblTempUsageDetail_20' ) end [2025-10-08 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15982090', 'tblTempVendorCDR_20' ) start [2025-10-08 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15982090', 'tblTempVendorCDR_20' ) end [2025-10-08 18:25:21] Production.INFO: ProcessCDR(1,15982090,1,1,2) [2025-10-08 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15982090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15982090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15982090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 18:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15982090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 18:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15982090', 'tblTempUsageDetail_20' ) start [2025-10-08 18:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15982090', 'tblTempUsageDetail_20' ) end [2025-10-08 18:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-08 18:25:33] Production.ERROR: pbx prc_insertCDR end [2025-10-08 18:25:33] Production.INFO: ==24650== Releasing lock... [2025-10-08 18:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 18:25:33] Production.INFO: 61 MB #Memory Used# [2025-10-08 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 16:25:06 [end_date_ymd] => 2025-10-08 19:25:06 [RateCDR] => 1 ) [2025-10-08 19: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-10-08 16:25:06' and `end` < '2025-10-08 19: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-10-08 19:25:18] Production.INFO: count ==3370 [2025-10-08 19:25:20] Production.ERROR: pbx CDR StartTime 2025-10-08 16:25:06 - End Time 2025-10-08 19:25:06 [2025-10-08 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15982334', 'tblTempUsageDetail_20' ) start [2025-10-08 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15982334', 'tblTempUsageDetail_20' ) end [2025-10-08 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15982334', 'tblTempVendorCDR_20' ) start [2025-10-08 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15982334', 'tblTempVendorCDR_20' ) end [2025-10-08 19:25:20] Production.INFO: ProcessCDR(1,15982334,1,1,2) [2025-10-08 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15982334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15982334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15982334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 19:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15982334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15982334', 'tblTempUsageDetail_20' ) start [2025-10-08 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15982334', 'tblTempUsageDetail_20' ) end [2025-10-08 19:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-08 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-10-08 19:25:29] Production.INFO: ==29897== Releasing lock... [2025-10-08 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 19:25:29] Production.INFO: 53.25 MB #Memory Used# [2025-10-08 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 17:25:05 [end_date_ymd] => 2025-10-08 20:25:05 [RateCDR] => 1 ) [2025-10-08 20: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-10-08 17:25:05' and `end` < '2025-10-08 20: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-10-08 20:25:17] Production.INFO: count ==2240 [2025-10-08 20:25:18] Production.ERROR: pbx CDR StartTime 2025-10-08 17:25:05 - End Time 2025-10-08 20:25:05 [2025-10-08 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15982581', 'tblTempUsageDetail_20' ) start [2025-10-08 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15982581', 'tblTempUsageDetail_20' ) end [2025-10-08 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15982581', 'tblTempVendorCDR_20' ) start [2025-10-08 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15982581', 'tblTempVendorCDR_20' ) end [2025-10-08 20:25:18] Production.INFO: ProcessCDR(1,15982581,1,1,2) [2025-10-08 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15982581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15982581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15982581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15982581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15982581', 'tblTempUsageDetail_20' ) start [2025-10-08 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15982581', 'tblTempUsageDetail_20' ) end [2025-10-08 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-08 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-08 20:25:27] Production.INFO: ==2768== Releasing lock... [2025-10-08 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 20:25:27] Production.INFO: 45 MB #Memory Used# [2025-10-08 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 18:25:05 [end_date_ymd] => 2025-10-08 21:25:05 [RateCDR] => 1 ) [2025-10-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-10-08 18:25:05' and `end` < '2025-10-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-10-08 21:25:17] Production.INFO: count ==1535 [2025-10-08 21:25:18] Production.ERROR: pbx CDR StartTime 2025-10-08 18:25:05 - End Time 2025-10-08 21:25:05 [2025-10-08 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15982828', 'tblTempUsageDetail_20' ) start [2025-10-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15982828', 'tblTempUsageDetail_20' ) end [2025-10-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15982828', 'tblTempVendorCDR_20' ) start [2025-10-08 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15982828', 'tblTempVendorCDR_20' ) end [2025-10-08 21:25:18] Production.INFO: ProcessCDR(1,15982828,1,1,2) [2025-10-08 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15982828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15982828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15982828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15982828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15982828', 'tblTempUsageDetail_20' ) start [2025-10-08 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15982828', 'tblTempUsageDetail_20' ) end [2025-10-08 21:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-08 21:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-08 21:25:28] Production.INFO: ==7754== Releasing lock... [2025-10-08 21:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 21:25:28] Production.INFO: 39.75 MB #Memory Used# [2025-10-08 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 19:25:05 [end_date_ymd] => 2025-10-08 22:25:05 [RateCDR] => 1 ) [2025-10-08 22: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-10-08 19:25:05' and `end` < '2025-10-08 22: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-10-08 22:25:18] Production.INFO: count ==1176 [2025-10-08 22:25:18] Production.ERROR: pbx CDR StartTime 2025-10-08 19:25:05 - End Time 2025-10-08 22:25:05 [2025-10-08 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15983075', 'tblTempUsageDetail_20' ) start [2025-10-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15983075', 'tblTempUsageDetail_20' ) end [2025-10-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15983075', 'tblTempVendorCDR_20' ) start [2025-10-08 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15983075', 'tblTempVendorCDR_20' ) end [2025-10-08 22:25:18] Production.INFO: ProcessCDR(1,15983075,1,1,2) [2025-10-08 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15983075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 22:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15983075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 22:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15983075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 22:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15983075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 22:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15983075', 'tblTempUsageDetail_20' ) start [2025-10-08 22:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15983075', 'tblTempUsageDetail_20' ) end [2025-10-08 22:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-08 22:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-08 22:25:28] Production.INFO: ==12632== Releasing lock... [2025-10-08 22:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 22:25:28] Production.INFO: 37.5 MB #Memory Used# [2025-10-08 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-08 20:25:05 [end_date_ymd] => 2025-10-08 23:25:05 [RateCDR] => 1 ) [2025-10-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-10-08 20:25:05' and `end` < '2025-10-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-10-08 23:25:18] Production.INFO: count ==857 [2025-10-08 23:25:18] Production.ERROR: pbx CDR StartTime 2025-10-08 20:25:05 - End Time 2025-10-08 23:25:05 [2025-10-08 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15983322', 'tblTempUsageDetail_20' ) start [2025-10-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15983322', 'tblTempUsageDetail_20' ) end [2025-10-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15983322', 'tblTempVendorCDR_20' ) start [2025-10-08 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15983322', 'tblTempVendorCDR_20' ) end [2025-10-08 23:25:18] Production.INFO: ProcessCDR(1,15983322,1,1,2) [2025-10-08 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15983322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15983322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-08 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15983322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 23:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15983322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-08 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15983322', 'tblTempUsageDetail_20' ) start [2025-10-08 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15983322', 'tblTempUsageDetail_20' ) end [2025-10-08 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-08 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-08 23:25:27] Production.INFO: ==16947== Releasing lock... [2025-10-08 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-08 23:25:27] Production.INFO: 34.75 MB #Memory Used#