[2026-01-04 00:00:05] Production.INFO: next invoice date [2026-01-04 00:00:05] Production.INFO: 2026-02-04 [2026-01-04 00:00:05] Production.INFO: getdaysdiff [2026-01-04 00:00:05] Production.INFO: +31 [2026-01-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (209,16,1,31,31,'RMScheduler',2026-01-04 00:00:05,0,0,,,0) [2026-01-04 00:00:05] Production.INFO: next invoice date [2026-01-04 00:00:05] Production.INFO: 2026-02-04 [2026-01-04 00:00:05] Production.INFO: getdaysdiff [2026-01-04 00:00:05] Production.INFO: +31 [2026-01-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (209,13,2,31,31,'RMScheduler',2026-01-04 00:00:05,0,0,,,0) [2026-01-04 00:00:05] Production.INFO: next invoice date [2026-01-04 00:00:05] Production.INFO: 2026-02-04 [2026-01-04 00:00:05] Production.INFO: getdaysdiff [2026-01-04 00:00:05] Production.INFO: +31 [2026-01-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (213,11,1,31,31,'RMScheduler',2026-01-04 00:00:05,0,0,,,0) [2026-01-04 00:00:05] Production.INFO: next invoice date [2026-01-04 00:00:05] Production.INFO: 2026-02-04 [2026-01-04 00:00:05] Production.INFO: getdaysdiff [2026-01-04 00:00:05] Production.INFO: +31 [2026-01-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (213,13,2,31,31,'RMScheduler',2026-01-04 00:00:05,0,0,,,0) [2026-01-04 00:00:05] Production.INFO: next invoice date [2026-01-04 00:00:05] Production.INFO: 2026-02-04 [2026-01-04 00:00:05] Production.INFO: getdaysdiff [2026-01-04 00:00:05] Production.INFO: +31 [2026-01-04 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (213,16,1,31,31,'RMScheduler',2026-01-04 00:00:05,1,0,,,0) [2026-01-04 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 21:00:06 [end_date_ymd] => 2026-01-04 00:00:06 [RateCDR] => 1 ) [2026-01-04 00: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` >= '2026-01-03 21:00:06' and `end` < '2026-01-04 00: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 ,'') [2026-01-04 00:00:23] Production.INFO: count ==993 [2026-01-04 00:00:23] Production.ERROR: pbx CDR StartTime 2026-01-03 21:00:06 - End Time 2026-01-04 00:00:06 [2026-01-04 00:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16499445', 'tblTempUsageDetail_20' ) start [2026-01-04 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16499445', 'tblTempUsageDetail_20' ) end [2026-01-04 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16499445', 'tblTempVendorCDR_20' ) start [2026-01-04 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16499445', 'tblTempVendorCDR_20' ) end [2026-01-04 00:00:23] Production.INFO: ProcessCDR(1,16499445,1,1,2) [2026-01-04 00:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16499445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 00:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16499445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 00:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16499445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 00:07:13] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16499445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 00:07:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16499445', 'tblTempUsageDetail_20' ) start [2026-01-04 00:07:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16499445', 'tblTempUsageDetail_20' ) end [2026-01-04 00:07:13] Production.ERROR: pbx prc_insertCDR start [2026-01-04 00:07:13] Production.ERROR: pbx prc_insertCDR end [2026-01-04 00:07:17] Production.INFO: ==25303== Releasing lock... [2026-01-04 00:07:17] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 00:07:17] Production.INFO: 39.25 MB #Memory Used# [2026-01-04 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 22:00:06 [end_date_ymd] => 2026-01-04 01:00:06 [RateCDR] => 1 ) [2026-01-04 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` >= '2026-01-03 22:00:06' and `end` < '2026-01-04 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 ,'') [2026-01-04 01:00:42] Production.INFO: count ==640 [2026-01-04 01:00:42] Production.ERROR: pbx CDR StartTime 2026-01-03 22:00:06 - End Time 2026-01-04 01:00:06 [2026-01-04 01:00:42] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 01:00:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16499692', 'tblTempUsageDetail_20' ) start [2026-01-04 01:00:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16499692', 'tblTempUsageDetail_20' ) end [2026-01-04 01:00:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16499692', 'tblTempVendorCDR_20' ) start [2026-01-04 01:00:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16499692', 'tblTempVendorCDR_20' ) end [2026-01-04 01:00:42] Production.INFO: ProcessCDR(1,16499692,1,1,2) [2026-01-04 01:00:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16499692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 01:04:01] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16499692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 01:04:01] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16499692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 01:08:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16499692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 01:08:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16499692', 'tblTempUsageDetail_20' ) start [2026-01-04 01:08:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16499692', 'tblTempUsageDetail_20' ) end [2026-01-04 01:08:17] Production.ERROR: pbx prc_insertCDR start [2026-01-04 01:08:17] Production.ERROR: pbx prc_insertCDR end [2026-01-04 01:08:17] Production.INFO: ==29800== Releasing lock... [2026-01-04 01:08:17] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 01:08:17] Production.INFO: 33 MB #Memory Used# [2026-01-04 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 23:00:06 [end_date_ymd] => 2026-01-04 02:00:06 [RateCDR] => 1 ) [2026-01-04 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-03 23:00:06' and `end` < '2026-01-04 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-04 02:00:18] Production.INFO: count ==772 [2026-01-04 02:00:18] Production.ERROR: pbx CDR StartTime 2026-01-03 23:00:06 - End Time 2026-01-04 02:00:06 [2026-01-04 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16499939', 'tblTempUsageDetail_20' ) start [2026-01-04 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16499939', 'tblTempUsageDetail_20' ) end [2026-01-04 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16499939', 'tblTempVendorCDR_20' ) start [2026-01-04 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16499939', 'tblTempVendorCDR_20' ) end [2026-01-04 02:00:18] Production.INFO: ProcessCDR(1,16499939,1,1,2) [2026-01-04 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16499939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 02:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16499939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 02:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16499939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 02:07:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16499939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 02:07:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16499939', 'tblTempUsageDetail_20' ) start [2026-01-04 02:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16499939', 'tblTempUsageDetail_20' ) end [2026-01-04 02:07:19] Production.ERROR: pbx prc_insertCDR start [2026-01-04 02:07:19] Production.ERROR: pbx prc_insertCDR end [2026-01-04 02:07:19] Production.INFO: ==2089== Releasing lock... [2026-01-04 02:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 02:07:19] Production.INFO: 34 MB #Memory Used# [2026-01-04 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 00:00:05 [end_date_ymd] => 2026-01-04 03:00:05 [RateCDR] => 1 ) [2026-01-04 03: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` >= '2026-01-04 00:00:05' and `end` < '2026-01-04 03: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 ,'') [2026-01-04 03:00:17] Production.INFO: count ==771 [2026-01-04 03:00:18] Production.ERROR: pbx CDR StartTime 2026-01-04 00:00:05 - End Time 2026-01-04 03:00:05 [2026-01-04 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16500186', 'tblTempUsageDetail_20' ) start [2026-01-04 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16500186', 'tblTempUsageDetail_20' ) end [2026-01-04 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16500186', 'tblTempVendorCDR_20' ) start [2026-01-04 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16500186', 'tblTempVendorCDR_20' ) end [2026-01-04 03:00:18] Production.INFO: ProcessCDR(1,16500186,1,1,2) [2026-01-04 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16500186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 03:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16500186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 03:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16500186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 03:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16500186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 03:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16500186', 'tblTempUsageDetail_20' ) start [2026-01-04 03:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16500186', 'tblTempUsageDetail_20' ) end [2026-01-04 03:07:23] Production.ERROR: pbx prc_insertCDR start [2026-01-04 03:07:23] Production.ERROR: pbx prc_insertCDR end [2026-01-04 03:07:23] Production.INFO: ==6512== Releasing lock... [2026-01-04 03:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 03:07:23] Production.INFO: 34 MB #Memory Used# [2026-01-04 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 01:00:06 [end_date_ymd] => 2026-01-04 04:00:06 [RateCDR] => 1 ) [2026-01-04 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` >= '2026-01-04 01:00:06' and `end` < '2026-01-04 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 ,'') [2026-01-04 04:00:18] Production.INFO: count ==662 [2026-01-04 04:00:18] Production.ERROR: pbx CDR StartTime 2026-01-04 01:00:06 - End Time 2026-01-04 04:00:06 [2026-01-04 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16500434', 'tblTempUsageDetail_20' ) start [2026-01-04 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16500434', 'tblTempUsageDetail_20' ) end [2026-01-04 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16500434', 'tblTempVendorCDR_20' ) start [2026-01-04 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16500434', 'tblTempVendorCDR_20' ) end [2026-01-04 04:00:18] Production.INFO: ProcessCDR(1,16500434,1,1,2) [2026-01-04 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16500434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 04:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16500434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 04:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16500434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 04:07:09] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16500434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 04:07:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16500434', 'tblTempUsageDetail_20' ) start [2026-01-04 04:07:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16500434', 'tblTempUsageDetail_20' ) end [2026-01-04 04:07:10] Production.ERROR: pbx prc_insertCDR start [2026-01-04 04:07:10] Production.ERROR: pbx prc_insertCDR end [2026-01-04 04:07:10] Production.INFO: ==10807== Releasing lock... [2026-01-04 04:07:10] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 04:07:10] Production.INFO: 33.75 MB #Memory Used# [2026-01-04 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 02:00:06 [end_date_ymd] => 2026-01-04 05:00:06 [RateCDR] => 1 ) [2026-01-04 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` >= '2026-01-04 02:00:06' and `end` < '2026-01-04 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 ,'') [2026-01-04 05:00:19] Production.INFO: count ==443 [2026-01-04 05:00:19] Production.ERROR: pbx CDR StartTime 2026-01-04 02:00:06 - End Time 2026-01-04 05:00:06 [2026-01-04 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16500682', 'tblTempUsageDetail_20' ) start [2026-01-04 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16500682', 'tblTempUsageDetail_20' ) end [2026-01-04 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16500682', 'tblTempVendorCDR_20' ) start [2026-01-04 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16500682', 'tblTempVendorCDR_20' ) end [2026-01-04 05:00:19] Production.INFO: ProcessCDR(1,16500682,1,1,2) [2026-01-04 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16500682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 05:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16500682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 05:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16500682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 05:07:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16500682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 05:07:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16500682', 'tblTempUsageDetail_20' ) start [2026-01-04 05:07:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16500682', 'tblTempUsageDetail_20' ) end [2026-01-04 05:07:16] Production.ERROR: pbx prc_insertCDR start [2026-01-04 05:07:16] Production.ERROR: pbx prc_insertCDR end [2026-01-04 05:07:16] Production.INFO: ==15263== Releasing lock... [2026-01-04 05:07:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 05:07:16] Production.INFO: 31.75 MB #Memory Used# [2026-01-04 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 03:00:05 [end_date_ymd] => 2026-01-04 06:00:05 [RateCDR] => 1 ) [2026-01-04 06: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` >= '2026-01-04 03:00:05' and `end` < '2026-01-04 06: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 ,'') [2026-01-04 06:00:17] Production.INFO: count ==259 [2026-01-04 06:00:18] Production.ERROR: pbx CDR StartTime 2026-01-04 03:00:05 - End Time 2026-01-04 06:00:05 [2026-01-04 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16500929', 'tblTempUsageDetail_20' ) start [2026-01-04 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16500929', 'tblTempUsageDetail_20' ) end [2026-01-04 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16500929', 'tblTempVendorCDR_20' ) start [2026-01-04 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16500929', 'tblTempVendorCDR_20' ) end [2026-01-04 06:00:18] Production.INFO: ProcessCDR(1,16500929,1,1,2) [2026-01-04 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16500929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 06:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16500929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 06:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16500929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 06:07:04] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16500929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 06:07:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16500929', 'tblTempUsageDetail_20' ) start [2026-01-04 06:07:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16500929', 'tblTempUsageDetail_20' ) end [2026-01-04 06:07:05] Production.ERROR: pbx prc_insertCDR start [2026-01-04 06:07:05] Production.ERROR: pbx prc_insertCDR end [2026-01-04 06:07:05] Production.INFO: ==19595== Releasing lock... [2026-01-04 06:07:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 06:07:05] Production.INFO: 30.25 MB #Memory Used# [2026-01-04 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 04:00:06 [end_date_ymd] => 2026-01-04 07:00:06 [RateCDR] => 1 ) [2026-01-04 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` >= '2026-01-04 04:00:06' and `end` < '2026-01-04 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 ,'') [2026-01-04 07:00:18] Production.INFO: count ==148 [2026-01-04 07:00:18] Production.ERROR: pbx CDR StartTime 2026-01-04 04:00:06 - End Time 2026-01-04 07:00:06 [2026-01-04 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16501176', 'tblTempUsageDetail_20' ) start [2026-01-04 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16501176', 'tblTempUsageDetail_20' ) end [2026-01-04 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16501176', 'tblTempVendorCDR_20' ) start [2026-01-04 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16501176', 'tblTempVendorCDR_20' ) end [2026-01-04 07:00:18] Production.INFO: ProcessCDR(1,16501176,1,1,2) [2026-01-04 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16501176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 07:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16501176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 07:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16501176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 07:07:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16501176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 07:07:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16501176', 'tblTempUsageDetail_20' ) start [2026-01-04 07:07:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16501176', 'tblTempUsageDetail_20' ) end [2026-01-04 07:07:01] Production.ERROR: pbx prc_insertCDR start [2026-01-04 07:07:01] Production.ERROR: pbx prc_insertCDR end [2026-01-04 07:07:01] Production.INFO: ==23988== Releasing lock... [2026-01-04 07:07:01] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 07:07:01] Production.INFO: 29 MB #Memory Used# [2026-01-04 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 05:00:06 [end_date_ymd] => 2026-01-04 08:00:06 [RateCDR] => 1 ) [2026-01-04 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` >= '2026-01-04 05:00:06' and `end` < '2026-01-04 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 ,'') [2026-01-04 08:00:18] Production.INFO: count ==97 [2026-01-04 08:00:18] Production.ERROR: pbx CDR StartTime 2026-01-04 05:00:06 - End Time 2026-01-04 08:00:06 [2026-01-04 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16501423', 'tblTempUsageDetail_20' ) start [2026-01-04 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16501423', 'tblTempUsageDetail_20' ) end [2026-01-04 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16501423', 'tblTempVendorCDR_20' ) start [2026-01-04 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16501423', 'tblTempVendorCDR_20' ) end [2026-01-04 08:00:18] Production.INFO: ProcessCDR(1,16501423,1,1,2) [2026-01-04 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16501423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 08:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16501423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 08:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16501423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 08:07:09] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16501423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 08:07:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16501423', 'tblTempUsageDetail_20' ) start [2026-01-04 08:07:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16501423', 'tblTempUsageDetail_20' ) end [2026-01-04 08:07:09] Production.ERROR: pbx prc_insertCDR start [2026-01-04 08:07:09] Production.ERROR: pbx prc_insertCDR end [2026-01-04 08:07:09] Production.INFO: ==28526== Releasing lock... [2026-01-04 08:07:09] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 08:07:09] Production.INFO: 28.75 MB #Memory Used# [2026-01-04 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 06:00:05 [end_date_ymd] => 2026-01-04 09:00:05 [RateCDR] => 1 ) [2026-01-04 09: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` >= '2026-01-04 06:00:05' and `end` < '2026-01-04 09: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 ,'') [2026-01-04 09:00:17] Production.INFO: count ==92 [2026-01-04 09:00:17] Production.ERROR: pbx CDR StartTime 2026-01-04 06:00:05 - End Time 2026-01-04 09:00:05 [2026-01-04 09:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16501670', 'tblTempUsageDetail_20' ) start [2026-01-04 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16501670', 'tblTempUsageDetail_20' ) end [2026-01-04 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16501670', 'tblTempVendorCDR_20' ) start [2026-01-04 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16501670', 'tblTempVendorCDR_20' ) end [2026-01-04 09:00:17] Production.INFO: ProcessCDR(1,16501670,1,1,2) [2026-01-04 09:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16501670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 09:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16501670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 09:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16501670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 09:07:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16501670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 09:07:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16501670', 'tblTempUsageDetail_20' ) start [2026-01-04 09:07:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16501670', 'tblTempUsageDetail_20' ) end [2026-01-04 09:07:00] Production.ERROR: pbx prc_insertCDR start [2026-01-04 09:07:00] Production.ERROR: pbx prc_insertCDR end [2026-01-04 09:07:00] Production.INFO: ==452== Releasing lock... [2026-01-04 09:07:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 09:07:00] Production.INFO: 28.5 MB #Memory Used# [2026-01-04 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 07:00:05 [end_date_ymd] => 2026-01-04 10:00:05 [RateCDR] => 1 ) [2026-01-04 10: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` >= '2026-01-04 07:00:05' and `end` < '2026-01-04 10: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 ,'') [2026-01-04 10:00:17] Production.INFO: count ==143 [2026-01-04 10:00:17] Production.ERROR: pbx CDR StartTime 2026-01-04 07:00:05 - End Time 2026-01-04 10:00:05 [2026-01-04 10:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 10:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16501917', 'tblTempUsageDetail_20' ) start [2026-01-04 10:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16501917', 'tblTempUsageDetail_20' ) end [2026-01-04 10:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16501917', 'tblTempVendorCDR_20' ) start [2026-01-04 10:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16501917', 'tblTempVendorCDR_20' ) end [2026-01-04 10:00:17] Production.INFO: ProcessCDR(1,16501917,1,1,2) [2026-01-04 10:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16501917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 10:03:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16501917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 10:03:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16501917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 10:07:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16501917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 10:07:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16501917', 'tblTempUsageDetail_20' ) start [2026-01-04 10:07:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16501917', 'tblTempUsageDetail_20' ) end [2026-01-04 10:07:17] Production.ERROR: pbx prc_insertCDR start [2026-01-04 10:07:17] Production.ERROR: pbx prc_insertCDR end [2026-01-04 10:07:17] Production.INFO: ==5059== Releasing lock... [2026-01-04 10:07:17] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 10:07:17] Production.INFO: 29.5 MB #Memory Used# [2026-01-04 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 08:00:05 [end_date_ymd] => 2026-01-04 11:00:05 [RateCDR] => 1 ) [2026-01-04 11: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` >= '2026-01-04 08:00:05' and `end` < '2026-01-04 11: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 ,'') [2026-01-04 11:00:17] Production.INFO: count ==273 [2026-01-04 11:00:17] Production.ERROR: pbx CDR StartTime 2026-01-04 08:00:05 - End Time 2026-01-04 11:00:05 [2026-01-04 11:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 11:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16502164', 'tblTempUsageDetail_20' ) start [2026-01-04 11:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16502164', 'tblTempUsageDetail_20' ) end [2026-01-04 11:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16502164', 'tblTempVendorCDR_20' ) start [2026-01-04 11:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16502164', 'tblTempVendorCDR_20' ) end [2026-01-04 11:00:17] Production.INFO: ProcessCDR(1,16502164,1,1,2) [2026-01-04 11:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16502164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 11:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16502164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 11:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16502164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 11:07:05] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16502164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 11:07:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16502164', 'tblTempUsageDetail_20' ) start [2026-01-04 11:07:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16502164', 'tblTempUsageDetail_20' ) end [2026-01-04 11:07:05] Production.ERROR: pbx prc_insertCDR start [2026-01-04 11:07:06] Production.ERROR: pbx prc_insertCDR end [2026-01-04 11:07:06] Production.INFO: ==9472== Releasing lock... [2026-01-04 11:07:06] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 11:07:06] Production.INFO: 30.75 MB #Memory Used# [2026-01-04 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 09:00:06 [end_date_ymd] => 2026-01-04 12:00:06 [RateCDR] => 1 ) [2026-01-04 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` >= '2026-01-04 09:00:06' and `end` < '2026-01-04 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 ,'') [2026-01-04 12:00:18] Production.INFO: count ==558 [2026-01-04 12:00:18] Production.ERROR: pbx CDR StartTime 2026-01-04 09:00:06 - End Time 2026-01-04 12:00:06 [2026-01-04 12:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16502411', 'tblTempUsageDetail_20' ) start [2026-01-04 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16502411', 'tblTempUsageDetail_20' ) end [2026-01-04 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16502411', 'tblTempVendorCDR_20' ) start [2026-01-04 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16502411', 'tblTempVendorCDR_20' ) end [2026-01-04 12:00:18] Production.INFO: ProcessCDR(1,16502411,1,1,2) [2026-01-04 12:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16502411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 12:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16502411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 12:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16502411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 12:07:08] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16502411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 12:07:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16502411', 'tblTempUsageDetail_20' ) start [2026-01-04 12:07:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16502411', 'tblTempUsageDetail_20' ) end [2026-01-04 12:07:09] Production.ERROR: pbx prc_insertCDR start [2026-01-04 12:07:10] Production.ERROR: pbx prc_insertCDR end [2026-01-04 12:07:10] Production.INFO: ==14149== Releasing lock... [2026-01-04 12:07:10] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 12:07:10] Production.INFO: 32.75 MB #Memory Used# [2026-01-04 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 10:00:05 [end_date_ymd] => 2026-01-04 13:00:05 [RateCDR] => 1 ) [2026-01-04 13:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-04 10:00:05' and `end` < '2026-01-04 13:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-04 13:00:17] Production.INFO: count ==788 [2026-01-04 13:00:17] Production.ERROR: pbx CDR StartTime 2026-01-04 10:00:05 - End Time 2026-01-04 13:00:05 [2026-01-04 13:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 13:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16502658', 'tblTempUsageDetail_20' ) start [2026-01-04 13:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16502658', 'tblTempUsageDetail_20' ) end [2026-01-04 13:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16502658', 'tblTempVendorCDR_20' ) start [2026-01-04 13:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16502658', 'tblTempVendorCDR_20' ) end [2026-01-04 13:00:17] Production.INFO: ProcessCDR(1,16502658,1,1,2) [2026-01-04 13:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16502658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 13:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16502658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 13:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16502658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 13:07:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16502658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 13:07:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16502658', 'tblTempUsageDetail_20' ) start [2026-01-04 13:07:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16502658', 'tblTempUsageDetail_20' ) end [2026-01-04 13:07:00] Production.ERROR: pbx prc_insertCDR start [2026-01-04 13:07:01] Production.ERROR: pbx prc_insertCDR end [2026-01-04 13:07:01] Production.INFO: ==18573== Releasing lock... [2026-01-04 13:07:01] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 13:07:01] Production.INFO: 34.5 MB #Memory Used# [2026-01-04 14:00:04] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 11:00:04 [end_date_ymd] => 2026-01-04 14:00:04 [RateCDR] => 1 ) [2026-01-04 14:00:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-04 11:00:04' and `end` < '2026-01-04 14:00:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-04 14:00:17] Production.INFO: count ==995 [2026-01-04 14:00:17] Production.ERROR: pbx CDR StartTime 2026-01-04 11:00:04 - End Time 2026-01-04 14:00:04 [2026-01-04 14:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 14:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16502905', 'tblTempUsageDetail_20' ) start [2026-01-04 14:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16502905', 'tblTempUsageDetail_20' ) end [2026-01-04 14:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16502905', 'tblTempVendorCDR_20' ) start [2026-01-04 14:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16502905', 'tblTempVendorCDR_20' ) end [2026-01-04 14:00:17] Production.INFO: ProcessCDR(1,16502905,1,1,2) [2026-01-04 14:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16502905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 14:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16502905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 14:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16502905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 14:06:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16502905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 14:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16502905', 'tblTempUsageDetail_20' ) start [2026-01-04 14:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16502905', 'tblTempUsageDetail_20' ) end [2026-01-04 14:06:59] Production.ERROR: pbx prc_insertCDR start [2026-01-04 14:07:00] Production.ERROR: pbx prc_insertCDR end [2026-01-04 14:07:00] Production.INFO: ==22927== Releasing lock... [2026-01-04 14:07:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 14:07:00] Production.INFO: 36.25 MB #Memory Used# [2026-01-04 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 12:00:05 [end_date_ymd] => 2026-01-04 15:00:05 [RateCDR] => 1 ) [2026-01-04 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` >= '2026-01-04 12:00:05' and `end` < '2026-01-04 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 ,'') [2026-01-04 15:00:18] Production.INFO: count ==1055 [2026-01-04 15:00:18] Production.ERROR: pbx CDR StartTime 2026-01-04 12:00:05 - End Time 2026-01-04 15:00:05 [2026-01-04 15:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16503152', 'tblTempUsageDetail_20' ) start [2026-01-04 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16503152', 'tblTempUsageDetail_20' ) end [2026-01-04 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16503152', 'tblTempVendorCDR_20' ) start [2026-01-04 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16503152', 'tblTempVendorCDR_20' ) end [2026-01-04 15:00:18] Production.INFO: ProcessCDR(1,16503152,1,1,2) [2026-01-04 15:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16503152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 15:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16503152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 15:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16503152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 15:07:07] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16503152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 15:07:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16503152', 'tblTempUsageDetail_20' ) start [2026-01-04 15:07:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16503152', 'tblTempUsageDetail_20' ) end [2026-01-04 15:07:09] Production.ERROR: pbx prc_insertCDR start [2026-01-04 15:07:10] Production.ERROR: pbx prc_insertCDR end [2026-01-04 15:07:10] Production.INFO: ==27288== Releasing lock... [2026-01-04 15:07:10] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 15:07:10] Production.INFO: 36.75 MB #Memory Used# [2026-01-04 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 13:00:05 [end_date_ymd] => 2026-01-04 16:00:05 [RateCDR] => 1 ) [2026-01-04 16: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` >= '2026-01-04 13:00:05' and `end` < '2026-01-04 16: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 ,'') [2026-01-04 16:00:18] Production.INFO: count ==1076 [2026-01-04 16:00:18] Production.ERROR: pbx CDR StartTime 2026-01-04 13:00:05 - End Time 2026-01-04 16:00:05 [2026-01-04 16:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16503399', 'tblTempUsageDetail_20' ) start [2026-01-04 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16503399', 'tblTempUsageDetail_20' ) end [2026-01-04 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16503399', 'tblTempVendorCDR_20' ) start [2026-01-04 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16503399', 'tblTempVendorCDR_20' ) end [2026-01-04 16:00:18] Production.INFO: ProcessCDR(1,16503399,1,1,2) [2026-01-04 16:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16503399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 16:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16503399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 16:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16503399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 16:06:54] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16503399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 16:06:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16503399', 'tblTempUsageDetail_20' ) start [2026-01-04 16:06:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16503399', 'tblTempUsageDetail_20' ) end [2026-01-04 16:06:54] Production.ERROR: pbx prc_insertCDR start [2026-01-04 16:06:55] Production.ERROR: pbx prc_insertCDR end [2026-01-04 16:06:55] Production.INFO: ==31563== Releasing lock... [2026-01-04 16:06:55] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 16:06:55] Production.INFO: 37 MB #Memory Used# [2026-01-04 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 14:00:05 [end_date_ymd] => 2026-01-04 17:00:05 [RateCDR] => 1 ) [2026-01-04 17: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` >= '2026-01-04 14:00:05' and `end` < '2026-01-04 17: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 ,'') [2026-01-04 17:00:18] Production.INFO: count ==1060 [2026-01-04 17:00:18] Production.ERROR: pbx CDR StartTime 2026-01-04 14:00:05 - End Time 2026-01-04 17:00:05 [2026-01-04 17:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16503646', 'tblTempUsageDetail_20' ) start [2026-01-04 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16503646', 'tblTempUsageDetail_20' ) end [2026-01-04 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16503646', 'tblTempVendorCDR_20' ) start [2026-01-04 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16503646', 'tblTempVendorCDR_20' ) end [2026-01-04 17:00:18] Production.INFO: ProcessCDR(1,16503646,1,1,2) [2026-01-04 17:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16503646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 17:03:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16503646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 17:03:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16503646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 17:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16503646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 17:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16503646', 'tblTempUsageDetail_20' ) start [2026-01-04 17:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16503646', 'tblTempUsageDetail_20' ) end [2026-01-04 17:07:31] Production.ERROR: pbx prc_insertCDR start [2026-01-04 17:07:32] Production.ERROR: pbx prc_insertCDR end [2026-01-04 17:07:32] Production.INFO: ==4200== Releasing lock... [2026-01-04 17:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 17:07:32] Production.INFO: 36.25 MB #Memory Used# [2026-01-04 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 15:00:06 [end_date_ymd] => 2026-01-04 18:00:06 [RateCDR] => 1 ) [2026-01-04 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` >= '2026-01-04 15:00:06' and `end` < '2026-01-04 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 ,'') [2026-01-04 18:00:18] Production.INFO: count ==1291 [2026-01-04 18:00:18] Production.ERROR: pbx CDR StartTime 2026-01-04 15:00:06 - End Time 2026-01-04 18:00:06 [2026-01-04 18:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16503889', 'tblTempUsageDetail_20' ) start [2026-01-04 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16503889', 'tblTempUsageDetail_20' ) end [2026-01-04 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16503889', 'tblTempVendorCDR_20' ) start [2026-01-04 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16503889', 'tblTempVendorCDR_20' ) end [2026-01-04 18:00:19] Production.INFO: ProcessCDR(1,16503889,1,1,2) [2026-01-04 18:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16503889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 18:03:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16503889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 18:03:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16503889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 18:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16503889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 18:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16503889', 'tblTempUsageDetail_20' ) start [2026-01-04 18:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16503889', 'tblTempUsageDetail_20' ) end [2026-01-04 18:07:33] Production.ERROR: pbx prc_insertCDR start [2026-01-04 18:07:34] Production.ERROR: pbx prc_insertCDR end [2026-01-04 18:07:34] Production.INFO: ==10190== Releasing lock... [2026-01-04 18:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 18:07:34] Production.INFO: 38 MB #Memory Used# [2026-01-04 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 16:00:06 [end_date_ymd] => 2026-01-04 19:00:06 [RateCDR] => 1 ) [2026-01-04 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` >= '2026-01-04 16:00:06' and `end` < '2026-01-04 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 ,'') [2026-01-04 19:00:18] Production.INFO: count ==1433 [2026-01-04 19:00:19] Production.ERROR: pbx CDR StartTime 2026-01-04 16:00:06 - End Time 2026-01-04 19:00:06 [2026-01-04 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16504136', 'tblTempUsageDetail_20' ) start [2026-01-04 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16504136', 'tblTempUsageDetail_20' ) end [2026-01-04 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16504136', 'tblTempVendorCDR_20' ) start [2026-01-04 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16504136', 'tblTempVendorCDR_20' ) end [2026-01-04 19:00:19] Production.INFO: ProcessCDR(1,16504136,1,1,2) [2026-01-04 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16504136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 19:03:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16504136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 19:03:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16504136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 19:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16504136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 19:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16504136', 'tblTempUsageDetail_20' ) start [2026-01-04 19:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16504136', 'tblTempUsageDetail_20' ) end [2026-01-04 19:07:25] Production.ERROR: pbx prc_insertCDR start [2026-01-04 19:07:25] Production.ERROR: pbx prc_insertCDR end [2026-01-04 19:07:25] Production.INFO: ==15132== Releasing lock... [2026-01-04 19:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 19:07:25] Production.INFO: 38.75 MB #Memory Used# [2026-01-04 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 17:00:05 [end_date_ymd] => 2026-01-04 20:00:05 [RateCDR] => 1 ) [2026-01-04 20: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` >= '2026-01-04 17:00:05' and `end` < '2026-01-04 20: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 ,'') [2026-01-04 20:00:18] Production.INFO: count ==1464 [2026-01-04 20:00:18] Production.ERROR: pbx CDR StartTime 2026-01-04 17:00:05 - End Time 2026-01-04 20:00:05 [2026-01-04 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16504383', 'tblTempUsageDetail_20' ) start [2026-01-04 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16504383', 'tblTempUsageDetail_20' ) end [2026-01-04 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16504383', 'tblTempVendorCDR_20' ) start [2026-01-04 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16504383', 'tblTempVendorCDR_20' ) end [2026-01-04 20:00:19] Production.INFO: ProcessCDR(1,16504383,1,1,2) [2026-01-04 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16504383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 20:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16504383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 20:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16504383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 20:07:03] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16504383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 20:07:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16504383', 'tblTempUsageDetail_20' ) start [2026-01-04 20:07:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16504383', 'tblTempUsageDetail_20' ) end [2026-01-04 20:07:04] Production.ERROR: pbx prc_insertCDR start [2026-01-04 20:07:05] Production.ERROR: pbx prc_insertCDR end [2026-01-04 20:07:05] Production.INFO: ==20233== Releasing lock... [2026-01-04 20:07:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 20:07:05] Production.INFO: 39 MB #Memory Used# [2026-01-04 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 18:00:06 [end_date_ymd] => 2026-01-04 21:00:06 [RateCDR] => 1 ) [2026-01-04 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` >= '2026-01-04 18:00:06' and `end` < '2026-01-04 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 ,'') [2026-01-04 21:00:19] Production.INFO: count ==1202 [2026-01-04 21:00:19] Production.ERROR: pbx CDR StartTime 2026-01-04 18:00:06 - End Time 2026-01-04 21:00:06 [2026-01-04 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16504630', 'tblTempUsageDetail_20' ) start [2026-01-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16504630', 'tblTempUsageDetail_20' ) end [2026-01-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16504630', 'tblTempVendorCDR_20' ) start [2026-01-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16504630', 'tblTempVendorCDR_20' ) end [2026-01-04 21:00:19] Production.INFO: ProcessCDR(1,16504630,1,1,2) [2026-01-04 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16504630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 21:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16504630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 21:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16504630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 21:07:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16504630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 21:07:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16504630', 'tblTempUsageDetail_20' ) start [2026-01-04 21:07:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16504630', 'tblTempUsageDetail_20' ) end [2026-01-04 21:07:01] Production.ERROR: pbx prc_insertCDR start [2026-01-04 21:07:01] Production.ERROR: pbx prc_insertCDR end [2026-01-04 21:07:01] Production.INFO: ==25551== Releasing lock... [2026-01-04 21:07:01] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 21:07:01] Production.INFO: 37.25 MB #Memory Used# [2026-01-04 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 19:00:06 [end_date_ymd] => 2026-01-04 22:00:06 [RateCDR] => 1 ) [2026-01-04 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-04 19:00:06' and `end` < '2026-01-04 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-04 22:00:19] Production.INFO: count ==987 [2026-01-04 22:00:19] Production.ERROR: pbx CDR StartTime 2026-01-04 19:00:06 - End Time 2026-01-04 22:00:06 [2026-01-04 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16504877', 'tblTempUsageDetail_20' ) start [2026-01-04 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16504877', 'tblTempUsageDetail_20' ) end [2026-01-04 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16504877', 'tblTempVendorCDR_20' ) start [2026-01-04 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16504877', 'tblTempVendorCDR_20' ) end [2026-01-04 22:00:19] Production.INFO: ProcessCDR(1,16504877,1,1,2) [2026-01-04 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16504877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 22:03:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16504877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 22:03:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16504877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 22:07:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16504877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 22:07:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16504877', 'tblTempUsageDetail_20' ) start [2026-01-04 22:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16504877', 'tblTempUsageDetail_20' ) end [2026-01-04 22:07:19] Production.ERROR: pbx prc_insertCDR start [2026-01-04 22:07:19] Production.ERROR: pbx prc_insertCDR end [2026-01-04 22:07:19] Production.INFO: ==30490== Releasing lock... [2026-01-04 22:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 22:07:19] Production.INFO: 36 MB #Memory Used# [2026-01-04 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 20:00:05 [end_date_ymd] => 2026-01-04 23:00:05 [RateCDR] => 1 ) [2026-01-04 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` >= '2026-01-04 20:00:05' and `end` < '2026-01-04 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 ,'') [2026-01-04 23:00:17] Production.INFO: count ==807 [2026-01-04 23:00:18] Production.ERROR: pbx CDR StartTime 2026-01-04 20:00:05 - End Time 2026-01-04 23:00:05 [2026-01-04 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-04 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16505124', 'tblTempUsageDetail_20' ) start [2026-01-04 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16505124', 'tblTempUsageDetail_20' ) end [2026-01-04 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16505124', 'tblTempVendorCDR_20' ) start [2026-01-04 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16505124', 'tblTempVendorCDR_20' ) end [2026-01-04 23:00:18] Production.INFO: ProcessCDR(1,16505124,1,1,2) [2026-01-04 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16505124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 23:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16505124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-04 23:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16505124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 23:07:05] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16505124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-04 23:07:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16505124', 'tblTempUsageDetail_20' ) start [2026-01-04 23:07:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16505124', 'tblTempUsageDetail_20' ) end [2026-01-04 23:07:06] Production.ERROR: pbx prc_insertCDR start [2026-01-04 23:07:06] Production.ERROR: pbx prc_insertCDR end [2026-01-04 23:07:06] Production.INFO: ==3136== Releasing lock... [2026-01-04 23:07:06] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-04 23:07:06] Production.INFO: 34.25 MB #Memory Used#