[2026-01-06 00:00:05] Production.INFO: next invoice date [2026-01-06 00:00:05] Production.INFO: 2026-02-06 [2026-01-06 00:00:05] Production.INFO: getdaysdiff [2026-01-06 00:00:05] Production.INFO: +31 [2026-01-06 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (154,11,1,31,31,'RMScheduler',2026-01-06 00:00:05,1,0,,,0) [2026-01-06 00:00:05] Production.INFO: next invoice date [2026-01-06 00:00:05] Production.INFO: 2026-02-06 [2026-01-06 00:00:05] Production.INFO: getdaysdiff [2026-01-06 00:00:05] Production.INFO: +31 [2026-01-06 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (207,11,1,31,31,'RMScheduler',2026-01-06 00:00:05,0,0,,,0) [2026-01-06 00:00:05] Production.INFO: next invoice date [2026-01-06 00:00:05] Production.INFO: 2026-02-06 [2026-01-06 00:00:05] Production.INFO: getdaysdiff [2026-01-06 00:00:05] Production.INFO: +31 [2026-01-06 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (207,13,2,31,31,'RMScheduler',2026-01-06 00:00:05,0,0,,,0) [2026-01-06 00:00:05] Production.INFO: next invoice date [2026-01-06 00:00:05] Production.INFO: 2026-02-06 [2026-01-06 00:00:05] Production.INFO: getdaysdiff [2026-01-06 00:00:05] Production.INFO: +31 [2026-01-06 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (206,11,1,31,31,'RMScheduler',2026-01-06 00:00:05,0,0,,,0) [2026-01-06 00:00:05] Production.INFO: next invoice date [2026-01-06 00:00:05] Production.INFO: 2026-02-06 [2026-01-06 00:00:05] Production.INFO: getdaysdiff [2026-01-06 00:00:05] Production.INFO: +31 [2026-01-06 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (206,13,2,31,31,'RMScheduler',2026-01-06 00:00:05,0,0,,,0) [2026-01-06 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 21:00:07 [end_date_ymd] => 2026-01-06 00:00:07 [RateCDR] => 1 ) [2026-01-06 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-05 21:00:07' and `end` < '2026-01-06 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-06 00:00:22] Production.INFO: count ==762 [2026-01-06 00:00:23] Production.ERROR: pbx CDR StartTime 2026-01-05 21:00:07 - End Time 2026-01-06 00:00:07 [2026-01-06 00:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16511299', 'tblTempUsageDetail_20' ) start [2026-01-06 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16511299', 'tblTempUsageDetail_20' ) end [2026-01-06 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16511299', 'tblTempVendorCDR_20' ) start [2026-01-06 00:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16511299', 'tblTempVendorCDR_20' ) end [2026-01-06 00:00:23] Production.INFO: ProcessCDR(1,16511299,1,1,2) [2026-01-06 00:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16511299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 00:03:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16511299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 00:03:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16511299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 00:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16511299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 00:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16511299', 'tblTempUsageDetail_20' ) start [2026-01-06 00:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16511299', 'tblTempUsageDetail_20' ) end [2026-01-06 00:07:25] Production.ERROR: pbx prc_insertCDR start [2026-01-06 00:07:25] Production.ERROR: pbx prc_insertCDR end [2026-01-06 00:07:27] Production.INFO: ==23576== Releasing lock... [2026-01-06 00:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 00:07:27] Production.INFO: 37.75 MB #Memory Used# [2026-01-06 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 22:00:05 [end_date_ymd] => 2026-01-06 01:00:05 [RateCDR] => 1 ) [2026-01-06 01: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 22:00:05' and `end` < '2026-01-06 01: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-06 01:00:17] Production.INFO: count ==521 [2026-01-06 01:00:17] Production.ERROR: pbx CDR StartTime 2026-01-05 22:00:05 - End Time 2026-01-06 01:00:05 [2026-01-06 01:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16511546', 'tblTempUsageDetail_20' ) start [2026-01-06 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16511546', 'tblTempUsageDetail_20' ) end [2026-01-06 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16511546', 'tblTempVendorCDR_20' ) start [2026-01-06 01:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16511546', 'tblTempVendorCDR_20' ) end [2026-01-06 01:00:17] Production.INFO: ProcessCDR(1,16511546,1,1,2) [2026-01-06 01:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16511546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 01:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16511546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 01:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16511546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 01:07:17] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16511546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 01:07:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16511546', 'tblTempUsageDetail_20' ) start [2026-01-06 01:07:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16511546', 'tblTempUsageDetail_20' ) end [2026-01-06 01:07:17] Production.ERROR: pbx prc_insertCDR start [2026-01-06 01:07:17] Production.ERROR: pbx prc_insertCDR end [2026-01-06 01:07:17] Production.INFO: ==28502== Releasing lock... [2026-01-06 01:07:17] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 01:07:17] Production.INFO: 32 MB #Memory Used# [2026-01-06 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-05 23:00:06 [end_date_ymd] => 2026-01-06 02:00:06 [RateCDR] => 1 ) [2026-01-06 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-05 23:00:06' and `end` < '2026-01-06 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-06 02:00:18] Production.INFO: count ==527 [2026-01-06 02:00:18] Production.ERROR: pbx CDR StartTime 2026-01-05 23:00:06 - End Time 2026-01-06 02:00:06 [2026-01-06 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16511793', 'tblTempUsageDetail_20' ) start [2026-01-06 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16511793', 'tblTempUsageDetail_20' ) end [2026-01-06 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16511793', 'tblTempVendorCDR_20' ) start [2026-01-06 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16511793', 'tblTempVendorCDR_20' ) end [2026-01-06 02:00:18] Production.INFO: ProcessCDR(1,16511793,1,1,2) [2026-01-06 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16511793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 02:03:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16511793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 02:03:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16511793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 02:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16511793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 02:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16511793', 'tblTempUsageDetail_20' ) start [2026-01-06 02:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16511793', 'tblTempUsageDetail_20' ) end [2026-01-06 02:07:25] Production.ERROR: pbx prc_insertCDR start [2026-01-06 02:07:25] Production.ERROR: pbx prc_insertCDR end [2026-01-06 02:07:25] Production.INFO: ==1176== Releasing lock... [2026-01-06 02:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 02:07:25] Production.INFO: 32.75 MB #Memory Used# [2026-01-06 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 00:00:05 [end_date_ymd] => 2026-01-06 03:00:05 [RateCDR] => 1 ) [2026-01-06 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-06 00:00:05' and `end` < '2026-01-06 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-06 03:00:17] Production.INFO: count ==435 [2026-01-06 03:00:17] Production.ERROR: pbx CDR StartTime 2026-01-06 00:00:05 - End Time 2026-01-06 03:00:05 [2026-01-06 03:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16512040', 'tblTempUsageDetail_20' ) start [2026-01-06 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16512040', 'tblTempUsageDetail_20' ) end [2026-01-06 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16512040', 'tblTempVendorCDR_20' ) start [2026-01-06 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16512040', 'tblTempVendorCDR_20' ) end [2026-01-06 03:00:18] Production.INFO: ProcessCDR(1,16512040,1,1,2) [2026-01-06 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16512040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 03:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16512040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 03:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16512040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16512040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16512040', 'tblTempUsageDetail_20' ) start [2026-01-06 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16512040', 'tblTempUsageDetail_20' ) end [2026-01-06 03:07:21] Production.ERROR: pbx prc_insertCDR start [2026-01-06 03:07:21] Production.ERROR: pbx prc_insertCDR end [2026-01-06 03:07:21] Production.INFO: ==6352== Releasing lock... [2026-01-06 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 03:07:21] Production.INFO: 32.25 MB #Memory Used# [2026-01-06 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 01:00:06 [end_date_ymd] => 2026-01-06 04:00:06 [RateCDR] => 1 ) [2026-01-06 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-06 01:00:06' and `end` < '2026-01-06 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-06 04:00:18] Production.INFO: count ==287 [2026-01-06 04:00:18] Production.ERROR: pbx CDR StartTime 2026-01-06 01:00:06 - End Time 2026-01-06 04:00:06 [2026-01-06 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16512288', 'tblTempUsageDetail_20' ) start [2026-01-06 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16512288', 'tblTempUsageDetail_20' ) end [2026-01-06 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16512288', 'tblTempVendorCDR_20' ) start [2026-01-06 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16512288', 'tblTempVendorCDR_20' ) end [2026-01-06 04:00:18] Production.INFO: ProcessCDR(1,16512288,1,1,2) [2026-01-06 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16512288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 04:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16512288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 04:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16512288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 04:07:09] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16512288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 04:07:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16512288', 'tblTempUsageDetail_20' ) start [2026-01-06 04:07:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16512288', 'tblTempUsageDetail_20' ) end [2026-01-06 04:07:09] Production.ERROR: pbx prc_insertCDR start [2026-01-06 04:07:09] Production.ERROR: pbx prc_insertCDR end [2026-01-06 04:07:09] Production.INFO: ==11145== Releasing lock... [2026-01-06 04:07:09] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 04:07:09] Production.INFO: 30.75 MB #Memory Used# [2026-01-06 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 02:00:06 [end_date_ymd] => 2026-01-06 05:00:06 [RateCDR] => 1 ) [2026-01-06 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-06 02:00:06' and `end` < '2026-01-06 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-06 05:00:18] Production.INFO: count ==150 [2026-01-06 05:00:18] Production.ERROR: pbx CDR StartTime 2026-01-06 02:00:06 - End Time 2026-01-06 05:00:06 [2026-01-06 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16512536', 'tblTempUsageDetail_20' ) start [2026-01-06 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16512536', 'tblTempUsageDetail_20' ) end [2026-01-06 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16512536', 'tblTempVendorCDR_20' ) start [2026-01-06 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16512536', 'tblTempVendorCDR_20' ) end [2026-01-06 05:00:18] Production.INFO: ProcessCDR(1,16512536,1,1,2) [2026-01-06 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16512536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 05:03:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16512536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 05:03:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16512536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 05:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16512536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 05:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16512536', 'tblTempUsageDetail_20' ) start [2026-01-06 05:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16512536', 'tblTempUsageDetail_20' ) end [2026-01-06 05:07:25] Production.ERROR: pbx prc_insertCDR start [2026-01-06 05:07:25] Production.ERROR: pbx prc_insertCDR end [2026-01-06 05:07:25] Production.INFO: ==16020== Releasing lock... [2026-01-06 05:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 05:07:25] Production.INFO: 29.25 MB #Memory Used# [2026-01-06 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 03:00:05 [end_date_ymd] => 2026-01-06 06:00:05 [RateCDR] => 1 ) [2026-01-06 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-06 03:00:05' and `end` < '2026-01-06 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-06 06:00:17] Production.INFO: count ==112 [2026-01-06 06:00:17] Production.ERROR: pbx CDR StartTime 2026-01-06 03:00:05 - End Time 2026-01-06 06:00:05 [2026-01-06 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16512783', 'tblTempUsageDetail_20' ) start [2026-01-06 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16512783', 'tblTempUsageDetail_20' ) end [2026-01-06 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16512783', 'tblTempVendorCDR_20' ) start [2026-01-06 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16512783', 'tblTempVendorCDR_20' ) end [2026-01-06 06:00:17] Production.INFO: ProcessCDR(1,16512783,1,1,2) [2026-01-06 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16512783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 06:03:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16512783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 06:03:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16512783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 06:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16512783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 06:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16512783', 'tblTempUsageDetail_20' ) start [2026-01-06 06:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16512783', 'tblTempUsageDetail_20' ) end [2026-01-06 06:07:27] Production.ERROR: pbx prc_insertCDR start [2026-01-06 06:07:27] Production.ERROR: pbx prc_insertCDR end [2026-01-06 06:07:27] Production.INFO: ==20658== Releasing lock... [2026-01-06 06:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 06:07:27] Production.INFO: 28.75 MB #Memory Used# [2026-01-06 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 04:00:05 [end_date_ymd] => 2026-01-06 07:00:05 [RateCDR] => 1 ) [2026-01-06 07: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-06 04:00:05' and `end` < '2026-01-06 07: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-06 07:00:17] Production.INFO: count ==104 [2026-01-06 07:00:17] Production.ERROR: pbx CDR StartTime 2026-01-06 04:00:05 - End Time 2026-01-06 07:00:05 [2026-01-06 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16513030', 'tblTempUsageDetail_20' ) start [2026-01-06 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16513030', 'tblTempUsageDetail_20' ) end [2026-01-06 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16513030', 'tblTempVendorCDR_20' ) start [2026-01-06 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16513030', 'tblTempVendorCDR_20' ) end [2026-01-06 07:00:17] Production.INFO: ProcessCDR(1,16513030,1,1,2) [2026-01-06 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16513030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 07:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16513030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 07:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16513030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16513030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16513030', 'tblTempUsageDetail_20' ) start [2026-01-06 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16513030', 'tblTempUsageDetail_20' ) end [2026-01-06 07:07:21] Production.ERROR: pbx prc_insertCDR start [2026-01-06 07:07:21] Production.ERROR: pbx prc_insertCDR end [2026-01-06 07:07:21] Production.INFO: ==24992== Releasing lock... [2026-01-06 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 07:07:21] Production.INFO: 28.5 MB #Memory Used# [2026-01-06 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 05:00:05 [end_date_ymd] => 2026-01-06 08:00:05 [RateCDR] => 1 ) [2026-01-06 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-06 05:00:05' and `end` < '2026-01-06 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-06 08:00:17] Production.INFO: count ==120 [2026-01-06 08:00:17] Production.ERROR: pbx CDR StartTime 2026-01-06 05:00:05 - End Time 2026-01-06 08:00:05 [2026-01-06 08:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16513277', 'tblTempUsageDetail_20' ) start [2026-01-06 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16513277', 'tblTempUsageDetail_20' ) end [2026-01-06 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16513277', 'tblTempVendorCDR_20' ) start [2026-01-06 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16513277', 'tblTempVendorCDR_20' ) end [2026-01-06 08:00:17] Production.INFO: ProcessCDR(1,16513277,1,1,2) [2026-01-06 08:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16513277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 08:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16513277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 08:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16513277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 08:07:11] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16513277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 08:07:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16513277', 'tblTempUsageDetail_20' ) start [2026-01-06 08:07:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16513277', 'tblTempUsageDetail_20' ) end [2026-01-06 08:07:12] Production.ERROR: pbx prc_insertCDR start [2026-01-06 08:07:12] Production.ERROR: pbx prc_insertCDR end [2026-01-06 08:07:12] Production.INFO: ==29370== Releasing lock... [2026-01-06 08:07:12] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 08:07:12] Production.INFO: 29 MB #Memory Used# [2026-01-06 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 06:00:05 [end_date_ymd] => 2026-01-06 09:00:05 [RateCDR] => 1 ) [2026-01-06 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-06 06:00:05' and `end` < '2026-01-06 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-06 09:00:18] Production.INFO: count ==865 [2026-01-06 09:00:18] Production.ERROR: pbx CDR StartTime 2026-01-06 06:00:05 - End Time 2026-01-06 09:00:05 [2026-01-06 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16513524', 'tblTempUsageDetail_20' ) start [2026-01-06 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16513524', 'tblTempUsageDetail_20' ) end [2026-01-06 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16513524', 'tblTempVendorCDR_20' ) start [2026-01-06 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16513524', 'tblTempVendorCDR_20' ) end [2026-01-06 09:00:18] Production.INFO: ProcessCDR(1,16513524,1,1,2) [2026-01-06 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16513524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 09:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16513524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 09:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16513524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 09:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16513524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 09:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16513524', 'tblTempUsageDetail_20' ) start [2026-01-06 09:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16513524', 'tblTempUsageDetail_20' ) end [2026-01-06 09:07:31] Production.ERROR: pbx prc_insertCDR start [2026-01-06 09:07:31] Production.ERROR: pbx prc_insertCDR end [2026-01-06 09:07:31] Production.INFO: ==2513== Releasing lock... [2026-01-06 09:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 09:07:31] Production.INFO: 34.75 MB #Memory Used# [2026-01-06 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 07:00:06 [end_date_ymd] => 2026-01-06 10:00:06 [RateCDR] => 1 ) [2026-01-06 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-06 07:00:06' and `end` < '2026-01-06 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-06 10:00:20] Production.INFO: count ==2486 [2026-01-06 10:00:21] Production.ERROR: pbx CDR StartTime 2026-01-06 07:00:06 - End Time 2026-01-06 10:00:06 [2026-01-06 10:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16513771', 'tblTempUsageDetail_20' ) start [2026-01-06 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16513771', 'tblTempUsageDetail_20' ) end [2026-01-06 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16513771', 'tblTempVendorCDR_20' ) start [2026-01-06 10:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16513771', 'tblTempVendorCDR_20' ) end [2026-01-06 10:00:21] Production.INFO: ProcessCDR(1,16513771,1,1,2) [2026-01-06 10:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16513771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 10:03:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16513771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 10:03:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16513771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 10:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16513771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 10:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16513771', 'tblTempUsageDetail_20' ) start [2026-01-06 10:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16513771', 'tblTempUsageDetail_20' ) end [2026-01-06 10:07:34] Production.ERROR: pbx prc_insertCDR start [2026-01-06 10:07:35] Production.ERROR: pbx prc_insertCDR end [2026-01-06 10:07:35] Production.INFO: ==8078== Releasing lock... [2026-01-06 10:07:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 10:07:35] Production.INFO: 47.25 MB #Memory Used# [2026-01-06 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 08:00:05 [end_date_ymd] => 2026-01-06 11:00:05 [RateCDR] => 1 ) [2026-01-06 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-06 08:00:05' and `end` < '2026-01-06 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-06 11:00:19] Production.INFO: count ==4644 [2026-01-06 11:00:21] Production.ERROR: pbx CDR StartTime 2026-01-06 08:00:05 - End Time 2026-01-06 11:00:05 [2026-01-06 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16514018', 'tblTempUsageDetail_20' ) start [2026-01-06 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16514018', 'tblTempUsageDetail_20' ) end [2026-01-06 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16514018', 'tblTempVendorCDR_20' ) start [2026-01-06 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16514018', 'tblTempVendorCDR_20' ) end [2026-01-06 11:00:22] Production.INFO: ProcessCDR(1,16514018,1,1,2) [2026-01-06 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16514018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 11:04:16] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16514018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 11:04:16] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16514018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 11:08:05] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16514018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 11:08:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16514018', 'tblTempUsageDetail_20' ) start [2026-01-06 11:08:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16514018', 'tblTempUsageDetail_20' ) end [2026-01-06 11:08:06] Production.ERROR: pbx prc_insertCDR start [2026-01-06 11:08:10] Production.ERROR: pbx prc_insertCDR end [2026-01-06 11:08:10] Production.INFO: ==13036== Releasing lock... [2026-01-06 11:08:10] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 11:08:10] Production.INFO: 63 MB #Memory Used# [2026-01-06 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 09:00:06 [end_date_ymd] => 2026-01-06 12:00:06 [RateCDR] => 1 ) [2026-01-06 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-06 09:00:06' and `end` < '2026-01-06 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-06 12:00:21] Production.INFO: count ==5758 [2026-01-06 12:00:24] Production.ERROR: pbx CDR StartTime 2026-01-06 09:00:06 - End Time 2026-01-06 12:00:06 [2026-01-06 12:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16514265', 'tblTempUsageDetail_20' ) start [2026-01-06 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16514265', 'tblTempUsageDetail_20' ) end [2026-01-06 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16514265', 'tblTempVendorCDR_20' ) start [2026-01-06 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16514265', 'tblTempVendorCDR_20' ) end [2026-01-06 12:00:25] Production.INFO: ProcessCDR(1,16514265,1,1,2) [2026-01-06 12:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16514265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 12:04:13] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16514265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 12:04:13] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16514265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 12:07:54] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16514265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 12:07:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16514265', 'tblTempUsageDetail_20' ) start [2026-01-06 12:07:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16514265', 'tblTempUsageDetail_20' ) end [2026-01-06 12:07:54] Production.ERROR: pbx prc_insertCDR start [2026-01-06 12:07:57] Production.ERROR: pbx prc_insertCDR end [2026-01-06 12:07:57] Production.INFO: ==17455== Releasing lock... [2026-01-06 12:07:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 12:07:57] Production.INFO: 71.25 MB #Memory Used# [2026-01-06 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 10:00:06 [end_date_ymd] => 2026-01-06 13:00:06 [RateCDR] => 1 ) [2026-01-06 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-06 10:00:06' and `end` < '2026-01-06 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-06 13:00:20] Production.INFO: count ==5832 [2026-01-06 13:00:23] Production.ERROR: pbx CDR StartTime 2026-01-06 10:00:06 - End Time 2026-01-06 13:00:06 [2026-01-06 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16514512', 'tblTempUsageDetail_20' ) start [2026-01-06 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16514512', 'tblTempUsageDetail_20' ) end [2026-01-06 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16514512', 'tblTempVendorCDR_20' ) start [2026-01-06 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16514512', 'tblTempVendorCDR_20' ) end [2026-01-06 13:00:23] Production.INFO: ProcessCDR(1,16514512,1,1,2) [2026-01-06 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16514512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 13:04:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16514512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 13:04:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16514512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 13:08:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16514512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 13:08:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16514512', 'tblTempUsageDetail_20' ) start [2026-01-06 13:08:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16514512', 'tblTempUsageDetail_20' ) end [2026-01-06 13:08:14] Production.ERROR: pbx prc_insertCDR start [2026-01-06 13:08:17] Production.ERROR: pbx prc_insertCDR end [2026-01-06 13:08:17] Production.INFO: ==22272== Releasing lock... [2026-01-06 13:08:17] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 13:08:17] Production.INFO: 72 MB #Memory Used# [2026-01-06 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 11:00:05 [end_date_ymd] => 2026-01-06 14:00:05 [RateCDR] => 1 ) [2026-01-06 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-06 11:00:05' and `end` < '2026-01-06 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-06 14:00:20] Production.INFO: count ==5606 [2026-01-06 14:00:23] Production.ERROR: pbx CDR StartTime 2026-01-06 11:00:05 - End Time 2026-01-06 14:00:05 [2026-01-06 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16514759', 'tblTempUsageDetail_20' ) start [2026-01-06 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16514759', 'tblTempUsageDetail_20' ) end [2026-01-06 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16514759', 'tblTempVendorCDR_20' ) start [2026-01-06 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16514759', 'tblTempVendorCDR_20' ) end [2026-01-06 14:00:23] Production.INFO: ProcessCDR(1,16514759,1,1,2) [2026-01-06 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16514759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 14:03:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16514759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 14:03:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16514759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 14:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16514759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 14:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16514759', 'tblTempUsageDetail_20' ) start [2026-01-06 14:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16514759', 'tblTempUsageDetail_20' ) end [2026-01-06 14:07:31] Production.ERROR: pbx prc_insertCDR start [2026-01-06 14:07:33] Production.ERROR: pbx prc_insertCDR end [2026-01-06 14:07:33] Production.INFO: ==26807== Releasing lock... [2026-01-06 14:07:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 14:07:33] Production.INFO: 70.25 MB #Memory Used# [2026-01-06 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 12:00:05 [end_date_ymd] => 2026-01-06 15:00:05 [RateCDR] => 1 ) [2026-01-06 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-06 12:00:05' and `end` < '2026-01-06 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-06 15:00:19] Production.INFO: count ==5711 [2026-01-06 15:00:22] Production.ERROR: pbx CDR StartTime 2026-01-06 12:00:05 - End Time 2026-01-06 15:00:05 [2026-01-06 15:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16515006', 'tblTempUsageDetail_20' ) start [2026-01-06 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16515006', 'tblTempUsageDetail_20' ) end [2026-01-06 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16515006', 'tblTempVendorCDR_20' ) start [2026-01-06 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16515006', 'tblTempVendorCDR_20' ) end [2026-01-06 15:00:23] Production.INFO: ProcessCDR(1,16515006,1,1,2) [2026-01-06 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16515006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 15:03:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16515006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 15:03:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16515006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 15:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16515006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 15:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16515006', 'tblTempUsageDetail_20' ) start [2026-01-06 15:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16515006', 'tblTempUsageDetail_20' ) end [2026-01-06 15:07:19] Production.ERROR: pbx prc_insertCDR start [2026-01-06 15:07:22] Production.ERROR: pbx prc_insertCDR end [2026-01-06 15:07:22] Production.INFO: ==31734== Releasing lock... [2026-01-06 15:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 15:07:22] Production.INFO: 71 MB #Memory Used# [2026-01-06 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 13:00:06 [end_date_ymd] => 2026-01-06 16:00:06 [RateCDR] => 1 ) [2026-01-06 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-06 13:00:06' and `end` < '2026-01-06 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-06 16:00:22] Production.INFO: count ==5743 [2026-01-06 16:00:25] Production.ERROR: pbx CDR StartTime 2026-01-06 13:00:06 - End Time 2026-01-06 16:00:06 [2026-01-06 16:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 16:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16515253', 'tblTempUsageDetail_20' ) start [2026-01-06 16:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16515253', 'tblTempUsageDetail_20' ) end [2026-01-06 16:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16515253', 'tblTempVendorCDR_20' ) start [2026-01-06 16:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16515253', 'tblTempVendorCDR_20' ) end [2026-01-06 16:00:25] Production.INFO: ProcessCDR(1,16515253,1,1,2) [2026-01-06 16:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16515253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 16:03:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16515253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 16:03:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16515253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 16:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16515253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 16:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16515253', 'tblTempUsageDetail_20' ) start [2026-01-06 16:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16515253', 'tblTempUsageDetail_20' ) end [2026-01-06 16:07:20] Production.ERROR: pbx prc_insertCDR start [2026-01-06 16:07:22] Production.ERROR: pbx prc_insertCDR end [2026-01-06 16:07:22] Production.INFO: ==5693== Releasing lock... [2026-01-06 16:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 16:07:22] Production.INFO: 71.25 MB #Memory Used# [2026-01-06 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 14:00:06 [end_date_ymd] => 2026-01-06 17:00:06 [RateCDR] => 1 ) [2026-01-06 17:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-06 14:00:06' and `end` < '2026-01-06 17:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-06 17:00:19] Production.INFO: count ==5465 [2026-01-06 17:00:22] Production.ERROR: pbx CDR StartTime 2026-01-06 14:00:06 - End Time 2026-01-06 17:00:06 [2026-01-06 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16515500', 'tblTempUsageDetail_20' ) start [2026-01-06 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16515500', 'tblTempUsageDetail_20' ) end [2026-01-06 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16515500', 'tblTempVendorCDR_20' ) start [2026-01-06 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16515500', 'tblTempVendorCDR_20' ) end [2026-01-06 17:00:22] Production.INFO: ProcessCDR(1,16515500,1,1,2) [2026-01-06 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16515500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 17:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16515500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 17:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16515500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 17:08:08] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16515500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 17:08:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16515500', 'tblTempUsageDetail_20' ) start [2026-01-06 17:08:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16515500', 'tblTempUsageDetail_20' ) end [2026-01-06 17:08:09] Production.ERROR: pbx prc_insertCDR start [2026-01-06 17:08:13] Production.ERROR: pbx prc_insertCDR end [2026-01-06 17:08:13] Production.INFO: ==12140== Releasing lock... [2026-01-06 17:08:13] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 17:08:13] Production.INFO: 69.5 MB #Memory Used# [2026-01-06 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 15:00:05 [end_date_ymd] => 2026-01-06 18:00:05 [RateCDR] => 1 ) [2026-01-06 18: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-06 15:00:05' and `end` < '2026-01-06 18: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-06 18:00:18] Production.INFO: count ==4537 [2026-01-06 18:00:20] Production.ERROR: pbx CDR StartTime 2026-01-06 15:00:05 - End Time 2026-01-06 18:00:05 [2026-01-06 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16515745', 'tblTempUsageDetail_20' ) start [2026-01-06 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16515745', 'tblTempUsageDetail_20' ) end [2026-01-06 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16515745', 'tblTempVendorCDR_20' ) start [2026-01-06 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16515745', 'tblTempVendorCDR_20' ) end [2026-01-06 18:00:20] Production.INFO: ProcessCDR(1,16515745,1,1,2) [2026-01-06 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16515745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 18:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16515745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 18:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16515745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 18:07:17] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16515745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 18:07:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16515745', 'tblTempUsageDetail_20' ) start [2026-01-06 18:07:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16515745', 'tblTempUsageDetail_20' ) end [2026-01-06 18:07:18] Production.ERROR: pbx prc_insertCDR start [2026-01-06 18:07:19] Production.ERROR: pbx prc_insertCDR end [2026-01-06 18:07:19] Production.INFO: ==17320== Releasing lock... [2026-01-06 18:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 18:07:19] Production.INFO: 62.25 MB #Memory Used# [2026-01-06 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 16:00:05 [end_date_ymd] => 2026-01-06 19:00:05 [RateCDR] => 1 ) [2026-01-06 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-06 16:00:05' and `end` < '2026-01-06 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-06 19:00:18] Production.INFO: count ==3673 [2026-01-06 19:00:19] Production.ERROR: pbx CDR StartTime 2026-01-06 16:00:05 - End Time 2026-01-06 19:00:05 [2026-01-06 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16515992', 'tblTempUsageDetail_20' ) start [2026-01-06 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16515992', 'tblTempUsageDetail_20' ) end [2026-01-06 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16515992', 'tblTempVendorCDR_20' ) start [2026-01-06 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16515992', 'tblTempVendorCDR_20' ) end [2026-01-06 19:00:20] Production.INFO: ProcessCDR(1,16515992,1,1,2) [2026-01-06 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16515992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 19:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16515992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 19:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16515992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 19:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16515992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 19:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16515992', 'tblTempUsageDetail_20' ) start [2026-01-06 19:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16515992', 'tblTempUsageDetail_20' ) end [2026-01-06 19:07:21] Production.ERROR: pbx prc_insertCDR start [2026-01-06 19:07:22] Production.ERROR: pbx prc_insertCDR end [2026-01-06 19:07:22] Production.INFO: ==22336== Releasing lock... [2026-01-06 19:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 19:07:22] Production.INFO: 56 MB #Memory Used# [2026-01-06 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 17:00:05 [end_date_ymd] => 2026-01-06 20:00:05 [RateCDR] => 1 ) [2026-01-06 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-06 17:00:05' and `end` < '2026-01-06 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-06 20:00:18] Production.INFO: count ==2553 [2026-01-06 20:00:19] Production.ERROR: pbx CDR StartTime 2026-01-06 17:00:05 - End Time 2026-01-06 20:00:05 [2026-01-06 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16516239', 'tblTempUsageDetail_20' ) start [2026-01-06 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16516239', 'tblTempUsageDetail_20' ) end [2026-01-06 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16516239', 'tblTempVendorCDR_20' ) start [2026-01-06 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16516239', 'tblTempVendorCDR_20' ) end [2026-01-06 20:00:19] Production.INFO: ProcessCDR(1,16516239,1,1,2) [2026-01-06 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16516239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 20:03:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16516239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 20:03:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16516239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 20:07:12] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16516239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 20:07:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16516239', 'tblTempUsageDetail_20' ) start [2026-01-06 20:07:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16516239', 'tblTempUsageDetail_20' ) end [2026-01-06 20:07:13] Production.ERROR: pbx prc_insertCDR start [2026-01-06 20:07:14] Production.ERROR: pbx prc_insertCDR end [2026-01-06 20:07:14] Production.INFO: ==26994== Releasing lock... [2026-01-06 20:07:14] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 20:07:14] Production.INFO: 47.25 MB #Memory Used# [2026-01-06 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 18:00:06 [end_date_ymd] => 2026-01-06 21:00:06 [RateCDR] => 1 ) [2026-01-06 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-06 18:00:06' and `end` < '2026-01-06 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-06 21:00:18] Production.INFO: count ==1878 [2026-01-06 21:00:19] Production.ERROR: pbx CDR StartTime 2026-01-06 18:00:06 - End Time 2026-01-06 21:00:06 [2026-01-06 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16516486', 'tblTempUsageDetail_20' ) start [2026-01-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16516486', 'tblTempUsageDetail_20' ) end [2026-01-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16516486', 'tblTempVendorCDR_20' ) start [2026-01-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16516486', 'tblTempVendorCDR_20' ) end [2026-01-06 21:00:19] Production.INFO: ProcessCDR(1,16516486,1,1,2) [2026-01-06 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16516486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 21:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16516486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 21:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16516486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 21:07:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16516486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 21:07:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16516486', 'tblTempUsageDetail_20' ) start [2026-01-06 21:07:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16516486', 'tblTempUsageDetail_20' ) end [2026-01-06 21:07:18] Production.ERROR: pbx prc_insertCDR start [2026-01-06 21:07:19] Production.ERROR: pbx prc_insertCDR end [2026-01-06 21:07:19] Production.INFO: ==31301== Releasing lock... [2026-01-06 21:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 21:07:19] Production.INFO: 42.25 MB #Memory Used# [2026-01-06 22:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 19:00:05 [end_date_ymd] => 2026-01-06 22:00:05 [RateCDR] => 1 ) [2026-01-06 22: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-06 19:00:05' and `end` < '2026-01-06 22: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-06 22:00:17] Production.INFO: count ==1325 [2026-01-06 22:00:18] Production.ERROR: pbx CDR StartTime 2026-01-06 19:00:05 - End Time 2026-01-06 22:00:05 [2026-01-06 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16516733', 'tblTempUsageDetail_20' ) start [2026-01-06 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16516733', 'tblTempUsageDetail_20' ) end [2026-01-06 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16516733', 'tblTempVendorCDR_20' ) start [2026-01-06 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16516733', 'tblTempVendorCDR_20' ) end [2026-01-06 22:00:18] Production.INFO: ProcessCDR(1,16516733,1,1,2) [2026-01-06 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16516733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 22:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16516733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 22:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16516733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16516733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16516733', 'tblTempUsageDetail_20' ) start [2026-01-06 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16516733', 'tblTempUsageDetail_20' ) end [2026-01-06 22:07:21] Production.ERROR: pbx prc_insertCDR start [2026-01-06 22:07:22] Production.ERROR: pbx prc_insertCDR end [2026-01-06 22:07:22] Production.INFO: ==3571== Releasing lock... [2026-01-06 22:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 22:07:22] Production.INFO: 38.25 MB #Memory Used# [2026-01-06 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 20:00:05 [end_date_ymd] => 2026-01-06 23:00:05 [RateCDR] => 1 ) [2026-01-06 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-06 20:00:05' and `end` < '2026-01-06 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-06 23:00:18] Production.INFO: count ==1024 [2026-01-06 23:00:18] Production.ERROR: pbx CDR StartTime 2026-01-06 20:00:05 - End Time 2026-01-06 23:00:05 [2026-01-06 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-06 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16516980', 'tblTempUsageDetail_20' ) start [2026-01-06 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16516980', 'tblTempUsageDetail_20' ) end [2026-01-06 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16516980', 'tblTempVendorCDR_20' ) start [2026-01-06 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16516980', 'tblTempVendorCDR_20' ) end [2026-01-06 23:00:18] Production.INFO: ProcessCDR(1,16516980,1,1,2) [2026-01-06 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16516980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 23:03:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16516980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-06 23:03:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16516980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 23:07:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16516980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-06 23:07:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16516980', 'tblTempUsageDetail_20' ) start [2026-01-06 23:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16516980', 'tblTempUsageDetail_20' ) end [2026-01-06 23:07:34] Production.ERROR: pbx prc_insertCDR start [2026-01-06 23:07:34] Production.ERROR: pbx prc_insertCDR end [2026-01-06 23:07:34] Production.INFO: ==7897== Releasing lock... [2026-01-06 23:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-06 23:07:34] Production.INFO: 36.25 MB #Memory Used#