[2025-12-06 00:00:05] Production.INFO: next invoice date [2025-12-06 00:00:05] Production.INFO: 2026-01-06 [2025-12-06 00:00:05] Production.INFO: getdaysdiff [2025-12-06 00:00:05] Production.INFO: +31 [2025-12-06 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (154,11,1,31,31,'RMScheduler',2025-12-06 00:00:05,1,0,,,0) [2025-12-06 00:00:06] Production.INFO: next invoice date [2025-12-06 00:00:06] Production.INFO: 2026-01-06 [2025-12-06 00:00:06] Production.INFO: getdaysdiff [2025-12-06 00:00:06] Production.INFO: +31 [2025-12-06 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (207,11,1,31,31,'RMScheduler',2025-12-06 00:00:05,0,0,,,0) [2025-12-06 00:00:06] Production.INFO: next invoice date [2025-12-06 00:00:06] Production.INFO: 2026-01-06 [2025-12-06 00:00:06] Production.INFO: getdaysdiff [2025-12-06 00:00:06] Production.INFO: +31 [2025-12-06 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (207,13,2,31,31,'RMScheduler',2025-12-06 00:00:05,0,0,,,0) [2025-12-06 00:00:06] Production.INFO: next invoice date [2025-12-06 00:00:06] Production.INFO: 2026-01-06 [2025-12-06 00:00:06] Production.INFO: getdaysdiff [2025-12-06 00:00:06] Production.INFO: +31 [2025-12-06 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (206,11,1,31,31,'RMScheduler',2025-12-06 00:00:05,0,0,,,0) [2025-12-06 00:00:06] Production.INFO: next invoice date [2025-12-06 00:00:06] Production.INFO: 2026-01-06 [2025-12-06 00:00:06] Production.INFO: getdaysdiff [2025-12-06 00:00:06] Production.INFO: +31 [2025-12-06 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (206,13,2,31,31,'RMScheduler',2025-12-06 00:00:05,0,0,,,0) [2025-12-06 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 21:00:07 [end_date_ymd] => 2025-12-06 00:00:07 [RateCDR] => 1 ) [2025-12-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` >= '2025-12-05 21:00:07' and `end` < '2025-12-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 ,'') [2025-12-06 00:00:20] Production.INFO: count ==1212 [2025-12-06 00:00:20] Production.ERROR: pbx CDR StartTime 2025-12-05 21:00:07 - End Time 2025-12-06 00:00:07 [2025-12-06 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16327553', 'tblTempUsageDetail_20' ) start [2025-12-06 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16327553', 'tblTempUsageDetail_20' ) end [2025-12-06 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16327553', 'tblTempVendorCDR_20' ) start [2025-12-06 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16327553', 'tblTempVendorCDR_20' ) end [2025-12-06 00:00:21] Production.INFO: ProcessCDR(1,16327553,1,1,2) [2025-12-06 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16327553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 00:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16327553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 00:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16327553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 00:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16327553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 00:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16327553', 'tblTempUsageDetail_20' ) start [2025-12-06 00:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16327553', 'tblTempUsageDetail_20' ) end [2025-12-06 00:00:36] Production.ERROR: pbx prc_insertCDR start [2025-12-06 00:00:36] Production.ERROR: pbx prc_insertCDR end [2025-12-06 00:00:38] Production.INFO: ==27840== Releasing lock... [2025-12-06 00:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 00:00:38] Production.INFO: 40.5 MB #Memory Used# [2025-12-06 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 22:00:06 [end_date_ymd] => 2025-12-06 01:00:06 [RateCDR] => 1 ) [2025-12-06 01:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 22:00:06' and `end` < '2025-12-06 01:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-06 01:00:19] Production.INFO: count ==749 [2025-12-06 01:00:19] Production.ERROR: pbx CDR StartTime 2025-12-05 22:00:06 - End Time 2025-12-06 01:00:06 [2025-12-06 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16327800', 'tblTempUsageDetail_20' ) start [2025-12-06 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16327800', 'tblTempUsageDetail_20' ) end [2025-12-06 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16327800', 'tblTempVendorCDR_20' ) start [2025-12-06 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16327800', 'tblTempVendorCDR_20' ) end [2025-12-06 01:00:19] Production.INFO: ProcessCDR(1,16327800,1,1,2) [2025-12-06 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16327800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 01:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16327800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 01:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16327800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 01:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16327800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 01:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16327800', 'tblTempUsageDetail_20' ) start [2025-12-06 01:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16327800', 'tblTempUsageDetail_20' ) end [2025-12-06 01:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-06 01:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-06 01:00:30] Production.INFO: ==32582== Releasing lock... [2025-12-06 01:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 01:00:30] Production.INFO: 34.25 MB #Memory Used# [2025-12-06 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-05 23:00:07 [end_date_ymd] => 2025-12-06 02:00:07 [RateCDR] => 1 ) [2025-12-06 02:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-05 23:00:07' and `end` < '2025-12-06 02:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-06 02:00:19] Production.INFO: count ==840 [2025-12-06 02:00:19] Production.ERROR: pbx CDR StartTime 2025-12-05 23:00:07 - End Time 2025-12-06 02:00:07 [2025-12-06 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16328047', 'tblTempUsageDetail_20' ) start [2025-12-06 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16328047', 'tblTempUsageDetail_20' ) end [2025-12-06 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16328047', 'tblTempVendorCDR_20' ) start [2025-12-06 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16328047', 'tblTempVendorCDR_20' ) end [2025-12-06 02:00:19] Production.INFO: ProcessCDR(1,16328047,1,1,2) [2025-12-06 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16328047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 02:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16328047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 02:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16328047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 02:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16328047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 02:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16328047', 'tblTempUsageDetail_20' ) start [2025-12-06 02:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16328047', 'tblTempUsageDetail_20' ) end [2025-12-06 02:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-06 02:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-06 02:00:30] Production.INFO: ==5630== Releasing lock... [2025-12-06 02:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 02:00:30] Production.INFO: 34 MB #Memory Used# [2025-12-06 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 00:00:06 [end_date_ymd] => 2025-12-06 03:00:06 [RateCDR] => 1 ) [2025-12-06 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-06 00:00:06' and `end` < '2025-12-06 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-06 03:00:18] Production.INFO: count ==960 [2025-12-06 03:00:18] Production.ERROR: pbx CDR StartTime 2025-12-06 00:00:06 - End Time 2025-12-06 03:00:06 [2025-12-06 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16328293', 'tblTempUsageDetail_20' ) start [2025-12-06 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16328293', 'tblTempUsageDetail_20' ) end [2025-12-06 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16328293', 'tblTempVendorCDR_20' ) start [2025-12-06 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16328293', 'tblTempVendorCDR_20' ) end [2025-12-06 03:00:18] Production.INFO: ProcessCDR(1,16328293,1,1,2) [2025-12-06 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16328293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 03:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16328293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 03:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16328293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 03:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16328293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 03:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16328293', 'tblTempUsageDetail_20' ) start [2025-12-06 03:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16328293', 'tblTempUsageDetail_20' ) end [2025-12-06 03:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-06 03:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-06 03:00:29] Production.INFO: ==11328== Releasing lock... [2025-12-06 03:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 03:00:29] Production.INFO: 35.5 MB #Memory Used# [2025-12-06 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 01:00:07 [end_date_ymd] => 2025-12-06 04:00:07 [RateCDR] => 1 ) [2025-12-06 04:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-06 01:00:07' and `end` < '2025-12-06 04:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-06 04:00:19] Production.INFO: count ==843 [2025-12-06 04:00:19] Production.ERROR: pbx CDR StartTime 2025-12-06 01:00:07 - End Time 2025-12-06 04:00:07 [2025-12-06 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16328542', 'tblTempUsageDetail_20' ) start [2025-12-06 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16328542', 'tblTempUsageDetail_20' ) end [2025-12-06 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16328542', 'tblTempVendorCDR_20' ) start [2025-12-06 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16328542', 'tblTempVendorCDR_20' ) end [2025-12-06 04:00:19] Production.INFO: ProcessCDR(1,16328542,1,1,2) [2025-12-06 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16328542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 04:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16328542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 04:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16328542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 04:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16328542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 04:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16328542', 'tblTempUsageDetail_20' ) start [2025-12-06 04:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16328542', 'tblTempUsageDetail_20' ) end [2025-12-06 04:00:31] Production.ERROR: pbx prc_insertCDR start [2025-12-06 04:00:32] Production.ERROR: pbx prc_insertCDR end [2025-12-06 04:00:32] Production.INFO: ==15999== Releasing lock... [2025-12-06 04:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 04:00:32] Production.INFO: 34.25 MB #Memory Used# [2025-12-06 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 02:00:06 [end_date_ymd] => 2025-12-06 05:00:06 [RateCDR] => 1 ) [2025-12-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` >= '2025-12-06 02:00:06' and `end` < '2025-12-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 ,'') [2025-12-06 05:00:18] Production.INFO: count ==608 [2025-12-06 05:00:18] Production.ERROR: pbx CDR StartTime 2025-12-06 02:00:06 - End Time 2025-12-06 05:00:06 [2025-12-06 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16328790', 'tblTempUsageDetail_20' ) start [2025-12-06 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16328790', 'tblTempUsageDetail_20' ) end [2025-12-06 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16328790', 'tblTempVendorCDR_20' ) start [2025-12-06 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16328790', 'tblTempVendorCDR_20' ) end [2025-12-06 05:00:18] Production.INFO: ProcessCDR(1,16328790,1,1,2) [2025-12-06 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16328790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 05:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16328790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 05:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16328790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 05:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16328790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 05:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16328790', 'tblTempUsageDetail_20' ) start [2025-12-06 05:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16328790', 'tblTempUsageDetail_20' ) end [2025-12-06 05:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-06 05:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-06 05:00:29] Production.INFO: ==20711== Releasing lock... [2025-12-06 05:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 05:00:29] Production.INFO: 33.5 MB #Memory Used# [2025-12-06 06:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 03:00:07 [end_date_ymd] => 2025-12-06 06:00:07 [RateCDR] => 1 ) [2025-12-06 06:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-06 03:00:07' and `end` < '2025-12-06 06:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-06 06:00:19] Production.INFO: count ==354 [2025-12-06 06:00:19] Production.ERROR: pbx CDR StartTime 2025-12-06 03:00:07 - End Time 2025-12-06 06:00:07 [2025-12-06 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16329037', 'tblTempUsageDetail_20' ) start [2025-12-06 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16329037', 'tblTempUsageDetail_20' ) end [2025-12-06 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16329037', 'tblTempVendorCDR_20' ) start [2025-12-06 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16329037', 'tblTempVendorCDR_20' ) end [2025-12-06 06:00:19] Production.INFO: ProcessCDR(1,16329037,1,1,2) [2025-12-06 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16329037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 06:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16329037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 06:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16329037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 06:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16329037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 06:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16329037', 'tblTempUsageDetail_20' ) start [2025-12-06 06:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16329037', 'tblTempUsageDetail_20' ) end [2025-12-06 06:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-06 06:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-06 06:00:29] Production.INFO: ==25268== Releasing lock... [2025-12-06 06:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 06:00:29] Production.INFO: 31 MB #Memory Used# [2025-12-06 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 04:00:06 [end_date_ymd] => 2025-12-06 07:00:06 [RateCDR] => 1 ) [2025-12-06 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-06 04:00:06' and `end` < '2025-12-06 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-06 07:00:17] Production.INFO: count ==234 [2025-12-06 07:00:17] Production.ERROR: pbx CDR StartTime 2025-12-06 04:00:06 - End Time 2025-12-06 07:00:06 [2025-12-06 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16329284', 'tblTempUsageDetail_20' ) start [2025-12-06 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16329284', 'tblTempUsageDetail_20' ) end [2025-12-06 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16329284', 'tblTempVendorCDR_20' ) start [2025-12-06 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16329284', 'tblTempVendorCDR_20' ) end [2025-12-06 07:00:17] Production.INFO: ProcessCDR(1,16329284,1,1,2) [2025-12-06 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16329284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 07:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16329284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 07:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16329284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 07:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16329284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16329284', 'tblTempUsageDetail_20' ) start [2025-12-06 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16329284', 'tblTempUsageDetail_20' ) end [2025-12-06 07:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-06 07:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-06 07:00:28] Production.INFO: ==30142== Releasing lock... [2025-12-06 07:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 07:00:28] Production.INFO: 30 MB #Memory Used# [2025-12-06 08:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 05:00:07 [end_date_ymd] => 2025-12-06 08:00:07 [RateCDR] => 1 ) [2025-12-06 08:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-06 05:00:07' and `end` < '2025-12-06 08:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-06 08:00:18] Production.INFO: count ==206 [2025-12-06 08:00:18] Production.ERROR: pbx CDR StartTime 2025-12-06 05:00:07 - End Time 2025-12-06 08:00:07 [2025-12-06 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16329531', 'tblTempUsageDetail_20' ) start [2025-12-06 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16329531', 'tblTempUsageDetail_20' ) end [2025-12-06 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16329531', 'tblTempVendorCDR_20' ) start [2025-12-06 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16329531', 'tblTempVendorCDR_20' ) end [2025-12-06 08:00:18] Production.INFO: ProcessCDR(1,16329531,1,1,2) [2025-12-06 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16329531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 08:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16329531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 08:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16329531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 08:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16329531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16329531', 'tblTempUsageDetail_20' ) start [2025-12-06 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16329531', 'tblTempUsageDetail_20' ) end [2025-12-06 08:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-06 08:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-06 08:00:28] Production.INFO: ==2233== Releasing lock... [2025-12-06 08:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 08:00:28] Production.INFO: 29.75 MB #Memory Used# [2025-12-06 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 06:00:06 [end_date_ymd] => 2025-12-06 09:00:06 [RateCDR] => 1 ) [2025-12-06 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-06 06:00:06' and `end` < '2025-12-06 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-06 09:00:18] Production.INFO: count ==367 [2025-12-06 09:00:18] Production.ERROR: pbx CDR StartTime 2025-12-06 06:00:06 - End Time 2025-12-06 09:00:06 [2025-12-06 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16329778', 'tblTempUsageDetail_20' ) start [2025-12-06 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16329778', 'tblTempUsageDetail_20' ) end [2025-12-06 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16329778', 'tblTempVendorCDR_20' ) start [2025-12-06 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16329778', 'tblTempVendorCDR_20' ) end [2025-12-06 09:00:18] Production.INFO: ProcessCDR(1,16329778,1,1,2) [2025-12-06 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16329778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 09:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16329778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 09:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16329778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 09:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16329778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 09:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16329778', 'tblTempUsageDetail_20' ) start [2025-12-06 09:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16329778', 'tblTempUsageDetail_20' ) end [2025-12-06 09:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-06 09:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-06 09:00:29] Production.INFO: ==6875== Releasing lock... [2025-12-06 09:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 09:00:29] Production.INFO: 31.5 MB #Memory Used# [2025-12-06 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 07:00:07 [end_date_ymd] => 2025-12-06 10:00:07 [RateCDR] => 1 ) [2025-12-06 10:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-06 07:00:07' and `end` < '2025-12-06 10:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-06 10:00:19] Production.INFO: count ==889 [2025-12-06 10:00:19] Production.ERROR: pbx CDR StartTime 2025-12-06 07:00:07 - End Time 2025-12-06 10:00:07 [2025-12-06 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16330025', 'tblTempUsageDetail_20' ) start [2025-12-06 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16330025', 'tblTempUsageDetail_20' ) end [2025-12-06 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16330025', 'tblTempVendorCDR_20' ) start [2025-12-06 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16330025', 'tblTempVendorCDR_20' ) end [2025-12-06 10:00:19] Production.INFO: ProcessCDR(1,16330025,1,1,2) [2025-12-06 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16330025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 10:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16330025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 10:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16330025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 10:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16330025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 10:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16330025', 'tblTempUsageDetail_20' ) start [2025-12-06 10:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16330025', 'tblTempUsageDetail_20' ) end [2025-12-06 10:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-06 10:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-06 10:00:30] Production.INFO: ==11226== Releasing lock... [2025-12-06 10:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 10:00:30] Production.INFO: 34.75 MB #Memory Used# [2025-12-06 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 08:00:06 [end_date_ymd] => 2025-12-06 11:00:06 [RateCDR] => 1 ) [2025-12-06 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-06 08:00:06' and `end` < '2025-12-06 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-06 11:00:18] Production.INFO: count ==1367 [2025-12-06 11:00:18] Production.ERROR: pbx CDR StartTime 2025-12-06 08:00:06 - End Time 2025-12-06 11:00:06 [2025-12-06 11:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16330272', 'tblTempUsageDetail_20' ) start [2025-12-06 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16330272', 'tblTempUsageDetail_20' ) end [2025-12-06 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16330272', 'tblTempVendorCDR_20' ) start [2025-12-06 11:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16330272', 'tblTempVendorCDR_20' ) end [2025-12-06 11:00:18] Production.INFO: ProcessCDR(1,16330272,1,1,2) [2025-12-06 11:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16330272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 11:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16330272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 11:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16330272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 11:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16330272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16330272', 'tblTempUsageDetail_20' ) start [2025-12-06 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16330272', 'tblTempUsageDetail_20' ) end [2025-12-06 11:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-06 11:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-06 11:00:30] Production.INFO: ==16671== Releasing lock... [2025-12-06 11:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 11:00:30] Production.INFO: 38.5 MB #Memory Used# [2025-12-06 12:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 09:00:07 [end_date_ymd] => 2025-12-06 12:00:07 [RateCDR] => 1 ) [2025-12-06 12:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-06 09:00:07' and `end` < '2025-12-06 12:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-06 12:00:19] Production.INFO: count ==1762 [2025-12-06 12:00:20] Production.ERROR: pbx CDR StartTime 2025-12-06 09:00:07 - End Time 2025-12-06 12:00:07 [2025-12-06 12:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16330519', 'tblTempUsageDetail_20' ) start [2025-12-06 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16330519', 'tblTempUsageDetail_20' ) end [2025-12-06 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16330519', 'tblTempVendorCDR_20' ) start [2025-12-06 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16330519', 'tblTempVendorCDR_20' ) end [2025-12-06 12:00:20] Production.INFO: ProcessCDR(1,16330519,1,1,2) [2025-12-06 12:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16330519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16330519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16330519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 12:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16330519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 12:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16330519', 'tblTempUsageDetail_20' ) start [2025-12-06 12:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16330519', 'tblTempUsageDetail_20' ) end [2025-12-06 12:00:31] Production.ERROR: pbx prc_insertCDR start [2025-12-06 12:00:32] Production.ERROR: pbx prc_insertCDR end [2025-12-06 12:00:32] Production.INFO: ==21784== Releasing lock... [2025-12-06 12:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 12:00:32] Production.INFO: 41.5 MB #Memory Used# [2025-12-06 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 10:00:06 [end_date_ymd] => 2025-12-06 13:00:06 [RateCDR] => 1 ) [2025-12-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` >= '2025-12-06 10:00:06' and `end` < '2025-12-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 ,'') [2025-12-06 13:00:18] Production.INFO: count ==1810 [2025-12-06 13:00:19] Production.ERROR: pbx CDR StartTime 2025-12-06 10:00:06 - End Time 2025-12-06 13:00:06 [2025-12-06 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16330766', 'tblTempUsageDetail_20' ) start [2025-12-06 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16330766', 'tblTempUsageDetail_20' ) end [2025-12-06 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16330766', 'tblTempVendorCDR_20' ) start [2025-12-06 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16330766', 'tblTempVendorCDR_20' ) end [2025-12-06 13:00:19] Production.INFO: ProcessCDR(1,16330766,1,1,2) [2025-12-06 13:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16330766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 13:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16330766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 13:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16330766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 13:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16330766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 13:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16330766', 'tblTempUsageDetail_20' ) start [2025-12-06 13:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16330766', 'tblTempUsageDetail_20' ) end [2025-12-06 13:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-06 13:00:31] Production.ERROR: pbx prc_insertCDR end [2025-12-06 13:00:31] Production.INFO: ==26930== Releasing lock... [2025-12-06 13:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 13:00:31] Production.INFO: 41.75 MB #Memory Used# [2025-12-06 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 11:00:06 [end_date_ymd] => 2025-12-06 14:00:06 [RateCDR] => 1 ) [2025-12-06 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-06 11:00:06' and `end` < '2025-12-06 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-06 14:00:18] Production.INFO: count ==1845 [2025-12-06 14:00:19] Production.ERROR: pbx CDR StartTime 2025-12-06 11:00:06 - End Time 2025-12-06 14:00:06 [2025-12-06 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16331013', 'tblTempUsageDetail_20' ) start [2025-12-06 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16331013', 'tblTempUsageDetail_20' ) end [2025-12-06 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16331013', 'tblTempVendorCDR_20' ) start [2025-12-06 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16331013', 'tblTempVendorCDR_20' ) end [2025-12-06 14:00:19] Production.INFO: ProcessCDR(1,16331013,1,1,2) [2025-12-06 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16331013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 14:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16331013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 14:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16331013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 14:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16331013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 14:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16331013', 'tblTempUsageDetail_20' ) start [2025-12-06 14:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16331013', 'tblTempUsageDetail_20' ) end [2025-12-06 14:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-06 14:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-06 14:00:30] Production.INFO: ==31980== Releasing lock... [2025-12-06 14:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 14:00:30] Production.INFO: 42 MB #Memory Used# [2025-12-06 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 12:00:06 [end_date_ymd] => 2025-12-06 15:00:06 [RateCDR] => 1 ) [2025-12-06 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` >= '2025-12-06 12:00:06' and `end` < '2025-12-06 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 ,'') [2025-12-06 15:00:18] Production.INFO: count ==1864 [2025-12-06 15:00:19] Production.ERROR: pbx CDR StartTime 2025-12-06 12:00:06 - End Time 2025-12-06 15:00:06 [2025-12-06 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16331260', 'tblTempUsageDetail_20' ) start [2025-12-06 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16331260', 'tblTempUsageDetail_20' ) end [2025-12-06 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16331260', 'tblTempVendorCDR_20' ) start [2025-12-06 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16331260', 'tblTempVendorCDR_20' ) end [2025-12-06 15:00:19] Production.INFO: ProcessCDR(1,16331260,1,1,2) [2025-12-06 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16331260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 15:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16331260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 15:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16331260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 15:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16331260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 15:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16331260', 'tblTempUsageDetail_20' ) start [2025-12-06 15:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16331260', 'tblTempUsageDetail_20' ) end [2025-12-06 15:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-06 15:00:32] Production.ERROR: pbx prc_insertCDR end [2025-12-06 15:00:32] Production.INFO: ==4431== Releasing lock... [2025-12-06 15:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 15:00:32] Production.INFO: 42.5 MB #Memory Used# [2025-12-06 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 13:00:06 [end_date_ymd] => 2025-12-06 16:00:06 [RateCDR] => 1 ) [2025-12-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` >= '2025-12-06 13:00:06' and `end` < '2025-12-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 ,'') [2025-12-06 16:00:18] Production.INFO: count ==1814 [2025-12-06 16:00:19] Production.ERROR: pbx CDR StartTime 2025-12-06 13:00:06 - End Time 2025-12-06 16:00:06 [2025-12-06 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16331506', 'tblTempUsageDetail_20' ) start [2025-12-06 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16331506', 'tblTempUsageDetail_20' ) end [2025-12-06 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16331506', 'tblTempVendorCDR_20' ) start [2025-12-06 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16331506', 'tblTempVendorCDR_20' ) end [2025-12-06 16:00:19] Production.INFO: ProcessCDR(1,16331506,1,1,2) [2025-12-06 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16331506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 16:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16331506,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 16:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16331506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 16:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16331506,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 16:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16331506', 'tblTempUsageDetail_20' ) start [2025-12-06 16:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16331506', 'tblTempUsageDetail_20' ) end [2025-12-06 16:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-06 16:00:31] Production.ERROR: pbx prc_insertCDR end [2025-12-06 16:00:31] Production.INFO: ==9693== Releasing lock... [2025-12-06 16:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 16:00:31] Production.INFO: 42 MB #Memory Used# [2025-12-06 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 14:00:06 [end_date_ymd] => 2025-12-06 17:00:06 [RateCDR] => 1 ) [2025-12-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` >= '2025-12-06 14:00:06' and `end` < '2025-12-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 ,'') [2025-12-06 17:00:19] Production.INFO: count ==1934 [2025-12-06 17:00:20] Production.ERROR: pbx CDR StartTime 2025-12-06 14:00:06 - End Time 2025-12-06 17:00:06 [2025-12-06 17:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16331754', 'tblTempUsageDetail_20' ) start [2025-12-06 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16331754', 'tblTempUsageDetail_20' ) end [2025-12-06 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16331754', 'tblTempVendorCDR_20' ) start [2025-12-06 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16331754', 'tblTempVendorCDR_20' ) end [2025-12-06 17:00:20] Production.INFO: ProcessCDR(1,16331754,1,1,2) [2025-12-06 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16331754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16331754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16331754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 17:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16331754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 17:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16331754', 'tblTempUsageDetail_20' ) start [2025-12-06 17:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16331754', 'tblTempUsageDetail_20' ) end [2025-12-06 17:00:31] Production.ERROR: pbx prc_insertCDR start [2025-12-06 17:00:32] Production.ERROR: pbx prc_insertCDR end [2025-12-06 17:00:32] Production.INFO: ==14174== Releasing lock... [2025-12-06 17:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 17:00:32] Production.INFO: 42.75 MB #Memory Used# [2025-12-06 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 15:00:06 [end_date_ymd] => 2025-12-06 18:00:06 [RateCDR] => 1 ) [2025-12-06 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-06 15:00:06' and `end` < '2025-12-06 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-06 18:00:18] Production.INFO: count ==2066 [2025-12-06 18:00:19] Production.ERROR: pbx CDR StartTime 2025-12-06 15:00:06 - End Time 2025-12-06 18:00:06 [2025-12-06 18:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16332000', 'tblTempUsageDetail_20' ) start [2025-12-06 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16332000', 'tblTempUsageDetail_20' ) end [2025-12-06 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16332000', 'tblTempVendorCDR_20' ) start [2025-12-06 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16332000', 'tblTempVendorCDR_20' ) end [2025-12-06 18:00:19] Production.INFO: ProcessCDR(1,16332000,1,1,2) [2025-12-06 18:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16332000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16332000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16332000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 18:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16332000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 18:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16332000', 'tblTempUsageDetail_20' ) start [2025-12-06 18:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16332000', 'tblTempUsageDetail_20' ) end [2025-12-06 18:00:31] Production.ERROR: pbx prc_insertCDR start [2025-12-06 18:00:32] Production.ERROR: pbx prc_insertCDR end [2025-12-06 18:00:32] Production.INFO: ==18587== Releasing lock... [2025-12-06 18:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 18:00:32] Production.INFO: 43.75 MB #Memory Used# [2025-12-06 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 16:00:06 [end_date_ymd] => 2025-12-06 19:00:06 [RateCDR] => 1 ) [2025-12-06 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-06 16:00:06' and `end` < '2025-12-06 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-06 19:00:18] Production.INFO: count ==2233 [2025-12-06 19:00:19] Production.ERROR: pbx CDR StartTime 2025-12-06 16:00:06 - End Time 2025-12-06 19:00:06 [2025-12-06 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16332246', 'tblTempUsageDetail_20' ) start [2025-12-06 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16332246', 'tblTempUsageDetail_20' ) end [2025-12-06 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16332246', 'tblTempVendorCDR_20' ) start [2025-12-06 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16332246', 'tblTempVendorCDR_20' ) end [2025-12-06 19:00:19] Production.INFO: ProcessCDR(1,16332246,1,1,2) [2025-12-06 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16332246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 19:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16332246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 19:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16332246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 19:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16332246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 19:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16332246', 'tblTempUsageDetail_20' ) start [2025-12-06 19:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16332246', 'tblTempUsageDetail_20' ) end [2025-12-06 19:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-06 19:00:31] Production.ERROR: pbx prc_insertCDR end [2025-12-06 19:00:31] Production.INFO: ==23381== Releasing lock... [2025-12-06 19:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 19:00:31] Production.INFO: 45.25 MB #Memory Used# [2025-12-06 20:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 17:00:07 [end_date_ymd] => 2025-12-06 20:00:07 [RateCDR] => 1 ) [2025-12-06 20:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-06 17:00:07' and `end` < '2025-12-06 20:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-06 20:00:19] Production.INFO: count ==2250 [2025-12-06 20:00:19] Production.ERROR: pbx CDR StartTime 2025-12-06 17:00:07 - End Time 2025-12-06 20:00:07 [2025-12-06 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16332494', 'tblTempUsageDetail_20' ) start [2025-12-06 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16332494', 'tblTempUsageDetail_20' ) end [2025-12-06 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16332494', 'tblTempVendorCDR_20' ) start [2025-12-06 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16332494', 'tblTempVendorCDR_20' ) end [2025-12-06 20:00:20] Production.INFO: ProcessCDR(1,16332494,1,1,2) [2025-12-06 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16332494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 20:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16332494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 20:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16332494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 20:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16332494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 20:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16332494', 'tblTempUsageDetail_20' ) start [2025-12-06 20:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16332494', 'tblTempUsageDetail_20' ) end [2025-12-06 20:00:31] Production.ERROR: pbx prc_insertCDR start [2025-12-06 20:00:32] Production.ERROR: pbx prc_insertCDR end [2025-12-06 20:00:32] Production.INFO: ==27978== Releasing lock... [2025-12-06 20:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 20:00:32] Production.INFO: 45 MB #Memory Used# [2025-12-06 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 18:00:06 [end_date_ymd] => 2025-12-06 21:00:06 [RateCDR] => 1 ) [2025-12-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` >= '2025-12-06 18:00:06' and `end` < '2025-12-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 ,'') [2025-12-06 21:00:18] Production.INFO: count ==2147 [2025-12-06 21:00:19] Production.ERROR: pbx CDR StartTime 2025-12-06 18:00:06 - End Time 2025-12-06 21:00:06 [2025-12-06 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16332741', 'tblTempUsageDetail_20' ) start [2025-12-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16332741', 'tblTempUsageDetail_20' ) end [2025-12-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16332741', 'tblTempVendorCDR_20' ) start [2025-12-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16332741', 'tblTempVendorCDR_20' ) end [2025-12-06 21:00:19] Production.INFO: ProcessCDR(1,16332741,1,1,2) [2025-12-06 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16332741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 21:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16332741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 21:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16332741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 21:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16332741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 21:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16332741', 'tblTempUsageDetail_20' ) start [2025-12-06 21:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16332741', 'tblTempUsageDetail_20' ) end [2025-12-06 21:00:31] Production.ERROR: pbx prc_insertCDR start [2025-12-06 21:00:31] Production.ERROR: pbx prc_insertCDR end [2025-12-06 21:00:31] Production.INFO: ==32505== Releasing lock... [2025-12-06 21:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 21:00:31] Production.INFO: 44.25 MB #Memory Used# [2025-12-06 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 19:00:06 [end_date_ymd] => 2025-12-06 22:00:06 [RateCDR] => 1 ) [2025-12-06 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` >= '2025-12-06 19:00:06' and `end` < '2025-12-06 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 ,'') [2025-12-06 22:00:18] Production.INFO: count ==1869 [2025-12-06 22:00:19] Production.ERROR: pbx CDR StartTime 2025-12-06 19:00:06 - End Time 2025-12-06 22:00:06 [2025-12-06 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16332988', 'tblTempUsageDetail_20' ) start [2025-12-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16332988', 'tblTempUsageDetail_20' ) end [2025-12-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16332988', 'tblTempVendorCDR_20' ) start [2025-12-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16332988', 'tblTempVendorCDR_20' ) end [2025-12-06 22:00:19] Production.INFO: ProcessCDR(1,16332988,1,1,2) [2025-12-06 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16332988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 22:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16332988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 22:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16332988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 22:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16332988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 22:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16332988', 'tblTempUsageDetail_20' ) start [2025-12-06 22:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16332988', 'tblTempUsageDetail_20' ) end [2025-12-06 22:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-06 22:00:30] Production.ERROR: pbx prc_insertCDR end [2025-12-06 22:00:30] Production.INFO: ==5856== Releasing lock... [2025-12-06 22:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 22:00:30] Production.INFO: 42.25 MB #Memory Used# [2025-12-06 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-06 20:00:06 [end_date_ymd] => 2025-12-06 23:00:06 [RateCDR] => 1 ) [2025-12-06 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-06 20:00:06' and `end` < '2025-12-06 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-06 23:00:17] Production.INFO: count ==1476 [2025-12-06 23:00:18] Production.ERROR: pbx CDR StartTime 2025-12-06 20:00:06 - End Time 2025-12-06 23:00:06 [2025-12-06 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-06 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16333234', 'tblTempUsageDetail_20' ) start [2025-12-06 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16333234', 'tblTempUsageDetail_20' ) end [2025-12-06 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16333234', 'tblTempVendorCDR_20' ) start [2025-12-06 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16333234', 'tblTempVendorCDR_20' ) end [2025-12-06 23:00:18] Production.INFO: ProcessCDR(1,16333234,1,1,2) [2025-12-06 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16333234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 23:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16333234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-06 23:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16333234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 23:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16333234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-06 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16333234', 'tblTempUsageDetail_20' ) start [2025-12-06 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16333234', 'tblTempUsageDetail_20' ) end [2025-12-06 23:00:29] Production.ERROR: pbx prc_insertCDR start [2025-12-06 23:00:29] Production.ERROR: pbx prc_insertCDR end [2025-12-06 23:00:29] Production.INFO: ==10308== Releasing lock... [2025-12-06 23:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-06 23:00:29] Production.INFO: 39.5 MB #Memory Used#