[2026-01-05 00:00:05] Production.INFO: next invoice date [2026-01-05 00:00:05] Production.INFO: 2026-02-05 [2026-01-05 00:00:05] Production.INFO: getdaysdiff [2026-01-05 00:00:05] Production.INFO: +31 [2026-01-05 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (182,11,1,31,31,'RMScheduler',2026-01-05 00:00:05,0,0,,,0) [2026-01-05 00:00:05] Production.INFO: next invoice date [2026-01-05 00:00:05] Production.INFO: 2026-02-05 [2026-01-05 00:00:05] Production.INFO: getdaysdiff [2026-01-05 00:00:05] Production.INFO: +31 [2026-01-05 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (182,13,2,31,31,'RMScheduler',2026-01-05 00:00:05,0,0,,,0) [2026-01-05 00:00:05] Production.INFO: next invoice date [2026-01-05 00:00:05] Production.INFO: 2026-02-05 [2026-01-05 00:00:05] Production.INFO: getdaysdiff [2026-01-05 00:00:05] Production.INFO: +31 [2026-01-05 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (188,16,1,31,31,'RMScheduler',2026-01-05 00:00:05,0,0,,,0) [2026-01-05 00:00:05] Production.INFO: next invoice date [2026-01-05 00:00:05] Production.INFO: 2026-02-05 [2026-01-05 00:00:05] Production.INFO: getdaysdiff [2026-01-05 00:00:05] Production.INFO: +31 [2026-01-05 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (188,13,2,31,31,'RMScheduler',2026-01-05 00:00:05,0,0,,,0) [2026-01-05 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 21:00:07 [end_date_ymd] => 2026-01-05 00:00:07 [RateCDR] => 1 ) [2026-01-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` >= '2026-01-04 21:00:07' and `end` < '2026-01-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 ,'') [2026-01-05 00:00:26] Production.INFO: count ==707 [2026-01-05 00:00:26] Production.ERROR: pbx CDR StartTime 2026-01-04 21:00:07 - End Time 2026-01-05 00:00:07 [2026-01-05 00:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 00:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16505371', 'tblTempUsageDetail_20' ) start [2026-01-05 00:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16505371', 'tblTempUsageDetail_20' ) end [2026-01-05 00:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16505371', 'tblTempVendorCDR_20' ) start [2026-01-05 00:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16505371', 'tblTempVendorCDR_20' ) end [2026-01-05 00:00:26] Production.INFO: ProcessCDR(1,16505371,1,1,2) [2026-01-05 00:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16505371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 00:03:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16505371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 00:03:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16505371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 00:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16505371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 00:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16505371', 'tblTempUsageDetail_20' ) start [2026-01-05 00:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16505371', 'tblTempUsageDetail_20' ) end [2026-01-05 00:07:33] Production.ERROR: pbx prc_insertCDR start [2026-01-05 00:07:33] Production.ERROR: pbx prc_insertCDR end [2026-01-05 00:07:36] Production.INFO: ==7931== Releasing lock... [2026-01-05 00:07:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 00:07:36] Production.INFO: 36.25 MB #Memory Used# [2026-01-05 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 22:00:06 [end_date_ymd] => 2026-01-05 01:00:06 [RateCDR] => 1 ) [2026-01-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` >= '2026-01-04 22:00:06' and `end` < '2026-01-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 ,'') [2026-01-05 01:00:32] Production.INFO: count ==406 [2026-01-05 01:00:32] Production.ERROR: pbx CDR StartTime 2026-01-04 22:00:06 - End Time 2026-01-05 01:00:06 [2026-01-05 01:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 01:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16505618', 'tblTempUsageDetail_20' ) start [2026-01-05 01:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16505618', 'tblTempUsageDetail_20' ) end [2026-01-05 01:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16505618', 'tblTempVendorCDR_20' ) start [2026-01-05 01:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16505618', 'tblTempVendorCDR_20' ) end [2026-01-05 01:00:32] Production.INFO: ProcessCDR(1,16505618,1,1,2) [2026-01-05 01:00:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16505618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 01:03:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16505618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 01:03:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16505618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 01:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16505618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 01:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16505618', 'tblTempUsageDetail_20' ) start [2026-01-05 01:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16505618', 'tblTempUsageDetail_20' ) end [2026-01-05 01:07:34] Production.ERROR: pbx prc_insertCDR start [2026-01-05 01:07:34] Production.ERROR: pbx prc_insertCDR end [2026-01-05 01:07:34] Production.INFO: ==12626== Releasing lock... [2026-01-05 01:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 01:07:34] Production.INFO: 31.5 MB #Memory Used# [2026-01-05 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-04 23:00:06 [end_date_ymd] => 2026-01-05 02:00:06 [RateCDR] => 1 ) [2026-01-05 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-04 23:00:06' and `end` < '2026-01-05 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-05 02:00:19] Production.INFO: count ==826 [2026-01-05 02:00:19] Production.ERROR: pbx CDR StartTime 2026-01-04 23:00:06 - End Time 2026-01-05 02:00:06 [2026-01-05 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16505865', 'tblTempUsageDetail_20' ) start [2026-01-05 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16505865', 'tblTempUsageDetail_20' ) end [2026-01-05 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16505865', 'tblTempVendorCDR_20' ) start [2026-01-05 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16505865', 'tblTempVendorCDR_20' ) end [2026-01-05 02:00:19] Production.INFO: ProcessCDR(1,16505865,1,1,2) [2026-01-05 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16505865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 02:03:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16505865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 02:03:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16505865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 02:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16505865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 02:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16505865', 'tblTempUsageDetail_20' ) start [2026-01-05 02:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16505865', 'tblTempUsageDetail_20' ) end [2026-01-05 02:07:26] Production.ERROR: pbx prc_insertCDR start [2026-01-05 02:07:26] Production.ERROR: pbx prc_insertCDR end [2026-01-05 02:07:26] Production.INFO: ==17264== Releasing lock... [2026-01-05 02:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 02:07:26] Production.INFO: 35.25 MB #Memory Used# [2026-01-05 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 00:00:05 [end_date_ymd] => 2026-01-05 03:00:05 [RateCDR] => 1 ) [2026-01-05 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-05 00:00:05' and `end` < '2026-01-05 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-05 03:00:18] Production.INFO: count ==776 [2026-01-05 03:00:18] Production.ERROR: pbx CDR StartTime 2026-01-05 00:00:05 - End Time 2026-01-05 03:00:05 [2026-01-05 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16506112', 'tblTempUsageDetail_20' ) start [2026-01-05 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16506112', 'tblTempUsageDetail_20' ) end [2026-01-05 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16506112', 'tblTempVendorCDR_20' ) start [2026-01-05 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16506112', 'tblTempVendorCDR_20' ) end [2026-01-05 03:00:18] Production.INFO: ProcessCDR(1,16506112,1,1,2) [2026-01-05 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16506112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 03:03:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16506112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 03:03:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16506112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 03:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16506112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 03:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16506112', 'tblTempUsageDetail_20' ) start [2026-01-05 03:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16506112', 'tblTempUsageDetail_20' ) end [2026-01-05 03:07:30] Production.ERROR: pbx prc_insertCDR start [2026-01-05 03:07:30] Production.ERROR: pbx prc_insertCDR end [2026-01-05 03:07:30] Production.INFO: ==22210== Releasing lock... [2026-01-05 03:07:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 03:07:30] Production.INFO: 34.25 MB #Memory Used# [2026-01-05 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 01:00:06 [end_date_ymd] => 2026-01-05 04:00:06 [RateCDR] => 1 ) [2026-01-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` >= '2026-01-05 01:00:06' and `end` < '2026-01-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 ,'') [2026-01-05 04:00:18] Production.INFO: count ==692 [2026-01-05 04:00:19] Production.ERROR: pbx CDR StartTime 2026-01-05 01:00:06 - End Time 2026-01-05 04:00:06 [2026-01-05 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16506360', 'tblTempUsageDetail_20' ) start [2026-01-05 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16506360', 'tblTempUsageDetail_20' ) end [2026-01-05 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16506360', 'tblTempVendorCDR_20' ) start [2026-01-05 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16506360', 'tblTempVendorCDR_20' ) end [2026-01-05 04:00:19] Production.INFO: ProcessCDR(1,16506360,1,1,2) [2026-01-05 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16506360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 04:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16506360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 04:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16506360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 04:07:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16506360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 04:07:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16506360', 'tblTempUsageDetail_20' ) start [2026-01-05 04:07:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16506360', 'tblTempUsageDetail_20' ) end [2026-01-05 04:07:01] Production.ERROR: pbx prc_insertCDR start [2026-01-05 04:07:01] Production.ERROR: pbx prc_insertCDR end [2026-01-05 04:07:01] Production.INFO: ==26627== Releasing lock... [2026-01-05 04:07:01] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 04:07:01] Production.INFO: 33.5 MB #Memory Used# [2026-01-05 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 02:00:06 [end_date_ymd] => 2026-01-05 05:00:06 [RateCDR] => 1 ) [2026-01-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` >= '2026-01-05 02:00:06' and `end` < '2026-01-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 ,'') [2026-01-05 05:00:18] Production.INFO: count ==176 [2026-01-05 05:00:18] Production.ERROR: pbx CDR StartTime 2026-01-05 02:00:06 - End Time 2026-01-05 05:00:06 [2026-01-05 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16506608', 'tblTempUsageDetail_20' ) start [2026-01-05 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16506608', 'tblTempUsageDetail_20' ) end [2026-01-05 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16506608', 'tblTempVendorCDR_20' ) start [2026-01-05 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16506608', 'tblTempVendorCDR_20' ) end [2026-01-05 05:00:18] Production.INFO: ProcessCDR(1,16506608,1,1,2) [2026-01-05 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16506608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 05:02:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16506608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 05:02:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16506608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 05:06:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16506608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 05:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16506608', 'tblTempUsageDetail_20' ) start [2026-01-05 05:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16506608', 'tblTempUsageDetail_20' ) end [2026-01-05 05:06:38] Production.ERROR: pbx prc_insertCDR start [2026-01-05 05:06:38] Production.ERROR: pbx prc_insertCDR end [2026-01-05 05:06:38] Production.INFO: ==31133== Releasing lock... [2026-01-05 05:06:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 05:06:38] Production.INFO: 29.5 MB #Memory Used# [2026-01-05 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 03:00:06 [end_date_ymd] => 2026-01-05 06:00:06 [RateCDR] => 1 ) [2026-01-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` >= '2026-01-05 03:00:06' and `end` < '2026-01-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 ,'') [2026-01-05 06:00:18] Production.INFO: count ==103 [2026-01-05 06:00:18] Production.ERROR: pbx CDR StartTime 2026-01-05 03:00:06 - End Time 2026-01-05 06:00:06 [2026-01-05 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16506855', 'tblTempUsageDetail_20' ) start [2026-01-05 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16506855', 'tblTempUsageDetail_20' ) end [2026-01-05 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16506855', 'tblTempVendorCDR_20' ) start [2026-01-05 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16506855', 'tblTempVendorCDR_20' ) end [2026-01-05 06:00:18] Production.INFO: ProcessCDR(1,16506855,1,1,2) [2026-01-05 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16506855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 06:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16506855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 06:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16506855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 06:07:06] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16506855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 06:07:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16506855', 'tblTempUsageDetail_20' ) start [2026-01-05 06:07:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16506855', 'tblTempUsageDetail_20' ) end [2026-01-05 06:07:06] Production.ERROR: pbx prc_insertCDR start [2026-01-05 06:07:06] Production.ERROR: pbx prc_insertCDR end [2026-01-05 06:07:06] Production.INFO: ==3447== Releasing lock... [2026-01-05 06:07:06] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 06:07:06] Production.INFO: 28.75 MB #Memory Used# [2026-01-05 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 04:00:06 [end_date_ymd] => 2026-01-05 07:00:06 [RateCDR] => 1 ) [2026-01-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` >= '2026-01-05 04:00:06' and `end` < '2026-01-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 ,'') [2026-01-05 07:00:18] Production.INFO: count ==114 [2026-01-05 07:00:18] Production.ERROR: pbx CDR StartTime 2026-01-05 04:00:06 - End Time 2026-01-05 07:00:06 [2026-01-05 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16507102', 'tblTempUsageDetail_20' ) start [2026-01-05 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16507102', 'tblTempUsageDetail_20' ) end [2026-01-05 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16507102', 'tblTempVendorCDR_20' ) start [2026-01-05 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16507102', 'tblTempVendorCDR_20' ) end [2026-01-05 07:00:18] Production.INFO: ProcessCDR(1,16507102,1,1,2) [2026-01-05 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16507102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 07:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16507102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 07:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16507102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 07:07:04] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16507102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 07:07:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16507102', 'tblTempUsageDetail_20' ) start [2026-01-05 07:07:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16507102', 'tblTempUsageDetail_20' ) end [2026-01-05 07:07:05] Production.ERROR: pbx prc_insertCDR start [2026-01-05 07:07:05] Production.ERROR: pbx prc_insertCDR end [2026-01-05 07:07:05] Production.INFO: ==8077== Releasing lock... [2026-01-05 07:07:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 07:07:05] Production.INFO: 29 MB #Memory Used# [2026-01-05 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 05:00:05 [end_date_ymd] => 2026-01-05 08:00:05 [RateCDR] => 1 ) [2026-01-05 08: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-05 05:00:05' and `end` < '2026-01-05 08: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-05 08:00:17] Production.INFO: count ==165 [2026-01-05 08:00:17] Production.ERROR: pbx CDR StartTime 2026-01-05 05:00:05 - End Time 2026-01-05 08:00:05 [2026-01-05 08:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16507349', 'tblTempUsageDetail_20' ) start [2026-01-05 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16507349', 'tblTempUsageDetail_20' ) end [2026-01-05 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16507349', 'tblTempVendorCDR_20' ) start [2026-01-05 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16507349', 'tblTempVendorCDR_20' ) end [2026-01-05 08:00:17] Production.INFO: ProcessCDR(1,16507349,1,1,2) [2026-01-05 08:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16507349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 08:03:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16507349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 08:03:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16507349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 08:07:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16507349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 08:07:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16507349', 'tblTempUsageDetail_20' ) start [2026-01-05 08:07:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16507349', 'tblTempUsageDetail_20' ) end [2026-01-05 08:07:16] Production.ERROR: pbx prc_insertCDR start [2026-01-05 08:07:16] Production.ERROR: pbx prc_insertCDR end [2026-01-05 08:07:16] Production.INFO: ==12599== Releasing lock... [2026-01-05 08:07:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 08:07:16] Production.INFO: 29.5 MB #Memory Used# [2026-01-05 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 06:00:06 [end_date_ymd] => 2026-01-05 09:00:06 [RateCDR] => 1 ) [2026-01-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` >= '2026-01-05 06:00:06' and `end` < '2026-01-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 ,'') [2026-01-05 09:00:19] Production.INFO: count ==936 [2026-01-05 09:00:19] Production.ERROR: pbx CDR StartTime 2026-01-05 06:00:06 - End Time 2026-01-05 09:00:06 [2026-01-05 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16507596', 'tblTempUsageDetail_20' ) start [2026-01-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16507596', 'tblTempUsageDetail_20' ) end [2026-01-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16507596', 'tblTempVendorCDR_20' ) start [2026-01-05 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16507596', 'tblTempVendorCDR_20' ) end [2026-01-05 09:00:19] Production.INFO: ProcessCDR(1,16507596,1,1,2) [2026-01-05 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16507596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 09:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16507596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 09:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16507596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 09:06:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16507596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 09:06:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16507596', 'tblTempUsageDetail_20' ) start [2026-01-05 09:06:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16507596', 'tblTempUsageDetail_20' ) end [2026-01-05 09:06:46] Production.ERROR: pbx prc_insertCDR start [2026-01-05 09:06:47] Production.ERROR: pbx prc_insertCDR end [2026-01-05 09:06:47] Production.INFO: ==17512== Releasing lock... [2026-01-05 09:06:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 09:06:47] Production.INFO: 35.75 MB #Memory Used# [2026-01-05 10:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 07:00:05 [end_date_ymd] => 2026-01-05 10:00:05 [RateCDR] => 1 ) [2026-01-05 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-05 07:00:05' and `end` < '2026-01-05 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-05 10:00:20] Production.INFO: count ==3177 [2026-01-05 10:00:22] Production.ERROR: pbx CDR StartTime 2026-01-05 07:00:05 - End Time 2026-01-05 10:00:05 [2026-01-05 10:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16507843', 'tblTempUsageDetail_20' ) start [2026-01-05 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16507843', 'tblTempUsageDetail_20' ) end [2026-01-05 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16507843', 'tblTempVendorCDR_20' ) start [2026-01-05 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16507843', 'tblTempVendorCDR_20' ) end [2026-01-05 10:00:22] Production.INFO: ProcessCDR(1,16507843,1,1,2) [2026-01-05 10:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16507843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 10:03:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16507843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 10:03:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16507843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 10:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16507843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 10:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16507843', 'tblTempUsageDetail_20' ) start [2026-01-05 10:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16507843', 'tblTempUsageDetail_20' ) end [2026-01-05 10:07:33] Production.ERROR: pbx prc_insertCDR start [2026-01-05 10:07:35] Production.ERROR: pbx prc_insertCDR end [2026-01-05 10:07:35] Production.INFO: ==21936== Releasing lock... [2026-01-05 10:07:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 10:07:35] Production.INFO: 52.5 MB #Memory Used# [2026-01-05 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 08:00:05 [end_date_ymd] => 2026-01-05 11:00:05 [RateCDR] => 1 ) [2026-01-05 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-05 08:00:05' and `end` < '2026-01-05 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-05 11:00:19] Production.INFO: count ==5695 [2026-01-05 11:00:22] Production.ERROR: pbx CDR StartTime 2026-01-05 08:00:05 - End Time 2026-01-05 11:00:05 [2026-01-05 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16508090', 'tblTempUsageDetail_20' ) start [2026-01-05 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16508090', 'tblTempUsageDetail_20' ) end [2026-01-05 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16508090', 'tblTempVendorCDR_20' ) start [2026-01-05 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16508090', 'tblTempVendorCDR_20' ) end [2026-01-05 11:00:23] Production.INFO: ProcessCDR(1,16508090,1,1,2) [2026-01-05 11:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16508090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 11:04:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16508090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 11:04:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16508090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 11:08:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16508090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 11:08:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16508090', 'tblTempUsageDetail_20' ) start [2026-01-05 11:08:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16508090', 'tblTempUsageDetail_20' ) end [2026-01-05 11:08:00] Production.ERROR: pbx prc_insertCDR start [2026-01-05 11:08:03] Production.ERROR: pbx prc_insertCDR end [2026-01-05 11:08:03] Production.INFO: ==26318== Releasing lock... [2026-01-05 11:08:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 11:08:03] Production.INFO: 70.75 MB #Memory Used# [2026-01-05 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 09:00:06 [end_date_ymd] => 2026-01-05 12:00:06 [RateCDR] => 1 ) [2026-01-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` >= '2026-01-05 09:00:06' and `end` < '2026-01-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 ,'') [2026-01-05 12:00:22] Production.INFO: count ==7331 [2026-01-05 12:00:27] Production.ERROR: pbx CDR StartTime 2026-01-05 09:00:06 - End Time 2026-01-05 12:00:06 [2026-01-05 12:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 12:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16508337', 'tblTempUsageDetail_20' ) start [2026-01-05 12:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16508337', 'tblTempUsageDetail_20' ) end [2026-01-05 12:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16508337', 'tblTempVendorCDR_20' ) start [2026-01-05 12:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16508337', 'tblTempVendorCDR_20' ) end [2026-01-05 12:00:28] Production.INFO: ProcessCDR(1,16508337,1,1,2) [2026-01-05 12:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16508337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 12:03:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16508337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 12:03:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16508337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 12:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16508337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 12:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16508337', 'tblTempUsageDetail_20' ) start [2026-01-05 12:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16508337', 'tblTempUsageDetail_20' ) end [2026-01-05 12:07:30] Production.ERROR: pbx prc_insertCDR start [2026-01-05 12:07:33] Production.ERROR: pbx prc_insertCDR end [2026-01-05 12:07:33] Production.INFO: ==31188== Releasing lock... [2026-01-05 12:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 12:07:33] Production.INFO: 83.75 MB #Memory Used# [2026-01-05 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 10:00:06 [end_date_ymd] => 2026-01-05 13:00:06 [RateCDR] => 1 ) [2026-01-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` >= '2026-01-05 10:00:06' and `end` < '2026-01-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 ,'') [2026-01-05 13:00:20] Production.INFO: count ==7287 [2026-01-05 13:00:24] Production.ERROR: pbx CDR StartTime 2026-01-05 10:00:06 - End Time 2026-01-05 13:00:06 [2026-01-05 13:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16508584', 'tblTempUsageDetail_20' ) start [2026-01-05 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16508584', 'tblTempUsageDetail_20' ) end [2026-01-05 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16508584', 'tblTempVendorCDR_20' ) start [2026-01-05 13:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16508584', 'tblTempVendorCDR_20' ) end [2026-01-05 13:00:25] Production.INFO: ProcessCDR(1,16508584,1,1,2) [2026-01-05 13:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16508584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 13:03:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16508584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 13:03:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16508584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 13:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16508584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 13:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16508584', 'tblTempUsageDetail_20' ) start [2026-01-05 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16508584', 'tblTempUsageDetail_20' ) end [2026-01-05 13:07:26] Production.ERROR: pbx prc_insertCDR start [2026-01-05 13:07:29] Production.ERROR: pbx prc_insertCDR end [2026-01-05 13:07:29] Production.INFO: ==3232== Releasing lock... [2026-01-05 13:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 13:07:29] Production.INFO: 83.5 MB #Memory Used# [2026-01-05 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 11:00:05 [end_date_ymd] => 2026-01-05 14:00:05 [RateCDR] => 1 ) [2026-01-05 14: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-05 11:00:05' and `end` < '2026-01-05 14: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-05 14:00:22] Production.INFO: count ==7014 [2026-01-05 14:00:25] Production.ERROR: pbx CDR StartTime 2026-01-05 11:00:05 - End Time 2026-01-05 14:00:05 [2026-01-05 14:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 14:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16508831', 'tblTempUsageDetail_20' ) start [2026-01-05 14:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16508831', 'tblTempUsageDetail_20' ) end [2026-01-05 14:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16508831', 'tblTempVendorCDR_20' ) start [2026-01-05 14:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16508831', 'tblTempVendorCDR_20' ) end [2026-01-05 14:00:26] Production.INFO: ProcessCDR(1,16508831,1,1,2) [2026-01-05 14:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16508831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 14:03:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16508831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 14:03:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16508831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 14:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16508831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 14:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16508831', 'tblTempUsageDetail_20' ) start [2026-01-05 14:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16508831', 'tblTempUsageDetail_20' ) end [2026-01-05 14:07:20] Production.ERROR: pbx prc_insertCDR start [2026-01-05 14:07:23] Production.ERROR: pbx prc_insertCDR end [2026-01-05 14:07:23] Production.INFO: ==7583== Releasing lock... [2026-01-05 14:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 14:07:23] Production.INFO: 80.75 MB #Memory Used# [2026-01-05 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 12:00:06 [end_date_ymd] => 2026-01-05 15:00:06 [RateCDR] => 1 ) [2026-01-05 15:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-05 12:00:06' and `end` < '2026-01-05 15:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-05 15:00:20] Production.INFO: count ==7001 [2026-01-05 15:00:24] Production.ERROR: pbx CDR StartTime 2026-01-05 12:00:06 - End Time 2026-01-05 15:00:06 [2026-01-05 15:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16509078', 'tblTempUsageDetail_20' ) start [2026-01-05 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16509078', 'tblTempUsageDetail_20' ) end [2026-01-05 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16509078', 'tblTempVendorCDR_20' ) start [2026-01-05 15:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16509078', 'tblTempVendorCDR_20' ) end [2026-01-05 15:00:25] Production.INFO: ProcessCDR(1,16509078,1,1,2) [2026-01-05 15:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16509078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 15:03:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16509078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 15:03:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16509078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 15:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16509078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 15:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16509078', 'tblTempUsageDetail_20' ) start [2026-01-05 15:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16509078', 'tblTempUsageDetail_20' ) end [2026-01-05 15:07:26] Production.ERROR: pbx prc_insertCDR start [2026-01-05 15:07:28] Production.ERROR: pbx prc_insertCDR end [2026-01-05 15:07:28] Production.INFO: ==12405== Releasing lock... [2026-01-05 15:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 15:07:28] Production.INFO: 80.75 MB #Memory Used# [2026-01-05 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 13:00:06 [end_date_ymd] => 2026-01-05 16:00:06 [RateCDR] => 1 ) [2026-01-05 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-05 13:00:06' and `end` < '2026-01-05 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-05 16:00:28] Production.INFO: count ==7107 [2026-01-05 16:00:32] Production.ERROR: pbx CDR StartTime 2026-01-05 13:00:06 - End Time 2026-01-05 16:00:06 [2026-01-05 16:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 16:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16509325', 'tblTempUsageDetail_20' ) start [2026-01-05 16:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16509325', 'tblTempUsageDetail_20' ) end [2026-01-05 16:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16509325', 'tblTempVendorCDR_20' ) start [2026-01-05 16:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16509325', 'tblTempVendorCDR_20' ) end [2026-01-05 16:00:32] Production.INFO: ProcessCDR(1,16509325,1,1,2) [2026-01-05 16:00:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16509325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 16:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16509325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 16:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16509325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 16:08:17] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16509325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 16:08:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16509325', 'tblTempUsageDetail_20' ) start [2026-01-05 16:08:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16509325', 'tblTempUsageDetail_20' ) end [2026-01-05 16:08:17] Production.ERROR: pbx prc_insertCDR start [2026-01-05 16:08:20] Production.ERROR: pbx prc_insertCDR end [2026-01-05 16:08:20] Production.INFO: ==17371== Releasing lock... [2026-01-05 16:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 16:08:20] Production.INFO: 82 MB #Memory Used# [2026-01-05 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 14:00:05 [end_date_ymd] => 2026-01-05 17:00:05 [RateCDR] => 1 ) [2026-01-05 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-05 14:00:05' and `end` < '2026-01-05 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-05 17:00:20] Production.INFO: count ==6663 [2026-01-05 17:00:23] Production.ERROR: pbx CDR StartTime 2026-01-05 14:00:05 - End Time 2026-01-05 17:00:05 [2026-01-05 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16509572', 'tblTempUsageDetail_20' ) start [2026-01-05 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16509572', 'tblTempUsageDetail_20' ) end [2026-01-05 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16509572', 'tblTempVendorCDR_20' ) start [2026-01-05 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16509572', 'tblTempVendorCDR_20' ) end [2026-01-05 17:00:24] Production.INFO: ProcessCDR(1,16509572,1,1,2) [2026-01-05 17:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16509572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 17:03:49] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16509572,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 17:03:49] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16509572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 17:07:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16509572,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 17:07:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16509572', 'tblTempUsageDetail_20' ) start [2026-01-05 17:07:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16509572', 'tblTempUsageDetail_20' ) end [2026-01-05 17:07:45] Production.ERROR: pbx prc_insertCDR start [2026-01-05 17:07:48] Production.ERROR: pbx prc_insertCDR end [2026-01-05 17:07:48] Production.INFO: ==21742== Releasing lock... [2026-01-05 17:07:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 17:07:48] Production.INFO: 78.25 MB #Memory Used# [2026-01-05 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 15:00:06 [end_date_ymd] => 2026-01-05 18:00:06 [RateCDR] => 1 ) [2026-01-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` >= '2026-01-05 15:00:06' and `end` < '2026-01-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 ,'') [2026-01-05 18:00:19] Production.INFO: count ==5479 [2026-01-05 18:00:22] Production.ERROR: pbx CDR StartTime 2026-01-05 15:00:06 - End Time 2026-01-05 18:00:06 [2026-01-05 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16509817', 'tblTempUsageDetail_20' ) start [2026-01-05 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16509817', 'tblTempUsageDetail_20' ) end [2026-01-05 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16509817', 'tblTempVendorCDR_20' ) start [2026-01-05 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16509817', 'tblTempVendorCDR_20' ) end [2026-01-05 18:00:22] Production.INFO: ProcessCDR(1,16509817,1,1,2) [2026-01-05 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16509817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 18:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16509817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 18:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16509817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 18:07:12] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16509817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 18:07:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16509817', 'tblTempUsageDetail_20' ) start [2026-01-05 18:07:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16509817', 'tblTempUsageDetail_20' ) end [2026-01-05 18:07:13] Production.ERROR: pbx prc_insertCDR start [2026-01-05 18:07:15] Production.ERROR: pbx prc_insertCDR end [2026-01-05 18:07:15] Production.INFO: ==26225== Releasing lock... [2026-01-05 18:07:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 18:07:15] Production.INFO: 69.25 MB #Memory Used# [2026-01-05 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 16:00:05 [end_date_ymd] => 2026-01-05 19:00:05 [RateCDR] => 1 ) [2026-01-05 19: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-05 16:00:05' and `end` < '2026-01-05 19: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-05 19:00:18] Production.INFO: count ==3830 [2026-01-05 19:00:20] Production.ERROR: pbx CDR StartTime 2026-01-05 16:00:05 - End Time 2026-01-05 19:00:05 [2026-01-05 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16510064', 'tblTempUsageDetail_20' ) start [2026-01-05 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16510064', 'tblTempUsageDetail_20' ) end [2026-01-05 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16510064', 'tblTempVendorCDR_20' ) start [2026-01-05 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16510064', 'tblTempVendorCDR_20' ) end [2026-01-05 19:00:20] Production.INFO: ProcessCDR(1,16510064,1,1,2) [2026-01-05 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16510064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 19:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16510064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 19:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16510064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 19:07:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16510064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 19:07:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16510064', 'tblTempUsageDetail_20' ) start [2026-01-05 19:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16510064', 'tblTempUsageDetail_20' ) end [2026-01-05 19:07:19] Production.ERROR: pbx prc_insertCDR start [2026-01-05 19:07:19] Production.ERROR: pbx prc_insertCDR end [2026-01-05 19:07:19] Production.INFO: ==653== Releasing lock... [2026-01-05 19:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 19:07:19] Production.INFO: 56.75 MB #Memory Used# [2026-01-05 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 17:00:05 [end_date_ymd] => 2026-01-05 20:00:05 [RateCDR] => 1 ) [2026-01-05 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-05 17:00:05' and `end` < '2026-01-05 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-05 20:00:18] Production.INFO: count ==2636 [2026-01-05 20:00:19] Production.ERROR: pbx CDR StartTime 2026-01-05 17:00:05 - End Time 2026-01-05 20:00:05 [2026-01-05 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16510311', 'tblTempUsageDetail_20' ) start [2026-01-05 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16510311', 'tblTempUsageDetail_20' ) end [2026-01-05 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16510311', 'tblTempVendorCDR_20' ) start [2026-01-05 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16510311', 'tblTempVendorCDR_20' ) end [2026-01-05 20:00:19] Production.INFO: ProcessCDR(1,16510311,1,1,2) [2026-01-05 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16510311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 20:03:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16510311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 20:03:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16510311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 20:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16510311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 20:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16510311', 'tblTempUsageDetail_20' ) start [2026-01-05 20:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16510311', 'tblTempUsageDetail_20' ) end [2026-01-05 20:07:20] Production.ERROR: pbx prc_insertCDR start [2026-01-05 20:07:20] Production.ERROR: pbx prc_insertCDR end [2026-01-05 20:07:20] Production.INFO: ==5342== Releasing lock... [2026-01-05 20:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 20:07:20] Production.INFO: 48.25 MB #Memory Used# [2026-01-05 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 18:00:05 [end_date_ymd] => 2026-01-05 21:00:05 [RateCDR] => 1 ) [2026-01-05 21: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-05 18:00:05' and `end` < '2026-01-05 21: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-05 21:00:18] Production.INFO: count ==1575 [2026-01-05 21:00:18] Production.ERROR: pbx CDR StartTime 2026-01-05 18:00:05 - End Time 2026-01-05 21:00:05 [2026-01-05 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16510558', 'tblTempUsageDetail_20' ) start [2026-01-05 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16510558', 'tblTempUsageDetail_20' ) end [2026-01-05 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16510558', 'tblTempVendorCDR_20' ) start [2026-01-05 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16510558', 'tblTempVendorCDR_20' ) end [2026-01-05 21:00:18] Production.INFO: ProcessCDR(1,16510558,1,1,2) [2026-01-05 21:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16510558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 21:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16510558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 21:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16510558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 21:06:55] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16510558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 21:06:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16510558', 'tblTempUsageDetail_20' ) start [2026-01-05 21:06:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16510558', 'tblTempUsageDetail_20' ) end [2026-01-05 21:06:56] Production.ERROR: pbx prc_insertCDR start [2026-01-05 21:06:56] Production.ERROR: pbx prc_insertCDR end [2026-01-05 21:06:56] Production.INFO: ==10144== Releasing lock... [2026-01-05 21:06:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 21:06:56] Production.INFO: 40.25 MB #Memory Used# [2026-01-05 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 19:00:06 [end_date_ymd] => 2026-01-05 22:00:06 [RateCDR] => 1 ) [2026-01-05 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-05 19:00:06' and `end` < '2026-01-05 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-05 22:00:18] Production.INFO: count ==1176 [2026-01-05 22:00:18] Production.ERROR: pbx CDR StartTime 2026-01-05 19:00:06 - End Time 2026-01-05 22:00:06 [2026-01-05 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16510805', 'tblTempUsageDetail_20' ) start [2026-01-05 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16510805', 'tblTempUsageDetail_20' ) end [2026-01-05 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16510805', 'tblTempVendorCDR_20' ) start [2026-01-05 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16510805', 'tblTempVendorCDR_20' ) end [2026-01-05 22:00:18] Production.INFO: ProcessCDR(1,16510805,1,1,2) [2026-01-05 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16510805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 22:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16510805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 22:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16510805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 22:07:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16510805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 22:07:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16510805', 'tblTempUsageDetail_20' ) start [2026-01-05 22:07:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16510805', 'tblTempUsageDetail_20' ) end [2026-01-05 22:07:14] Production.ERROR: pbx prc_insertCDR start [2026-01-05 22:07:15] Production.ERROR: pbx prc_insertCDR end [2026-01-05 22:07:15] Production.INFO: ==14462== Releasing lock... [2026-01-05 22:07:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 22:07:15] Production.INFO: 37.5 MB #Memory Used# [2026-01-05 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 20:00:05 [end_date_ymd] => 2026-01-05 23:00:05 [RateCDR] => 1 ) [2026-01-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` >= '2026-01-05 20:00:05' and `end` < '2026-01-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 ,'') [2026-01-05 23:00:17] Production.INFO: count ==828 [2026-01-05 23:00:18] Production.ERROR: pbx CDR StartTime 2026-01-05 20:00:05 - End Time 2026-01-05 23:00:05 [2026-01-05 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-05 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16511052', 'tblTempUsageDetail_20' ) start [2026-01-05 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16511052', 'tblTempUsageDetail_20' ) end [2026-01-05 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16511052', 'tblTempVendorCDR_20' ) start [2026-01-05 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16511052', 'tblTempVendorCDR_20' ) end [2026-01-05 23:00:18] Production.INFO: ProcessCDR(1,16511052,1,1,2) [2026-01-05 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16511052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 23:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16511052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-05 23:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16511052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 23:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16511052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-05 23:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16511052', 'tblTempUsageDetail_20' ) start [2026-01-05 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16511052', 'tblTempUsageDetail_20' ) end [2026-01-05 23:07:21] Production.ERROR: pbx prc_insertCDR start [2026-01-05 23:07:21] Production.ERROR: pbx prc_insertCDR end [2026-01-05 23:07:21] Production.INFO: ==18982== Releasing lock... [2026-01-05 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-05 23:07:21] Production.INFO: 34.5 MB #Memory Used#