[2025-12-30 00:00:05] Production.INFO: next invoice date [2025-12-30 00:00:05] Production.INFO: 2026-01-30 [2025-12-30 00:00:05] Production.INFO: getdaysdiff [2025-12-30 00:00:05] Production.INFO: +31 [2025-12-30 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (205,11,1,31,31,'RMScheduler',2025-12-30 00:00:05,0,0,,,0) [2025-12-30 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 21:00:06 [end_date_ymd] => 2025-12-30 00:00:06 [RateCDR] => 1 ) [2025-12-30 00:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-29 21:00:06' and `end` < '2025-12-30 00:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-30 00:00:20] Production.INFO: count ==979 [2025-12-30 00:00:20] Production.ERROR: pbx CDR StartTime 2025-12-29 21:00:06 - End Time 2025-12-30 00:00:06 [2025-12-30 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16469802', 'tblTempUsageDetail_20' ) start [2025-12-30 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16469802', 'tblTempUsageDetail_20' ) end [2025-12-30 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16469802', 'tblTempVendorCDR_20' ) start [2025-12-30 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16469802', 'tblTempVendorCDR_20' ) end [2025-12-30 00:00:20] Production.INFO: ProcessCDR(1,16469802,1,1,2) [2025-12-30 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16469802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 00:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16469802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 00:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16469802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 00:07:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16469802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 00:07:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16469802', 'tblTempUsageDetail_20' ) start [2025-12-30 00:07:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16469802', 'tblTempUsageDetail_20' ) end [2025-12-30 00:07:17] Production.ERROR: pbx prc_insertCDR start [2025-12-30 00:07:17] Production.ERROR: pbx prc_insertCDR end [2025-12-30 00:07:21] Production.INFO: ==18311== Releasing lock... [2025-12-30 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 00:07:21] Production.INFO: 39.25 MB #Memory Used# [2025-12-30 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 22:00:05 [end_date_ymd] => 2025-12-30 01:00:05 [RateCDR] => 1 ) [2025-12-30 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` >= '2025-12-29 22:00:05' and `end` < '2025-12-30 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 ,'') [2025-12-30 01:00:20] Production.INFO: count ==721 [2025-12-30 01:00:21] Production.ERROR: pbx CDR StartTime 2025-12-29 22:00:05 - End Time 2025-12-30 01:00:05 [2025-12-30 01:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16470049', 'tblTempUsageDetail_20' ) start [2025-12-30 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16470049', 'tblTempUsageDetail_20' ) end [2025-12-30 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16470049', 'tblTempVendorCDR_20' ) start [2025-12-30 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16470049', 'tblTempVendorCDR_20' ) end [2025-12-30 01:00:21] Production.INFO: ProcessCDR(1,16470049,1,1,2) [2025-12-30 01:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16470049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 01:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16470049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 01:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16470049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 01:07:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16470049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 01:07:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16470049', 'tblTempUsageDetail_20' ) start [2025-12-30 01:07:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16470049', 'tblTempUsageDetail_20' ) end [2025-12-30 01:07:00] Production.ERROR: pbx prc_insertCDR start [2025-12-30 01:07:00] Production.ERROR: pbx prc_insertCDR end [2025-12-30 01:07:00] Production.INFO: ==23341== Releasing lock... [2025-12-30 01:07:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 01:07:00] Production.INFO: 33.5 MB #Memory Used# [2025-12-30 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-29 23:00:06 [end_date_ymd] => 2025-12-30 02:00:06 [RateCDR] => 1 ) [2025-12-30 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` >= '2025-12-29 23:00:06' and `end` < '2025-12-30 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 ,'') [2025-12-30 02:00:18] Production.INFO: count ==764 [2025-12-30 02:00:18] Production.ERROR: pbx CDR StartTime 2025-12-29 23:00:06 - End Time 2025-12-30 02:00:06 [2025-12-30 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16470296', 'tblTempUsageDetail_20' ) start [2025-12-30 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16470296', 'tblTempUsageDetail_20' ) end [2025-12-30 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16470296', 'tblTempVendorCDR_20' ) start [2025-12-30 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16470296', 'tblTempVendorCDR_20' ) end [2025-12-30 02:00:18] Production.INFO: ProcessCDR(1,16470296,1,1,2) [2025-12-30 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16470296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 02:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16470296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 02:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16470296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 02:06:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16470296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 02:06:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16470296', 'tblTempUsageDetail_20' ) start [2025-12-30 02:06:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16470296', 'tblTempUsageDetail_20' ) end [2025-12-30 02:06:51] Production.ERROR: pbx prc_insertCDR start [2025-12-30 02:06:52] Production.ERROR: pbx prc_insertCDR end [2025-12-30 02:06:52] Production.INFO: ==27793== Releasing lock... [2025-12-30 02:06:52] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 02:06:52] Production.INFO: 33.75 MB #Memory Used# [2025-12-30 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 00:00:06 [end_date_ymd] => 2025-12-30 03:00:06 [RateCDR] => 1 ) [2025-12-30 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-30 00:00:06' and `end` < '2025-12-30 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-30 03:00:18] Production.INFO: count ==752 [2025-12-30 03:00:18] Production.ERROR: pbx CDR StartTime 2025-12-30 00:00:06 - End Time 2025-12-30 03:00:06 [2025-12-30 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16470543', 'tblTempUsageDetail_20' ) start [2025-12-30 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16470543', 'tblTempUsageDetail_20' ) end [2025-12-30 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16470543', 'tblTempVendorCDR_20' ) start [2025-12-30 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16470543', 'tblTempVendorCDR_20' ) end [2025-12-30 03:00:18] Production.INFO: ProcessCDR(1,16470543,1,1,2) [2025-12-30 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16470543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 03:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16470543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 03:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16470543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 03:07:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16470543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 03:07:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16470543', 'tblTempUsageDetail_20' ) start [2025-12-30 03:07:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16470543', 'tblTempUsageDetail_20' ) end [2025-12-30 03:07:15] Production.ERROR: pbx prc_insertCDR start [2025-12-30 03:07:15] Production.ERROR: pbx prc_insertCDR end [2025-12-30 03:07:15] Production.INFO: ==1118== Releasing lock... [2025-12-30 03:07:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 03:07:15] Production.INFO: 34 MB #Memory Used# [2025-12-30 04:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 01:00:05 [end_date_ymd] => 2025-12-30 04:00:05 [RateCDR] => 1 ) [2025-12-30 04:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-30 01:00:05' and `end` < '2025-12-30 04:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-30 04:00:17] Production.INFO: count ==520 [2025-12-30 04:00:17] Production.ERROR: pbx CDR StartTime 2025-12-30 01:00:05 - End Time 2025-12-30 04:00:05 [2025-12-30 04:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 04:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16470791', 'tblTempUsageDetail_20' ) start [2025-12-30 04:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16470791', 'tblTempUsageDetail_20' ) end [2025-12-30 04:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16470791', 'tblTempVendorCDR_20' ) start [2025-12-30 04:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16470791', 'tblTempVendorCDR_20' ) end [2025-12-30 04:00:17] Production.INFO: ProcessCDR(1,16470791,1,1,2) [2025-12-30 04:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16470791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 04:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16470791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 04:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16470791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 04:07:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16470791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 04:07:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16470791', 'tblTempUsageDetail_20' ) start [2025-12-30 04:07:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16470791', 'tblTempUsageDetail_20' ) end [2025-12-30 04:07:01] Production.ERROR: pbx prc_insertCDR start [2025-12-30 04:07:01] Production.ERROR: pbx prc_insertCDR end [2025-12-30 04:07:01] Production.INFO: ==6378== Releasing lock... [2025-12-30 04:07:01] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 04:07:01] Production.INFO: 32.5 MB #Memory Used# [2025-12-30 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 02:00:05 [end_date_ymd] => 2025-12-30 05:00:05 [RateCDR] => 1 ) [2025-12-30 05:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-30 02:00:05' and `end` < '2025-12-30 05:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-30 05:00:18] Production.INFO: count ==290 [2025-12-30 05:00:18] Production.ERROR: pbx CDR StartTime 2025-12-30 02:00:05 - End Time 2025-12-30 05:00:05 [2025-12-30 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16471039', 'tblTempUsageDetail_20' ) start [2025-12-30 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16471039', 'tblTempUsageDetail_20' ) end [2025-12-30 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16471039', 'tblTempVendorCDR_20' ) start [2025-12-30 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16471039', 'tblTempVendorCDR_20' ) end [2025-12-30 05:00:18] Production.INFO: ProcessCDR(1,16471039,1,1,2) [2025-12-30 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16471039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 05:03:10] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16471039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 05:03:10] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16471039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 05:06:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16471039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 05:06:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16471039', 'tblTempUsageDetail_20' ) start [2025-12-30 05:06:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16471039', 'tblTempUsageDetail_20' ) end [2025-12-30 05:06:37] Production.ERROR: pbx prc_insertCDR start [2025-12-30 05:06:37] Production.ERROR: pbx prc_insertCDR end [2025-12-30 05:06:37] Production.INFO: ==11487== Releasing lock... [2025-12-30 05:06:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 05:06:37] Production.INFO: 30.75 MB #Memory Used# [2025-12-30 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 03:00:05 [end_date_ymd] => 2025-12-30 06:00:05 [RateCDR] => 1 ) [2025-12-30 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` >= '2025-12-30 03:00:05' and `end` < '2025-12-30 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 ,'') [2025-12-30 06:00:17] Production.INFO: count ==138 [2025-12-30 06:00:17] Production.ERROR: pbx CDR StartTime 2025-12-30 03:00:05 - End Time 2025-12-30 06:00:05 [2025-12-30 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16471286', 'tblTempUsageDetail_20' ) start [2025-12-30 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16471286', 'tblTempUsageDetail_20' ) end [2025-12-30 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16471286', 'tblTempVendorCDR_20' ) start [2025-12-30 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16471286', 'tblTempVendorCDR_20' ) end [2025-12-30 06:00:17] Production.INFO: ProcessCDR(1,16471286,1,1,2) [2025-12-30 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16471286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 06:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16471286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 06:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16471286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 06:07:08] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16471286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 06:07:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16471286', 'tblTempUsageDetail_20' ) start [2025-12-30 06:07:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16471286', 'tblTempUsageDetail_20' ) end [2025-12-30 06:07:08] Production.ERROR: pbx prc_insertCDR start [2025-12-30 06:07:08] Production.ERROR: pbx prc_insertCDR end [2025-12-30 06:07:08] Production.INFO: ==16106== Releasing lock... [2025-12-30 06:07:08] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 06:07:08] Production.INFO: 29.5 MB #Memory Used# [2025-12-30 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 04:00:06 [end_date_ymd] => 2025-12-30 07:00:06 [RateCDR] => 1 ) [2025-12-30 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-30 04:00:06' and `end` < '2025-12-30 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-30 07:00:18] Production.INFO: count ==91 [2025-12-30 07:00:18] Production.ERROR: pbx CDR StartTime 2025-12-30 04:00:06 - End Time 2025-12-30 07:00:06 [2025-12-30 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16471533', 'tblTempUsageDetail_20' ) start [2025-12-30 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16471533', 'tblTempUsageDetail_20' ) end [2025-12-30 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16471533', 'tblTempVendorCDR_20' ) start [2025-12-30 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16471533', 'tblTempVendorCDR_20' ) end [2025-12-30 07:00:18] Production.INFO: ProcessCDR(1,16471533,1,1,2) [2025-12-30 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16471533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 07:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16471533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 07:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16471533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 07:07:07] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16471533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 07:07:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16471533', 'tblTempUsageDetail_20' ) start [2025-12-30 07:07:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16471533', 'tblTempUsageDetail_20' ) end [2025-12-30 07:07:08] Production.ERROR: pbx prc_insertCDR start [2025-12-30 07:07:08] Production.ERROR: pbx prc_insertCDR end [2025-12-30 07:07:08] Production.INFO: ==20570== Releasing lock... [2025-12-30 07:07:08] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 07:07:08] Production.INFO: 28.5 MB #Memory Used# [2025-12-30 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 05:00:06 [end_date_ymd] => 2025-12-30 08:00:06 [RateCDR] => 1 ) [2025-12-30 08:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-30 05:00:06' and `end` < '2025-12-30 08:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-30 08:00:17] Production.INFO: count ==129 [2025-12-30 08:00:17] Production.ERROR: pbx CDR StartTime 2025-12-30 05:00:06 - End Time 2025-12-30 08:00:06 [2025-12-30 08:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16471780', 'tblTempUsageDetail_20' ) start [2025-12-30 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16471780', 'tblTempUsageDetail_20' ) end [2025-12-30 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16471780', 'tblTempVendorCDR_20' ) start [2025-12-30 08:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16471780', 'tblTempVendorCDR_20' ) end [2025-12-30 08:00:17] Production.INFO: ProcessCDR(1,16471780,1,1,2) [2025-12-30 08:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16471780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 08:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16471780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 08:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16471780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 08:06:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16471780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 08:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16471780', 'tblTempUsageDetail_20' ) start [2025-12-30 08:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16471780', 'tblTempUsageDetail_20' ) end [2025-12-30 08:06:59] Production.ERROR: pbx prc_insertCDR start [2025-12-30 08:06:59] Production.ERROR: pbx prc_insertCDR end [2025-12-30 08:06:59] Production.INFO: ==24988== Releasing lock... [2025-12-30 08:06:59] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 08:06:59] Production.INFO: 29 MB #Memory Used# [2025-12-30 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 06:00:05 [end_date_ymd] => 2025-12-30 09:00:05 [RateCDR] => 1 ) [2025-12-30 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` >= '2025-12-30 06:00:05' and `end` < '2025-12-30 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 ,'') [2025-12-30 09:00:18] Production.INFO: count ==511 [2025-12-30 09:00:18] Production.ERROR: pbx CDR StartTime 2025-12-30 06:00:05 - End Time 2025-12-30 09:00:05 [2025-12-30 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16472027', 'tblTempUsageDetail_20' ) start [2025-12-30 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16472027', 'tblTempUsageDetail_20' ) end [2025-12-30 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16472027', 'tblTempVendorCDR_20' ) start [2025-12-30 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16472027', 'tblTempVendorCDR_20' ) end [2025-12-30 09:00:18] Production.INFO: ProcessCDR(1,16472027,1,1,2) [2025-12-30 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16472027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 09:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16472027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 09:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16472027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 09:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16472027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 09:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16472027', 'tblTempUsageDetail_20' ) start [2025-12-30 09:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16472027', 'tblTempUsageDetail_20' ) end [2025-12-30 09:07:19] Production.ERROR: pbx prc_insertCDR start [2025-12-30 09:07:20] Production.ERROR: pbx prc_insertCDR end [2025-12-30 09:07:20] Production.INFO: ==30018== Releasing lock... [2025-12-30 09:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 09:07:20] Production.INFO: 32.25 MB #Memory Used# [2025-12-30 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 07:00:06 [end_date_ymd] => 2025-12-30 10:00:06 [RateCDR] => 1 ) [2025-12-30 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-30 07:00:06' and `end` < '2025-12-30 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-30 10:00:18] Production.INFO: count ==2132 [2025-12-30 10:00:19] Production.ERROR: pbx CDR StartTime 2025-12-30 07:00:06 - End Time 2025-12-30 10:00:06 [2025-12-30 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16472274', 'tblTempUsageDetail_20' ) start [2025-12-30 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16472274', 'tblTempUsageDetail_20' ) end [2025-12-30 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16472274', 'tblTempVendorCDR_20' ) start [2025-12-30 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16472274', 'tblTempVendorCDR_20' ) end [2025-12-30 10:00:19] Production.INFO: ProcessCDR(1,16472274,1,1,2) [2025-12-30 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16472274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 10:03:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16472274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 10:03:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16472274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 10:07:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16472274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 10:07:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16472274', 'tblTempUsageDetail_20' ) start [2025-12-30 10:07:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16472274', 'tblTempUsageDetail_20' ) end [2025-12-30 10:07:42] Production.ERROR: pbx prc_insertCDR start [2025-12-30 10:07:44] Production.ERROR: pbx prc_insertCDR end [2025-12-30 10:07:44] Production.INFO: ==3083== Releasing lock... [2025-12-30 10:07:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 10:07:44] Production.INFO: 44.5 MB #Memory Used# [2025-12-30 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 08:00:06 [end_date_ymd] => 2025-12-30 11:00:06 [RateCDR] => 1 ) [2025-12-30 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-30 08:00:06' and `end` < '2025-12-30 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-30 11:00:19] Production.INFO: count ==3815 [2025-12-30 11:00:20] Production.ERROR: pbx CDR StartTime 2025-12-30 08:00:06 - End Time 2025-12-30 11:00:06 [2025-12-30 11:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 11:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16472521', 'tblTempUsageDetail_20' ) start [2025-12-30 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16472521', 'tblTempUsageDetail_20' ) end [2025-12-30 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16472521', 'tblTempVendorCDR_20' ) start [2025-12-30 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16472521', 'tblTempVendorCDR_20' ) end [2025-12-30 11:00:21] Production.INFO: ProcessCDR(1,16472521,1,1,2) [2025-12-30 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16472521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 11:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16472521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 11:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16472521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 11:06:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16472521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 11:06:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16472521', 'tblTempUsageDetail_20' ) start [2025-12-30 11:06:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16472521', 'tblTempUsageDetail_20' ) end [2025-12-30 11:06:54] Production.ERROR: pbx prc_insertCDR start [2025-12-30 11:06:56] Production.ERROR: pbx prc_insertCDR end [2025-12-30 11:06:56] Production.INFO: ==8514== Releasing lock... [2025-12-30 11:06:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 11:06:56] Production.INFO: 56.75 MB #Memory Used# [2025-12-30 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 09:00:05 [end_date_ymd] => 2025-12-30 12:00:05 [RateCDR] => 1 ) [2025-12-30 12:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-30 09:00:05' and `end` < '2025-12-30 12:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-30 12:00:22] Production.INFO: count ==5431 [2025-12-30 12:00:25] Production.ERROR: pbx CDR StartTime 2025-12-30 09:00:05 - End Time 2025-12-30 12:00:05 [2025-12-30 12:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16472768', 'tblTempUsageDetail_20' ) start [2025-12-30 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16472768', 'tblTempUsageDetail_20' ) end [2025-12-30 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16472768', 'tblTempVendorCDR_20' ) start [2025-12-30 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16472768', 'tblTempVendorCDR_20' ) end [2025-12-30 12:00:25] Production.INFO: ProcessCDR(1,16472768,1,1,2) [2025-12-30 12:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16472768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 12:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16472768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 12:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16472768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 12:06:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16472768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 12:06:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16472768', 'tblTempUsageDetail_20' ) start [2025-12-30 12:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16472768', 'tblTempUsageDetail_20' ) end [2025-12-30 12:06:59] Production.ERROR: pbx prc_insertCDR start [2025-12-30 12:07:01] Production.ERROR: pbx prc_insertCDR end [2025-12-30 12:07:01] Production.INFO: ==13294== Releasing lock... [2025-12-30 12:07:01] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 12:07:01] Production.INFO: 68.75 MB #Memory Used# [2025-12-30 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 10:00:06 [end_date_ymd] => 2025-12-30 13:00:06 [RateCDR] => 1 ) [2025-12-30 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-30 10:00:06' and `end` < '2025-12-30 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-30 13:00:20] Production.INFO: count ==5319 [2025-12-30 13:00:22] Production.ERROR: pbx CDR StartTime 2025-12-30 10:00:06 - End Time 2025-12-30 13:00:06 [2025-12-30 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16473015', 'tblTempUsageDetail_20' ) start [2025-12-30 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16473015', 'tblTempUsageDetail_20' ) end [2025-12-30 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16473015', 'tblTempVendorCDR_20' ) start [2025-12-30 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16473015', 'tblTempVendorCDR_20' ) end [2025-12-30 13:00:23] Production.INFO: ProcessCDR(1,16473015,1,1,2) [2025-12-30 13:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16473015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 13:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16473015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 13:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16473015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 13:07:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16473015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 13:07:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16473015', 'tblTempUsageDetail_20' ) start [2025-12-30 13:07:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16473015', 'tblTempUsageDetail_20' ) end [2025-12-30 13:07:01] Production.ERROR: pbx prc_insertCDR start [2025-12-30 13:07:06] Production.ERROR: pbx prc_insertCDR end [2025-12-30 13:07:06] Production.INFO: ==18129== Releasing lock... [2025-12-30 13:07:06] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 13:07:06] Production.INFO: 68 MB #Memory Used# [2025-12-30 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 11:00:06 [end_date_ymd] => 2025-12-30 14:00:06 [RateCDR] => 1 ) [2025-12-30 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-30 11:00:06' and `end` < '2025-12-30 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-30 14:00:19] Production.INFO: count ==5497 [2025-12-30 14:00:22] Production.ERROR: pbx CDR StartTime 2025-12-30 11:00:06 - End Time 2025-12-30 14:00:06 [2025-12-30 14:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16473262', 'tblTempUsageDetail_20' ) start [2025-12-30 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16473262', 'tblTempUsageDetail_20' ) end [2025-12-30 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16473262', 'tblTempVendorCDR_20' ) start [2025-12-30 14:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16473262', 'tblTempVendorCDR_20' ) end [2025-12-30 14:00:22] Production.INFO: ProcessCDR(1,16473262,1,1,2) [2025-12-30 14:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16473262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 14:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16473262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 14:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16473262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 14:07:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16473262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 14:07:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16473262', 'tblTempUsageDetail_20' ) start [2025-12-30 14:07:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16473262', 'tblTempUsageDetail_20' ) end [2025-12-30 14:07:14] Production.ERROR: pbx prc_insertCDR start [2025-12-30 14:07:16] Production.ERROR: pbx prc_insertCDR end [2025-12-30 14:07:16] Production.INFO: ==23031== Releasing lock... [2025-12-30 14:07:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 14:07:16] Production.INFO: 69.5 MB #Memory Used# [2025-12-30 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 12:00:06 [end_date_ymd] => 2025-12-30 15:00:06 [RateCDR] => 1 ) [2025-12-30 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-30 12:00:06' and `end` < '2025-12-30 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-30 15:00:21] Production.INFO: count ==5310 [2025-12-30 15:00:24] Production.ERROR: pbx CDR StartTime 2025-12-30 12:00:06 - End Time 2025-12-30 15:00:06 [2025-12-30 15:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16473509', 'tblTempUsageDetail_20' ) start [2025-12-30 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16473509', 'tblTempUsageDetail_20' ) end [2025-12-30 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16473509', 'tblTempVendorCDR_20' ) start [2025-12-30 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16473509', 'tblTempVendorCDR_20' ) end [2025-12-30 15:00:24] Production.INFO: ProcessCDR(1,16473509,1,1,2) [2025-12-30 15:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16473509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 15:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16473509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 15:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16473509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 15:06:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16473509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 15:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16473509', 'tblTempUsageDetail_20' ) start [2025-12-30 15:07:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16473509', 'tblTempUsageDetail_20' ) end [2025-12-30 15:07:00] Production.ERROR: pbx prc_insertCDR start [2025-12-30 15:07:03] Production.ERROR: pbx prc_insertCDR end [2025-12-30 15:07:03] Production.INFO: ==27607== Releasing lock... [2025-12-30 15:07:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 15:07:03] Production.INFO: 68 MB #Memory Used# [2025-12-30 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 13:00:05 [end_date_ymd] => 2025-12-30 16:00:05 [RateCDR] => 1 ) [2025-12-30 16:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-30 13:00:05' and `end` < '2025-12-30 16:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-30 16:00:18] Production.INFO: count ==5612 [2025-12-30 16:00:21] Production.ERROR: pbx CDR StartTime 2025-12-30 13:00:05 - End Time 2025-12-30 16:00:05 [2025-12-30 16:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16473756', 'tblTempUsageDetail_20' ) start [2025-12-30 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16473756', 'tblTempUsageDetail_20' ) end [2025-12-30 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16473756', 'tblTempVendorCDR_20' ) start [2025-12-30 16:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16473756', 'tblTempVendorCDR_20' ) end [2025-12-30 16:00:21] Production.INFO: ProcessCDR(1,16473756,1,1,2) [2025-12-30 16:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16473756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 16:03:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16473756,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 16:03:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16473756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 16:07:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16473756,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 16:07:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16473756', 'tblTempUsageDetail_20' ) start [2025-12-30 16:07:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16473756', 'tblTempUsageDetail_20' ) end [2025-12-30 16:07:37] Production.ERROR: pbx prc_insertCDR start [2025-12-30 16:07:39] Production.ERROR: pbx prc_insertCDR end [2025-12-30 16:07:39] Production.INFO: ==32368== Releasing lock... [2025-12-30 16:07:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 16:07:39] Production.INFO: 70.25 MB #Memory Used# [2025-12-30 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 14:00:06 [end_date_ymd] => 2025-12-30 17:00:06 [RateCDR] => 1 ) [2025-12-30 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-30 14:00:06' and `end` < '2025-12-30 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-30 17:00:24] Production.INFO: count ==5521 [2025-12-30 17:00:27] Production.ERROR: pbx CDR StartTime 2025-12-30 14:00:06 - End Time 2025-12-30 17:00:06 [2025-12-30 17:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16474003', 'tblTempUsageDetail_20' ) start [2025-12-30 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16474003', 'tblTempUsageDetail_20' ) end [2025-12-30 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16474003', 'tblTempVendorCDR_20' ) start [2025-12-30 17:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16474003', 'tblTempVendorCDR_20' ) end [2025-12-30 17:00:27] Production.INFO: ProcessCDR(1,16474003,1,1,2) [2025-12-30 17:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16474003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 17:03:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16474003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 17:03:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16474003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 17:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16474003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16474003', 'tblTempUsageDetail_20' ) start [2025-12-30 17:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16474003', 'tblTempUsageDetail_20' ) end [2025-12-30 17:07:24] Production.ERROR: pbx prc_insertCDR start [2025-12-30 17:07:26] Production.ERROR: pbx prc_insertCDR end [2025-12-30 17:07:26] Production.INFO: ==4713== Releasing lock... [2025-12-30 17:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 17:07:26] Production.INFO: 69.5 MB #Memory Used# [2025-12-30 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 15:00:05 [end_date_ymd] => 2025-12-30 18:00:05 [RateCDR] => 1 ) [2025-12-30 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` >= '2025-12-30 15:00:05' and `end` < '2025-12-30 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 ,'') [2025-12-30 18:00:18] Production.INFO: count ==4942 [2025-12-30 18:00:20] Production.ERROR: pbx CDR StartTime 2025-12-30 15:00:05 - End Time 2025-12-30 18:00:05 [2025-12-30 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16474249', 'tblTempUsageDetail_20' ) start [2025-12-30 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16474249', 'tblTempUsageDetail_20' ) end [2025-12-30 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16474249', 'tblTempVendorCDR_20' ) start [2025-12-30 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16474249', 'tblTempVendorCDR_20' ) end [2025-12-30 18:00:21] Production.INFO: ProcessCDR(1,16474249,1,1,2) [2025-12-30 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16474249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 18:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16474249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 18:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16474249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 18:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16474249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 18:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16474249', 'tblTempUsageDetail_20' ) start [2025-12-30 18:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16474249', 'tblTempUsageDetail_20' ) end [2025-12-30 18:07:19] Production.ERROR: pbx prc_insertCDR start [2025-12-30 18:07:20] Production.ERROR: pbx prc_insertCDR end [2025-12-30 18:07:20] Production.INFO: ==9369== Releasing lock... [2025-12-30 18:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 18:07:20] Production.INFO: 65.25 MB #Memory Used# [2025-12-30 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 16:00:06 [end_date_ymd] => 2025-12-30 19:00:06 [RateCDR] => 1 ) [2025-12-30 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-30 16:00:06' and `end` < '2025-12-30 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-30 19:00:19] Production.INFO: count ==4228 [2025-12-30 19:00:21] Production.ERROR: pbx CDR StartTime 2025-12-30 16:00:06 - End Time 2025-12-30 19:00:06 [2025-12-30 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16474496', 'tblTempUsageDetail_20' ) start [2025-12-30 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16474496', 'tblTempUsageDetail_20' ) end [2025-12-30 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16474496', 'tblTempVendorCDR_20' ) start [2025-12-30 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16474496', 'tblTempVendorCDR_20' ) end [2025-12-30 19:00:21] Production.INFO: ProcessCDR(1,16474496,1,1,2) [2025-12-30 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16474496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 19:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16474496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 19:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16474496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 19:07:13] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16474496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 19:07:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16474496', 'tblTempUsageDetail_20' ) start [2025-12-30 19:07:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16474496', 'tblTempUsageDetail_20' ) end [2025-12-30 19:07:14] Production.ERROR: pbx prc_insertCDR start [2025-12-30 19:07:15] Production.ERROR: pbx prc_insertCDR end [2025-12-30 19:07:15] Production.INFO: ==14432== Releasing lock... [2025-12-30 19:07:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 19:07:15] Production.INFO: 59.75 MB #Memory Used# [2025-12-30 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 17:00:06 [end_date_ymd] => 2025-12-30 20:00:06 [RateCDR] => 1 ) [2025-12-30 20:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-30 17:00:06' and `end` < '2025-12-30 20:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-30 20:00:18] Production.INFO: count ==3304 [2025-12-30 20:00:20] Production.ERROR: pbx CDR StartTime 2025-12-30 17:00:06 - End Time 2025-12-30 20:00:06 [2025-12-30 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16474743', 'tblTempUsageDetail_20' ) start [2025-12-30 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16474743', 'tblTempUsageDetail_20' ) end [2025-12-30 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16474743', 'tblTempVendorCDR_20' ) start [2025-12-30 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16474743', 'tblTempVendorCDR_20' ) end [2025-12-30 20:00:20] Production.INFO: ProcessCDR(1,16474743,1,1,2) [2025-12-30 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16474743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 20:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16474743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 20:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16474743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 20:07:13] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16474743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 20:07:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16474743', 'tblTempUsageDetail_20' ) start [2025-12-30 20:07:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16474743', 'tblTempUsageDetail_20' ) end [2025-12-30 20:07:14] Production.ERROR: pbx prc_insertCDR start [2025-12-30 20:07:15] Production.ERROR: pbx prc_insertCDR end [2025-12-30 20:07:15] Production.INFO: ==20166== Releasing lock... [2025-12-30 20:07:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 20:07:15] Production.INFO: 53 MB #Memory Used# [2025-12-30 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 18:00:05 [end_date_ymd] => 2025-12-30 21:00:05 [RateCDR] => 1 ) [2025-12-30 21:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-30 18:00:05' and `end` < '2025-12-30 21:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-30 21:00:18] Production.INFO: count ==2572 [2025-12-30 21:00:18] Production.ERROR: pbx CDR StartTime 2025-12-30 18:00:05 - End Time 2025-12-30 21:00:05 [2025-12-30 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16474990', 'tblTempUsageDetail_20' ) start [2025-12-30 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16474990', 'tblTempUsageDetail_20' ) end [2025-12-30 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16474990', 'tblTempVendorCDR_20' ) start [2025-12-30 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16474990', 'tblTempVendorCDR_20' ) end [2025-12-30 21:00:19] Production.INFO: ProcessCDR(1,16474990,1,1,2) [2025-12-30 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16474990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 21:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16474990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 21:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16474990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 21:07:17] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16474990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 21:07:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16474990', 'tblTempUsageDetail_20' ) start [2025-12-30 21:07:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16474990', 'tblTempUsageDetail_20' ) end [2025-12-30 21:07:18] Production.ERROR: pbx prc_insertCDR start [2025-12-30 21:07:18] Production.ERROR: pbx prc_insertCDR end [2025-12-30 21:07:18] Production.INFO: ==24896== Releasing lock... [2025-12-30 21:07:18] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 21:07:18] Production.INFO: 47.5 MB #Memory Used# [2025-12-30 22:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 19:00:05 [end_date_ymd] => 2025-12-30 22:00:05 [RateCDR] => 1 ) [2025-12-30 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` >= '2025-12-30 19:00:05' and `end` < '2025-12-30 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 ,'') [2025-12-30 22:00:18] Production.INFO: count ==1923 [2025-12-30 22:00:18] Production.ERROR: pbx CDR StartTime 2025-12-30 19:00:05 - End Time 2025-12-30 22:00:05 [2025-12-30 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16475237', 'tblTempUsageDetail_20' ) start [2025-12-30 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16475237', 'tblTempUsageDetail_20' ) end [2025-12-30 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16475237', 'tblTempVendorCDR_20' ) start [2025-12-30 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16475237', 'tblTempVendorCDR_20' ) end [2025-12-30 22:00:18] Production.INFO: ProcessCDR(1,16475237,1,1,2) [2025-12-30 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16475237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 22:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16475237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 22:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16475237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 22:06:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16475237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 22:06:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16475237', 'tblTempUsageDetail_20' ) start [2025-12-30 22:06:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16475237', 'tblTempUsageDetail_20' ) end [2025-12-30 22:06:54] Production.ERROR: pbx prc_insertCDR start [2025-12-30 22:06:54] Production.ERROR: pbx prc_insertCDR end [2025-12-30 22:06:54] Production.INFO: ==29561== Releasing lock... [2025-12-30 22:06:54] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 22:06:54] Production.INFO: 42.5 MB #Memory Used# [2025-12-30 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-30 20:00:05 [end_date_ymd] => 2025-12-30 23:00:05 [RateCDR] => 1 ) [2025-12-30 23:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-30 20:00:05' and `end` < '2025-12-30 23:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-30 23:00:17] Production.INFO: count ==1648 [2025-12-30 23:00:18] Production.ERROR: pbx CDR StartTime 2025-12-30 20:00:05 - End Time 2025-12-30 23:00:05 [2025-12-30 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-30 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16475484', 'tblTempUsageDetail_20' ) start [2025-12-30 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16475484', 'tblTempUsageDetail_20' ) end [2025-12-30 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16475484', 'tblTempVendorCDR_20' ) start [2025-12-30 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16475484', 'tblTempVendorCDR_20' ) end [2025-12-30 23:00:18] Production.INFO: ProcessCDR(1,16475484,1,1,2) [2025-12-30 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16475484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 23:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16475484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-30 23:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16475484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 23:06:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16475484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-30 23:06:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16475484', 'tblTempUsageDetail_20' ) start [2025-12-30 23:06:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16475484', 'tblTempUsageDetail_20' ) end [2025-12-30 23:06:48] Production.ERROR: pbx prc_insertCDR start [2025-12-30 23:06:49] Production.ERROR: pbx prc_insertCDR end [2025-12-30 23:06:49] Production.INFO: ==2048== Releasing lock... [2025-12-30 23:06:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-30 23:06:49] Production.INFO: 40.5 MB #Memory Used#