[2025-12-05 00:00:05] Production.INFO: next invoice date [2025-12-05 00:00:05] Production.INFO: 2026-01-05 [2025-12-05 00:00:05] Production.INFO: getdaysdiff [2025-12-05 00:00:05] Production.INFO: +31 [2025-12-05 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (182,11,1,31,31,'RMScheduler',2025-12-05 00:00:05,0,0,,,0) [2025-12-05 00:00:05] Production.INFO: next invoice date [2025-12-05 00:00:05] Production.INFO: 2026-01-05 [2025-12-05 00:00:05] Production.INFO: getdaysdiff [2025-12-05 00:00:05] Production.INFO: +31 [2025-12-05 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (182,13,2,31,31,'RMScheduler',2025-12-05 00:00:05,0,0,,,0) [2025-12-05 00:00:06] Production.INFO: next invoice date [2025-12-05 00:00:06] Production.INFO: 2026-01-05 [2025-12-05 00:00:06] Production.INFO: getdaysdiff [2025-12-05 00:00:06] Production.INFO: +31 [2025-12-05 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (188,16,1,31,31,'RMScheduler',2025-12-05 00:00:05,0,0,,,0) [2025-12-05 00:00:06] Production.INFO: next invoice date [2025-12-05 00:00:06] Production.INFO: 2026-01-05 [2025-12-05 00:00:06] Production.INFO: getdaysdiff [2025-12-05 00:00:06] Production.INFO: +31 [2025-12-05 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (188,13,2,31,31,'RMScheduler',2025-12-05 00:00:05,0,0,,,0) [2025-12-05 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 21:00:07 [end_date_ymd] => 2025-12-05 00:00:07 [RateCDR] => 1 ) [2025-12-05 00:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-04 21:00:07' and `end` < '2025-12-05 00:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 00:00:20] Production.INFO: count ==960 [2025-12-05 00:00:21] Production.ERROR: pbx CDR StartTime 2025-12-04 21:00:07 - End Time 2025-12-05 00:00:07 [2025-12-05 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16321624', 'tblTempUsageDetail_20' ) start [2025-12-05 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16321624', 'tblTempUsageDetail_20' ) end [2025-12-05 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16321624', 'tblTempVendorCDR_20' ) start [2025-12-05 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16321624', 'tblTempVendorCDR_20' ) end [2025-12-05 00:00:21] Production.INFO: ProcessCDR(1,16321624,1,1,2) [2025-12-05 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16321624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 00:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16321624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 00:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16321624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 00:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16321624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 00:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16321624', 'tblTempUsageDetail_20' ) start [2025-12-05 00:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16321624', 'tblTempUsageDetail_20' ) end [2025-12-05 00:00:36] Production.ERROR: pbx prc_insertCDR start [2025-12-05 00:00:37] Production.ERROR: pbx prc_insertCDR end [2025-12-05 00:00:38] Production.INFO: ==9706== Releasing lock... [2025-12-05 00:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 00:00:38] Production.INFO: 39 MB #Memory Used# [2025-12-05 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 22:00:06 [end_date_ymd] => 2025-12-05 01:00:06 [RateCDR] => 1 ) [2025-12-05 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-04 22:00:06' and `end` < '2025-12-05 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 01:00:18] Production.INFO: count ==530 [2025-12-05 01:00:18] Production.ERROR: pbx CDR StartTime 2025-12-04 22:00:06 - End Time 2025-12-05 01:00:06 [2025-12-05 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16321871', 'tblTempUsageDetail_20' ) start [2025-12-05 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16321871', 'tblTempUsageDetail_20' ) end [2025-12-05 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16321871', 'tblTempVendorCDR_20' ) start [2025-12-05 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16321871', 'tblTempVendorCDR_20' ) end [2025-12-05 01:00:18] Production.INFO: ProcessCDR(1,16321871,1,1,2) [2025-12-05 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16321871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 01:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16321871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 01:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16321871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 01:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16321871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 01:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16321871', 'tblTempUsageDetail_20' ) start [2025-12-05 01:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16321871', 'tblTempUsageDetail_20' ) end [2025-12-05 01:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-05 01:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-05 01:00:29] Production.INFO: ==14152== Releasing lock... [2025-12-05 01:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 01:00:29] Production.INFO: 32.75 MB #Memory Used# [2025-12-05 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-04 23:00:07 [end_date_ymd] => 2025-12-05 02:00:07 [RateCDR] => 1 ) [2025-12-05 02:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-04 23:00:07' and `end` < '2025-12-05 02:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 02:00:19] Production.INFO: count ==472 [2025-12-05 02:00:19] Production.ERROR: pbx CDR StartTime 2025-12-04 23:00:07 - End Time 2025-12-05 02:00:07 [2025-12-05 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16322118', 'tblTempUsageDetail_20' ) start [2025-12-05 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16322118', 'tblTempUsageDetail_20' ) end [2025-12-05 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16322118', 'tblTempVendorCDR_20' ) start [2025-12-05 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16322118', 'tblTempVendorCDR_20' ) end [2025-12-05 02:00:19] Production.INFO: ProcessCDR(1,16322118,1,1,2) [2025-12-05 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16322118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 02:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16322118,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 02:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16322118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 02:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16322118,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 02:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16322118', 'tblTempUsageDetail_20' ) start [2025-12-05 02:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16322118', 'tblTempUsageDetail_20' ) end [2025-12-05 02:00:31] Production.ERROR: pbx prc_insertCDR start [2025-12-05 02:00:31] Production.ERROR: pbx prc_insertCDR end [2025-12-05 02:00:31] Production.INFO: ==18749== Releasing lock... [2025-12-05 02:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 02:00:31] Production.INFO: 32 MB #Memory Used# [2025-12-05 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 00:00:06 [end_date_ymd] => 2025-12-05 03:00:06 [RateCDR] => 1 ) [2025-12-05 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 00:00:06' and `end` < '2025-12-05 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 03:00:17] Production.INFO: count ==443 [2025-12-05 03:00:18] Production.ERROR: pbx CDR StartTime 2025-12-05 00:00:06 - End Time 2025-12-05 03:00:06 [2025-12-05 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16322365', 'tblTempUsageDetail_20' ) start [2025-12-05 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16322365', 'tblTempUsageDetail_20' ) end [2025-12-05 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16322365', 'tblTempVendorCDR_20' ) start [2025-12-05 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16322365', 'tblTempVendorCDR_20' ) end [2025-12-05 03:00:18] Production.INFO: ProcessCDR(1,16322365,1,1,2) [2025-12-05 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16322365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 03:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16322365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 03:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16322365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 03:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16322365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 03:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16322365', 'tblTempUsageDetail_20' ) start [2025-12-05 03:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16322365', 'tblTempUsageDetail_20' ) end [2025-12-05 03:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-05 03:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-05 03:00:28] Production.INFO: ==23201== Releasing lock... [2025-12-05 03:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 03:00:28] Production.INFO: 31.75 MB #Memory Used# [2025-12-05 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 01:00:06 [end_date_ymd] => 2025-12-05 04:00:06 [RateCDR] => 1 ) [2025-12-05 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 01:00:06' and `end` < '2025-12-05 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 04:00:18] Production.INFO: count ==342 [2025-12-05 04:00:18] Production.ERROR: pbx CDR StartTime 2025-12-05 01:00:06 - End Time 2025-12-05 04:00:06 [2025-12-05 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16322613', 'tblTempUsageDetail_20' ) start [2025-12-05 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16322613', 'tblTempUsageDetail_20' ) end [2025-12-05 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16322613', 'tblTempVendorCDR_20' ) start [2025-12-05 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16322613', 'tblTempVendorCDR_20' ) end [2025-12-05 04:00:18] Production.INFO: ProcessCDR(1,16322613,1,1,2) [2025-12-05 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16322613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 04:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16322613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 04:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16322613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 04:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16322613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 04:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16322613', 'tblTempUsageDetail_20' ) start [2025-12-05 04:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16322613', 'tblTempUsageDetail_20' ) end [2025-12-05 04:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-05 04:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-05 04:00:29] Production.INFO: ==28608== Releasing lock... [2025-12-05 04:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 04:00:29] Production.INFO: 31 MB #Memory Used# [2025-12-05 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 02:00:06 [end_date_ymd] => 2025-12-05 05:00:06 [RateCDR] => 1 ) [2025-12-05 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 02:00:06' and `end` < '2025-12-05 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 05:00:19] Production.INFO: count ==260 [2025-12-05 05:00:19] Production.ERROR: pbx CDR StartTime 2025-12-05 02:00:06 - End Time 2025-12-05 05:00:06 [2025-12-05 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16322861', 'tblTempUsageDetail_20' ) start [2025-12-05 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16322861', 'tblTempUsageDetail_20' ) end [2025-12-05 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16322861', 'tblTempVendorCDR_20' ) start [2025-12-05 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16322861', 'tblTempVendorCDR_20' ) end [2025-12-05 05:00:19] Production.INFO: ProcessCDR(1,16322861,1,1,2) [2025-12-05 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16322861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 05:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16322861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 05:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16322861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 05:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16322861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 05:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16322861', 'tblTempUsageDetail_20' ) start [2025-12-05 05:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16322861', 'tblTempUsageDetail_20' ) end [2025-12-05 05:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-05 05:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-05 05:00:29] Production.INFO: ==654== Releasing lock... [2025-12-05 05:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 05:00:29] Production.INFO: 30.5 MB #Memory Used# [2025-12-05 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 03:00:06 [end_date_ymd] => 2025-12-05 06:00:06 [RateCDR] => 1 ) [2025-12-05 06:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 03:00:06' and `end` < '2025-12-05 06:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 06:00:18] Production.INFO: count ==182 [2025-12-05 06:00:18] Production.ERROR: pbx CDR StartTime 2025-12-05 03:00:06 - End Time 2025-12-05 06:00:06 [2025-12-05 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16323108', 'tblTempUsageDetail_20' ) start [2025-12-05 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16323108', 'tblTempUsageDetail_20' ) end [2025-12-05 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16323108', 'tblTempVendorCDR_20' ) start [2025-12-05 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16323108', 'tblTempVendorCDR_20' ) end [2025-12-05 06:00:18] Production.INFO: ProcessCDR(1,16323108,1,1,2) [2025-12-05 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16323108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 06:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16323108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 06:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16323108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 06:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16323108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 06:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16323108', 'tblTempUsageDetail_20' ) start [2025-12-05 06:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16323108', 'tblTempUsageDetail_20' ) end [2025-12-05 06:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-05 06:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-05 06:00:29] Production.INFO: ==5138== Releasing lock... [2025-12-05 06:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 06:00:29] Production.INFO: 29.5 MB #Memory Used# [2025-12-05 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 04:00:06 [end_date_ymd] => 2025-12-05 07:00:06 [RateCDR] => 1 ) [2025-12-05 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 04:00:06' and `end` < '2025-12-05 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 07:00:17] Production.INFO: count ==166 [2025-12-05 07:00:17] Production.ERROR: pbx CDR StartTime 2025-12-05 04:00:06 - End Time 2025-12-05 07:00:06 [2025-12-05 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16323354', 'tblTempUsageDetail_20' ) start [2025-12-05 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16323354', 'tblTempUsageDetail_20' ) end [2025-12-05 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16323354', 'tblTempVendorCDR_20' ) start [2025-12-05 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16323354', 'tblTempVendorCDR_20' ) end [2025-12-05 07:00:17] Production.INFO: ProcessCDR(1,16323354,1,1,2) [2025-12-05 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16323354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 07:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16323354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 07:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16323354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 07:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16323354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 07:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16323354', 'tblTempUsageDetail_20' ) start [2025-12-05 07:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16323354', 'tblTempUsageDetail_20' ) end [2025-12-05 07:00:27] Production.ERROR: pbx prc_insertCDR start [2025-12-05 07:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-05 07:00:28] Production.INFO: ==9603== Releasing lock... [2025-12-05 07:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 07:00:28] Production.INFO: 29.25 MB #Memory Used# [2025-12-05 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 05:00:06 [end_date_ymd] => 2025-12-05 08:00:06 [RateCDR] => 1 ) [2025-12-05 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 05:00:06' and `end` < '2025-12-05 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 08:00:18] Production.INFO: count ==215 [2025-12-05 08:00:18] Production.ERROR: pbx CDR StartTime 2025-12-05 05:00:06 - End Time 2025-12-05 08:00:06 [2025-12-05 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16323601', 'tblTempUsageDetail_20' ) start [2025-12-05 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16323601', 'tblTempUsageDetail_20' ) end [2025-12-05 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16323601', 'tblTempVendorCDR_20' ) start [2025-12-05 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16323601', 'tblTempVendorCDR_20' ) end [2025-12-05 08:00:18] Production.INFO: ProcessCDR(1,16323601,1,1,2) [2025-12-05 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16323601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 08:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16323601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 08:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16323601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 08:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16323601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16323601', 'tblTempUsageDetail_20' ) start [2025-12-05 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16323601', 'tblTempUsageDetail_20' ) end [2025-12-05 08:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-05 08:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-05 08:00:28] Production.INFO: ==14097== Releasing lock... [2025-12-05 08:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 08:00:28] Production.INFO: 29.75 MB #Memory Used# [2025-12-05 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 06:00:06 [end_date_ymd] => 2025-12-05 09:00:06 [RateCDR] => 1 ) [2025-12-05 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 06:00:06' and `end` < '2025-12-05 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 09:00:18] Production.INFO: count ==816 [2025-12-05 09:00:18] Production.ERROR: pbx CDR StartTime 2025-12-05 06:00:06 - End Time 2025-12-05 09:00:06 [2025-12-05 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16323849', 'tblTempUsageDetail_20' ) start [2025-12-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16323849', 'tblTempUsageDetail_20' ) end [2025-12-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16323849', 'tblTempVendorCDR_20' ) start [2025-12-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16323849', 'tblTempVendorCDR_20' ) end [2025-12-05 09:00:19] Production.INFO: ProcessCDR(1,16323849,1,1,2) [2025-12-05 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16323849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 09:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16323849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 09:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16323849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 09:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16323849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 09:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16323849', 'tblTempUsageDetail_20' ) start [2025-12-05 09:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16323849', 'tblTempUsageDetail_20' ) end [2025-12-05 09:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-05 09:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-05 09:00:30] Production.INFO: ==18596== Releasing lock... [2025-12-05 09:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 09:00:30] Production.INFO: 35.25 MB #Memory Used# [2025-12-05 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 07:00:06 [end_date_ymd] => 2025-12-05 10:00:06 [RateCDR] => 1 ) [2025-12-05 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 07:00:06' and `end` < '2025-12-05 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 10:00:20] Production.INFO: count ==2401 [2025-12-05 10:00:21] Production.ERROR: pbx CDR StartTime 2025-12-05 07:00:06 - End Time 2025-12-05 10:00:06 [2025-12-05 10:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16324096', 'tblTempUsageDetail_20' ) start [2025-12-05 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16324096', 'tblTempUsageDetail_20' ) end [2025-12-05 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16324096', 'tblTempVendorCDR_20' ) start [2025-12-05 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16324096', 'tblTempVendorCDR_20' ) end [2025-12-05 10:00:21] Production.INFO: ProcessCDR(1,16324096,1,1,2) [2025-12-05 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16324096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 10:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16324096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 10:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16324096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 10:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16324096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 10:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16324096', 'tblTempUsageDetail_20' ) start [2025-12-05 10:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16324096', 'tblTempUsageDetail_20' ) end [2025-12-05 10:00:33] Production.ERROR: pbx prc_insertCDR start [2025-12-05 10:00:35] Production.ERROR: pbx prc_insertCDR end [2025-12-05 10:00:35] Production.INFO: ==24056== Releasing lock... [2025-12-05 10:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 10:00:35] Production.INFO: 46.5 MB #Memory Used# [2025-12-05 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 08:00:07 [end_date_ymd] => 2025-12-05 11:00:07 [RateCDR] => 1 ) [2025-12-05 11:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 08:00:07' and `end` < '2025-12-05 11:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 11:00:20] Production.INFO: count ==4213 [2025-12-05 11:00:22] Production.ERROR: pbx CDR StartTime 2025-12-05 08:00:07 - End Time 2025-12-05 11:00:07 [2025-12-05 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16324343', 'tblTempUsageDetail_20' ) start [2025-12-05 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16324343', 'tblTempUsageDetail_20' ) end [2025-12-05 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16324343', 'tblTempVendorCDR_20' ) start [2025-12-05 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16324343', 'tblTempVendorCDR_20' ) end [2025-12-05 11:00:22] Production.INFO: ProcessCDR(1,16324343,1,1,2) [2025-12-05 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16324343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 11:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16324343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 11:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16324343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 11:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16324343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16324343', 'tblTempUsageDetail_20' ) start [2025-12-05 11:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16324343', 'tblTempUsageDetail_20' ) end [2025-12-05 11:00:35] Production.ERROR: pbx prc_insertCDR start [2025-12-05 11:00:37] Production.ERROR: pbx prc_insertCDR end [2025-12-05 11:00:37] Production.INFO: ==28428== Releasing lock... [2025-12-05 11:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 11:00:37] Production.INFO: 59.75 MB #Memory Used# [2025-12-05 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 09:00:06 [end_date_ymd] => 2025-12-05 12:00:06 [RateCDR] => 1 ) [2025-12-05 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 09:00:06' and `end` < '2025-12-05 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 12:00:21] Production.INFO: count ==5535 [2025-12-05 12:00:24] Production.ERROR: pbx CDR StartTime 2025-12-05 09:00:06 - End Time 2025-12-05 12:00:06 [2025-12-05 12:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16324590', 'tblTempUsageDetail_20' ) start [2025-12-05 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16324590', 'tblTempUsageDetail_20' ) end [2025-12-05 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16324590', 'tblTempVendorCDR_20' ) start [2025-12-05 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16324590', 'tblTempVendorCDR_20' ) end [2025-12-05 12:00:25] Production.INFO: ProcessCDR(1,16324590,1,1,2) [2025-12-05 12:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16324590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 12:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16324590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 12:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16324590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 12:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16324590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16324590', 'tblTempUsageDetail_20' ) start [2025-12-05 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16324590', 'tblTempUsageDetail_20' ) end [2025-12-05 12:00:37] Production.ERROR: pbx prc_insertCDR start [2025-12-05 12:00:40] Production.ERROR: pbx prc_insertCDR end [2025-12-05 12:00:40] Production.INFO: ==1599== Releasing lock... [2025-12-05 12:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 12:00:40] Production.INFO: 69.75 MB #Memory Used# [2025-12-05 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 10:00:06 [end_date_ymd] => 2025-12-05 13:00:06 [RateCDR] => 1 ) [2025-12-05 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 10:00:06' and `end` < '2025-12-05 13:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 13:00:19] Production.INFO: count ==5579 [2025-12-05 13:00:22] Production.ERROR: pbx CDR StartTime 2025-12-05 10:00:06 - End Time 2025-12-05 13:00:06 [2025-12-05 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16324837', 'tblTempUsageDetail_20' ) start [2025-12-05 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16324837', 'tblTempUsageDetail_20' ) end [2025-12-05 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16324837', 'tblTempVendorCDR_20' ) start [2025-12-05 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16324837', 'tblTempVendorCDR_20' ) end [2025-12-05 13:00:22] Production.INFO: ProcessCDR(1,16324837,1,1,2) [2025-12-05 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16324837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 13:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16324837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 13:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16324837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 13:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16324837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 13:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16324837', 'tblTempUsageDetail_20' ) start [2025-12-05 13:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16324837', 'tblTempUsageDetail_20' ) end [2025-12-05 13:00:36] Production.ERROR: pbx prc_insertCDR start [2025-12-05 13:00:38] Production.ERROR: pbx prc_insertCDR end [2025-12-05 13:00:38] Production.INFO: ==6737== Releasing lock... [2025-12-05 13:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 13:00:38] Production.INFO: 70 MB #Memory Used# [2025-12-05 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 11:00:06 [end_date_ymd] => 2025-12-05 14:00:06 [RateCDR] => 1 ) [2025-12-05 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 11:00:06' and `end` < '2025-12-05 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 14:00:20] Production.INFO: count ==5365 [2025-12-05 14:00:22] Production.ERROR: pbx CDR StartTime 2025-12-05 11:00:06 - End Time 2025-12-05 14:00:06 [2025-12-05 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16325084', 'tblTempUsageDetail_20' ) start [2025-12-05 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16325084', 'tblTempUsageDetail_20' ) end [2025-12-05 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16325084', 'tblTempVendorCDR_20' ) start [2025-12-05 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16325084', 'tblTempVendorCDR_20' ) end [2025-12-05 14:00:23] Production.INFO: ProcessCDR(1,16325084,1,1,2) [2025-12-05 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16325084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 14:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16325084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 14:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16325084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 14:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16325084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 14:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16325084', 'tblTempUsageDetail_20' ) start [2025-12-05 14:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16325084', 'tblTempUsageDetail_20' ) end [2025-12-05 14:00:35] Production.ERROR: pbx prc_insertCDR start [2025-12-05 14:00:37] Production.ERROR: pbx prc_insertCDR end [2025-12-05 14:00:37] Production.INFO: ==12521== Releasing lock... [2025-12-05 14:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 14:00:37] Production.INFO: 68.25 MB #Memory Used# [2025-12-05 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 12:00:05 [end_date_ymd] => 2025-12-05 15:00:05 [RateCDR] => 1 ) [2025-12-05 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 12:00:05' and `end` < '2025-12-05 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 15:00:19] Production.INFO: count ==5378 [2025-12-05 15:00:22] Production.ERROR: pbx CDR StartTime 2025-12-05 12:00:05 - End Time 2025-12-05 15:00:05 [2025-12-05 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16325331', 'tblTempUsageDetail_20' ) start [2025-12-05 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16325331', 'tblTempUsageDetail_20' ) end [2025-12-05 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16325331', 'tblTempVendorCDR_20' ) start [2025-12-05 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16325331', 'tblTempVendorCDR_20' ) end [2025-12-05 15:00:22] Production.INFO: ProcessCDR(1,16325331,1,1,2) [2025-12-05 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16325331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 15:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16325331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 15:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16325331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 15:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16325331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 15:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16325331', 'tblTempUsageDetail_20' ) start [2025-12-05 15:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16325331', 'tblTempUsageDetail_20' ) end [2025-12-05 15:00:35] Production.ERROR: pbx prc_insertCDR start [2025-12-05 15:00:38] Production.ERROR: pbx prc_insertCDR end [2025-12-05 15:00:38] Production.INFO: ==17709== Releasing lock... [2025-12-05 15:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 15:00:38] Production.INFO: 68.5 MB #Memory Used# [2025-12-05 16:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 13:00:07 [end_date_ymd] => 2025-12-05 16:00:07 [RateCDR] => 1 ) [2025-12-05 16:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 13:00:07' and `end` < '2025-12-05 16:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 16:00:20] Production.INFO: count ==5416 [2025-12-05 16:00:23] Production.ERROR: pbx CDR StartTime 2025-12-05 13:00:07 - End Time 2025-12-05 16:00:07 [2025-12-05 16:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16325578', 'tblTempUsageDetail_20' ) start [2025-12-05 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16325578', 'tblTempUsageDetail_20' ) end [2025-12-05 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16325578', 'tblTempVendorCDR_20' ) start [2025-12-05 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16325578', 'tblTempVendorCDR_20' ) end [2025-12-05 16:00:23] Production.INFO: ProcessCDR(1,16325578,1,1,2) [2025-12-05 16:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16325578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 16:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16325578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 16:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16325578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 16:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16325578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 16:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16325578', 'tblTempUsageDetail_20' ) start [2025-12-05 16:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16325578', 'tblTempUsageDetail_20' ) end [2025-12-05 16:00:36] Production.ERROR: pbx prc_insertCDR start [2025-12-05 16:00:38] Production.ERROR: pbx prc_insertCDR end [2025-12-05 16:00:38] Production.INFO: ==22517== Releasing lock... [2025-12-05 16:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 16:00:38] Production.INFO: 68.75 MB #Memory Used# [2025-12-05 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 14:00:06 [end_date_ymd] => 2025-12-05 17:00:06 [RateCDR] => 1 ) [2025-12-05 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 14:00:06' and `end` < '2025-12-05 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 17:00:30] Production.INFO: count ==5653 [2025-12-05 17:00:32] Production.ERROR: pbx CDR StartTime 2025-12-05 14:00:06 - End Time 2025-12-05 17:00:06 [2025-12-05 17:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 17:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16325825', 'tblTempUsageDetail_20' ) start [2025-12-05 17:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16325825', 'tblTempUsageDetail_20' ) end [2025-12-05 17:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16325825', 'tblTempVendorCDR_20' ) start [2025-12-05 17:00:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16325825', 'tblTempVendorCDR_20' ) end [2025-12-05 17:00:33] Production.INFO: ProcessCDR(1,16325825,1,1,2) [2025-12-05 17:00:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16325825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 17:00:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16325825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 17:00:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16325825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 17:00:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16325825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 17:00:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16325825', 'tblTempUsageDetail_20' ) start [2025-12-05 17:00:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16325825', 'tblTempUsageDetail_20' ) end [2025-12-05 17:00:46] Production.ERROR: pbx prc_insertCDR start [2025-12-05 17:00:49] Production.ERROR: pbx prc_insertCDR end [2025-12-05 17:00:49] Production.INFO: ==26896== Releasing lock... [2025-12-05 17:00:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 17:00:49] Production.INFO: 70.5 MB #Memory Used# [2025-12-05 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 15:00:06 [end_date_ymd] => 2025-12-05 18:00:06 [RateCDR] => 1 ) [2025-12-05 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 15:00:06' and `end` < '2025-12-05 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 18:00:19] Production.INFO: count ==4957 [2025-12-05 18:00:21] Production.ERROR: pbx CDR StartTime 2025-12-05 15:00:06 - End Time 2025-12-05 18:00:06 [2025-12-05 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16326071', 'tblTempUsageDetail_20' ) start [2025-12-05 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16326071', 'tblTempUsageDetail_20' ) end [2025-12-05 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16326071', 'tblTempVendorCDR_20' ) start [2025-12-05 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16326071', 'tblTempVendorCDR_20' ) end [2025-12-05 18:00:22] Production.INFO: ProcessCDR(1,16326071,1,1,2) [2025-12-05 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16326071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 18:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16326071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 18:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16326071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 18:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16326071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 18:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16326071', 'tblTempUsageDetail_20' ) start [2025-12-05 18:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16326071', 'tblTempUsageDetail_20' ) end [2025-12-05 18:00:33] Production.ERROR: pbx prc_insertCDR start [2025-12-05 18:00:35] Production.ERROR: pbx prc_insertCDR end [2025-12-05 18:00:35] Production.INFO: ==31440== Releasing lock... [2025-12-05 18:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 18:00:35] Production.INFO: 65.25 MB #Memory Used# [2025-12-05 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 16:00:06 [end_date_ymd] => 2025-12-05 19:00:06 [RateCDR] => 1 ) [2025-12-05 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 16:00:06' and `end` < '2025-12-05 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 19:00:18] Production.INFO: count ==4294 [2025-12-05 19:00:20] Production.ERROR: pbx CDR StartTime 2025-12-05 16:00:06 - End Time 2025-12-05 19:00:06 [2025-12-05 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16326318', 'tblTempUsageDetail_20' ) start [2025-12-05 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16326318', 'tblTempUsageDetail_20' ) end [2025-12-05 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16326318', 'tblTempVendorCDR_20' ) start [2025-12-05 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16326318', 'tblTempVendorCDR_20' ) end [2025-12-05 19:00:20] Production.INFO: ProcessCDR(1,16326318,1,1,2) [2025-12-05 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16326318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 19:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16326318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 19:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16326318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 19:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16326318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 19:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16326318', 'tblTempUsageDetail_20' ) start [2025-12-05 19:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16326318', 'tblTempUsageDetail_20' ) end [2025-12-05 19:00:31] Production.ERROR: pbx prc_insertCDR start [2025-12-05 19:00:32] Production.ERROR: pbx prc_insertCDR end [2025-12-05 19:00:32] Production.INFO: ==3828== Releasing lock... [2025-12-05 19:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 19:00:32] Production.INFO: 60.25 MB #Memory Used# [2025-12-05 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 17:00:06 [end_date_ymd] => 2025-12-05 20:00:06 [RateCDR] => 1 ) [2025-12-05 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 17:00:06' and `end` < '2025-12-05 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 20:00:18] Production.INFO: count ==3151 [2025-12-05 20:00:20] Production.ERROR: pbx CDR StartTime 2025-12-05 17:00:06 - End Time 2025-12-05 20:00:06 [2025-12-05 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16326565', 'tblTempUsageDetail_20' ) start [2025-12-05 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16326565', 'tblTempUsageDetail_20' ) end [2025-12-05 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16326565', 'tblTempVendorCDR_20' ) start [2025-12-05 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16326565', 'tblTempVendorCDR_20' ) end [2025-12-05 20:00:20] Production.INFO: ProcessCDR(1,16326565,1,1,2) [2025-12-05 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16326565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 20:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16326565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 20:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16326565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 20:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16326565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 20:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16326565', 'tblTempUsageDetail_20' ) start [2025-12-05 20:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16326565', 'tblTempUsageDetail_20' ) end [2025-12-05 20:00:31] Production.ERROR: pbx prc_insertCDR start [2025-12-05 20:00:32] Production.ERROR: pbx prc_insertCDR end [2025-12-05 20:00:32] Production.INFO: ==8244== Releasing lock... [2025-12-05 20:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 20:00:32] Production.INFO: 51.75 MB #Memory Used# [2025-12-05 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 18:00:06 [end_date_ymd] => 2025-12-05 21:00:06 [RateCDR] => 1 ) [2025-12-05 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 18:00:06' and `end` < '2025-12-05 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 21:00:18] Production.INFO: count ==2555 [2025-12-05 21:00:19] Production.ERROR: pbx CDR StartTime 2025-12-05 18:00:06 - End Time 2025-12-05 21:00:06 [2025-12-05 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16326812', 'tblTempUsageDetail_20' ) start [2025-12-05 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16326812', 'tblTempUsageDetail_20' ) end [2025-12-05 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16326812', 'tblTempVendorCDR_20' ) start [2025-12-05 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16326812', 'tblTempVendorCDR_20' ) end [2025-12-05 21:00:19] Production.INFO: ProcessCDR(1,16326812,1,1,2) [2025-12-05 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16326812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 21:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16326812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 21:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16326812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 21:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16326812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 21:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16326812', 'tblTempUsageDetail_20' ) start [2025-12-05 21:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16326812', 'tblTempUsageDetail_20' ) end [2025-12-05 21:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-05 21:00:31] Production.ERROR: pbx prc_insertCDR end [2025-12-05 21:00:31] Production.INFO: ==12984== Releasing lock... [2025-12-05 21:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 21:00:31] Production.INFO: 47.25 MB #Memory Used# [2025-12-05 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 19:00:07 [end_date_ymd] => 2025-12-05 22:00:07 [RateCDR] => 1 ) [2025-12-05 22:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 19:00:07' and `end` < '2025-12-05 22:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 22:00:19] Production.INFO: count ==1892 [2025-12-05 22:00:20] Production.ERROR: pbx CDR StartTime 2025-12-05 19:00:07 - End Time 2025-12-05 22:00:07 [2025-12-05 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16327059', 'tblTempUsageDetail_20' ) start [2025-12-05 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16327059', 'tblTempUsageDetail_20' ) end [2025-12-05 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16327059', 'tblTempVendorCDR_20' ) start [2025-12-05 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16327059', 'tblTempVendorCDR_20' ) end [2025-12-05 22:00:20] Production.INFO: ProcessCDR(1,16327059,1,1,2) [2025-12-05 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16327059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 22:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16327059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 22:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16327059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 22:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16327059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 22:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16327059', 'tblTempUsageDetail_20' ) start [2025-12-05 22:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16327059', 'tblTempUsageDetail_20' ) end [2025-12-05 22:00:31] Production.ERROR: pbx prc_insertCDR start [2025-12-05 22:00:31] Production.ERROR: pbx prc_insertCDR end [2025-12-05 22:00:31] Production.INFO: ==17682== Releasing lock... [2025-12-05 22:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 22:00:31] Production.INFO: 42.25 MB #Memory Used# [2025-12-05 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 20:00:05 [end_date_ymd] => 2025-12-05 23:00:05 [RateCDR] => 1 ) [2025-12-05 23:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 20:00:05' and `end` < '2025-12-05 23:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-05 23:00:17] Production.INFO: count ==1631 [2025-12-05 23:00:18] Production.ERROR: pbx CDR StartTime 2025-12-05 20:00:05 - End Time 2025-12-05 23:00:05 [2025-12-05 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-05 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16327305', 'tblTempUsageDetail_20' ) start [2025-12-05 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16327305', 'tblTempUsageDetail_20' ) end [2025-12-05 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16327305', 'tblTempVendorCDR_20' ) start [2025-12-05 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16327305', 'tblTempVendorCDR_20' ) end [2025-12-05 23:00:18] Production.INFO: ProcessCDR(1,16327305,1,1,2) [2025-12-05 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16327305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 23:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16327305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-05 23:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16327305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 23:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16327305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-05 23:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16327305', 'tblTempUsageDetail_20' ) start [2025-12-05 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16327305', 'tblTempUsageDetail_20' ) end [2025-12-05 23:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-05 23:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-05 23:00:29] Production.INFO: ==22318== Releasing lock... [2025-12-05 23:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-05 23:00:29] Production.INFO: 40.5 MB #Memory Used#