[2025-12-27 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-26 21:00:06 [end_date_ymd] => 2025-12-27 00:00:06 [RateCDR] => 1 ) [2025-12-27 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-26 21:00:06' and `end` < '2025-12-27 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-27 00:00:20] Production.INFO: count ==1248 [2025-12-27 00:00:21] Production.ERROR: pbx CDR StartTime 2025-12-26 21:00:06 - End Time 2025-12-27 00:00:06 [2025-12-27 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16452021', 'tblTempUsageDetail_20' ) start [2025-12-27 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16452021', 'tblTempUsageDetail_20' ) end [2025-12-27 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16452021', 'tblTempVendorCDR_20' ) start [2025-12-27 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16452021', 'tblTempVendorCDR_20' ) end [2025-12-27 00:00:22] Production.INFO: ProcessCDR(1,16452021,1,1,2) [2025-12-27 00:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16452021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 00:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16452021,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 00:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16452021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 00:07:02] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16452021,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 00:07:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16452021', 'tblTempUsageDetail_20' ) start [2025-12-27 00:07:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16452021', 'tblTempUsageDetail_20' ) end [2025-12-27 00:07:02] Production.ERROR: pbx prc_insertCDR start [2025-12-27 00:07:03] Production.ERROR: pbx prc_insertCDR end [2025-12-27 00:07:04] Production.INFO: ==29221== Releasing lock... [2025-12-27 00:07:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 00:07:04] Production.INFO: 40.75 MB #Memory Used# [2025-12-27 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-26 22:00:06 [end_date_ymd] => 2025-12-27 01:00:06 [RateCDR] => 1 ) [2025-12-27 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-26 22:00:06' and `end` < '2025-12-27 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-27 01:00:23] Production.INFO: count ==706 [2025-12-27 01:00:24] Production.ERROR: pbx CDR StartTime 2025-12-26 22:00:06 - End Time 2025-12-27 01:00:06 [2025-12-27 01:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 01:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16452268', 'tblTempUsageDetail_20' ) start [2025-12-27 01:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16452268', 'tblTempUsageDetail_20' ) end [2025-12-27 01:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16452268', 'tblTempVendorCDR_20' ) start [2025-12-27 01:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16452268', 'tblTempVendorCDR_20' ) end [2025-12-27 01:00:24] Production.INFO: ProcessCDR(1,16452268,1,1,2) [2025-12-27 01:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16452268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 01:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16452268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 01:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16452268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 01:07:12] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16452268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 01:07:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16452268', 'tblTempUsageDetail_20' ) start [2025-12-27 01:07:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16452268', 'tblTempUsageDetail_20' ) end [2025-12-27 01:07:12] Production.ERROR: pbx prc_insertCDR start [2025-12-27 01:07:12] Production.ERROR: pbx prc_insertCDR end [2025-12-27 01:07:12] Production.INFO: ==1314== Releasing lock... [2025-12-27 01:07:12] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 01:07:12] Production.INFO: 34.25 MB #Memory Used# [2025-12-27 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-26 23:00:06 [end_date_ymd] => 2025-12-27 02:00:06 [RateCDR] => 1 ) [2025-12-27 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-26 23:00:06' and `end` < '2025-12-27 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-27 02:00:18] Production.INFO: count ==625 [2025-12-27 02:00:18] Production.ERROR: pbx CDR StartTime 2025-12-26 23:00:06 - End Time 2025-12-27 02:00:06 [2025-12-27 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16452515', 'tblTempUsageDetail_20' ) start [2025-12-27 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16452515', 'tblTempUsageDetail_20' ) end [2025-12-27 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16452515', 'tblTempVendorCDR_20' ) start [2025-12-27 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16452515', 'tblTempVendorCDR_20' ) end [2025-12-27 02:00:18] Production.INFO: ProcessCDR(1,16452515,1,1,2) [2025-12-27 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16452515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 02:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16452515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 02:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16452515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 02:07:12] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16452515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 02:07:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16452515', 'tblTempUsageDetail_20' ) start [2025-12-27 02:07:13] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16452515', 'tblTempUsageDetail_20' ) end [2025-12-27 02:07:13] Production.ERROR: pbx prc_insertCDR start [2025-12-27 02:07:13] Production.ERROR: pbx prc_insertCDR end [2025-12-27 02:07:13] Production.INFO: ==5864== Releasing lock... [2025-12-27 02:07:13] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 02:07:13] Production.INFO: 32.75 MB #Memory Used# [2025-12-27 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 00:00:05 [end_date_ymd] => 2025-12-27 03:00:05 [RateCDR] => 1 ) [2025-12-27 03:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-27 00:00:05' and `end` < '2025-12-27 03:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-27 03:00:17] Production.INFO: count ==614 [2025-12-27 03:00:17] Production.ERROR: pbx CDR StartTime 2025-12-27 00:00:05 - End Time 2025-12-27 03:00:05 [2025-12-27 03:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16452762', 'tblTempUsageDetail_20' ) start [2025-12-27 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16452762', 'tblTempUsageDetail_20' ) end [2025-12-27 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16452762', 'tblTempVendorCDR_20' ) start [2025-12-27 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16452762', 'tblTempVendorCDR_20' ) end [2025-12-27 03:00:17] Production.INFO: ProcessCDR(1,16452762,1,1,2) [2025-12-27 03:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16452762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 03:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16452762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 03:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16452762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 03:06:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16452762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 03:06:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16452762', 'tblTempUsageDetail_20' ) start [2025-12-27 03:06:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16452762', 'tblTempUsageDetail_20' ) end [2025-12-27 03:06:41] Production.ERROR: pbx prc_insertCDR start [2025-12-27 03:06:41] Production.ERROR: pbx prc_insertCDR end [2025-12-27 03:06:41] Production.INFO: ==10875== Releasing lock... [2025-12-27 03:06:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 03:06:41] Production.INFO: 33.25 MB #Memory Used# [2025-12-27 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 01:00:06 [end_date_ymd] => 2025-12-27 04:00:06 [RateCDR] => 1 ) [2025-12-27 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-27 01:00:06' and `end` < '2025-12-27 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-27 04:00:17] Production.INFO: count ==547 [2025-12-27 04:00:17] Production.ERROR: pbx CDR StartTime 2025-12-27 01:00:06 - End Time 2025-12-27 04:00:06 [2025-12-27 04:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 04:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16453010', 'tblTempUsageDetail_20' ) start [2025-12-27 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16453010', 'tblTempUsageDetail_20' ) end [2025-12-27 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16453010', 'tblTempVendorCDR_20' ) start [2025-12-27 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16453010', 'tblTempVendorCDR_20' ) end [2025-12-27 04:00:18] Production.INFO: ProcessCDR(1,16453010,1,1,2) [2025-12-27 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16453010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 04:03:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16453010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 04:03:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16453010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 04:06:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16453010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 04:06:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16453010', 'tblTempUsageDetail_20' ) start [2025-12-27 04:06:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16453010', 'tblTempUsageDetail_20' ) end [2025-12-27 04:06:42] Production.ERROR: pbx prc_insertCDR start [2025-12-27 04:06:42] Production.ERROR: pbx prc_insertCDR end [2025-12-27 04:06:42] Production.INFO: ==15297== Releasing lock... [2025-12-27 04:06:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 04:06:42] Production.INFO: 32.5 MB #Memory Used# [2025-12-27 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 02:00:05 [end_date_ymd] => 2025-12-27 05:00:05 [RateCDR] => 1 ) [2025-12-27 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-27 02:00:05' and `end` < '2025-12-27 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-27 05:00:18] Production.INFO: count ==439 [2025-12-27 05:00:18] Production.ERROR: pbx CDR StartTime 2025-12-27 02:00:05 - End Time 2025-12-27 05:00:05 [2025-12-27 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16453258', 'tblTempUsageDetail_20' ) start [2025-12-27 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16453258', 'tblTempUsageDetail_20' ) end [2025-12-27 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16453258', 'tblTempVendorCDR_20' ) start [2025-12-27 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16453258', 'tblTempVendorCDR_20' ) end [2025-12-27 05:00:18] Production.INFO: ProcessCDR(1,16453258,1,1,2) [2025-12-27 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16453258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 05:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16453258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 05:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16453258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 05:06:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16453258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 05:06:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16453258', 'tblTempUsageDetail_20' ) start [2025-12-27 05:06:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16453258', 'tblTempUsageDetail_20' ) end [2025-12-27 05:06:53] Production.ERROR: pbx prc_insertCDR start [2025-12-27 05:06:53] Production.ERROR: pbx prc_insertCDR end [2025-12-27 05:06:53] Production.INFO: ==19775== Releasing lock... [2025-12-27 05:06:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 05:06:53] Production.INFO: 31.5 MB #Memory Used# [2025-12-27 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 03:00:05 [end_date_ymd] => 2025-12-27 06:00:05 [RateCDR] => 1 ) [2025-12-27 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-27 03:00:05' and `end` < '2025-12-27 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-27 06:00:17] Production.INFO: count ==242 [2025-12-27 06:00:17] Production.ERROR: pbx CDR StartTime 2025-12-27 03:00:05 - End Time 2025-12-27 06:00:05 [2025-12-27 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16453505', 'tblTempUsageDetail_20' ) start [2025-12-27 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16453505', 'tblTempUsageDetail_20' ) end [2025-12-27 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16453505', 'tblTempVendorCDR_20' ) start [2025-12-27 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16453505', 'tblTempVendorCDR_20' ) end [2025-12-27 06:00:17] Production.INFO: ProcessCDR(1,16453505,1,1,2) [2025-12-27 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16453505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 06:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16453505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 06:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16453505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 06:06:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16453505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 06:06:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16453505', 'tblTempUsageDetail_20' ) start [2025-12-27 06:06:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16453505', 'tblTempUsageDetail_20' ) end [2025-12-27 06:06:56] Production.ERROR: pbx prc_insertCDR start [2025-12-27 06:06:56] Production.ERROR: pbx prc_insertCDR end [2025-12-27 06:06:56] Production.INFO: ==24271== Releasing lock... [2025-12-27 06:06:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 06:06:56] Production.INFO: 30.5 MB #Memory Used# [2025-12-27 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 04:00:06 [end_date_ymd] => 2025-12-27 07:00:06 [RateCDR] => 1 ) [2025-12-27 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-27 04:00:06' and `end` < '2025-12-27 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-27 07:00:18] Production.INFO: count ==124 [2025-12-27 07:00:18] Production.ERROR: pbx CDR StartTime 2025-12-27 04:00:06 - End Time 2025-12-27 07:00:06 [2025-12-27 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16453752', 'tblTempUsageDetail_20' ) start [2025-12-27 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16453752', 'tblTempUsageDetail_20' ) end [2025-12-27 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16453752', 'tblTempVendorCDR_20' ) start [2025-12-27 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16453752', 'tblTempVendorCDR_20' ) end [2025-12-27 07:00:18] Production.INFO: ProcessCDR(1,16453752,1,1,2) [2025-12-27 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16453752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 07:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16453752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 07:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16453752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 07:06:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16453752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 07:06:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16453752', 'tblTempUsageDetail_20' ) start [2025-12-27 07:06:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16453752', 'tblTempUsageDetail_20' ) end [2025-12-27 07:06:57] Production.ERROR: pbx prc_insertCDR start [2025-12-27 07:06:57] Production.ERROR: pbx prc_insertCDR end [2025-12-27 07:06:57] Production.INFO: ==28817== Releasing lock... [2025-12-27 07:06:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 07:06:57] Production.INFO: 29 MB #Memory Used# [2025-12-27 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 05:00:06 [end_date_ymd] => 2025-12-27 08:00:06 [RateCDR] => 1 ) [2025-12-27 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-27 05:00:06' and `end` < '2025-12-27 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-27 08:00:18] Production.INFO: count ==83 [2025-12-27 08:00:18] Production.ERROR: pbx CDR StartTime 2025-12-27 05:00:06 - End Time 2025-12-27 08:00:06 [2025-12-27 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16453999', 'tblTempUsageDetail_20' ) start [2025-12-27 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16453999', 'tblTempUsageDetail_20' ) end [2025-12-27 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16453999', 'tblTempVendorCDR_20' ) start [2025-12-27 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16453999', 'tblTempVendorCDR_20' ) end [2025-12-27 08:00:18] Production.INFO: ProcessCDR(1,16453999,1,1,2) [2025-12-27 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16453999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 08:03:16] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16453999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 08:03:16] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16453999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 08:06:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16453999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 08:06:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16453999', 'tblTempUsageDetail_20' ) start [2025-12-27 08:06:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16453999', 'tblTempUsageDetail_20' ) end [2025-12-27 08:06:48] Production.ERROR: pbx prc_insertCDR start [2025-12-27 08:06:48] Production.ERROR: pbx prc_insertCDR end [2025-12-27 08:06:48] Production.INFO: ==1618== Releasing lock... [2025-12-27 08:06:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 08:06:48] Production.INFO: 28.5 MB #Memory Used# [2025-12-27 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 06:00:05 [end_date_ymd] => 2025-12-27 09:00:05 [RateCDR] => 1 ) [2025-12-27 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-27 06:00:05' and `end` < '2025-12-27 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-27 09:00:17] Production.INFO: count ==337 [2025-12-27 09:00:17] Production.ERROR: pbx CDR StartTime 2025-12-27 06:00:05 - End Time 2025-12-27 09:00:05 [2025-12-27 09:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16454246', 'tblTempUsageDetail_20' ) start [2025-12-27 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16454246', 'tblTempUsageDetail_20' ) end [2025-12-27 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16454246', 'tblTempVendorCDR_20' ) start [2025-12-27 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16454246', 'tblTempVendorCDR_20' ) end [2025-12-27 09:00:17] Production.INFO: ProcessCDR(1,16454246,1,1,2) [2025-12-27 09:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16454246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 09:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16454246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 09:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16454246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 09:06:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16454246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 09:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16454246', 'tblTempUsageDetail_20' ) start [2025-12-27 09:07:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16454246', 'tblTempUsageDetail_20' ) end [2025-12-27 09:07:00] Production.ERROR: pbx prc_insertCDR start [2025-12-27 09:07:00] Production.ERROR: pbx prc_insertCDR end [2025-12-27 09:07:00] Production.INFO: ==6133== Releasing lock... [2025-12-27 09:07:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 09:07:00] Production.INFO: 31 MB #Memory Used# [2025-12-27 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 07:00:06 [end_date_ymd] => 2025-12-27 10:00:06 [RateCDR] => 1 ) [2025-12-27 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-27 07:00:06' and `end` < '2025-12-27 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-27 10:00:18] Production.INFO: count ==1178 [2025-12-27 10:00:18] Production.ERROR: pbx CDR StartTime 2025-12-27 07:00:06 - End Time 2025-12-27 10:00:06 [2025-12-27 10:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16454493', 'tblTempUsageDetail_20' ) start [2025-12-27 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16454493', 'tblTempUsageDetail_20' ) end [2025-12-27 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16454493', 'tblTempVendorCDR_20' ) start [2025-12-27 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16454493', 'tblTempVendorCDR_20' ) end [2025-12-27 10:00:18] Production.INFO: ProcessCDR(1,16454493,1,1,2) [2025-12-27 10:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16454493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 10:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16454493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 10:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16454493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 10:06:54] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16454493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 10:06:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16454493', 'tblTempUsageDetail_20' ) start [2025-12-27 10:06:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16454493', 'tblTempUsageDetail_20' ) end [2025-12-27 10:06:54] Production.ERROR: pbx prc_insertCDR start [2025-12-27 10:06:55] Production.ERROR: pbx prc_insertCDR end [2025-12-27 10:06:55] Production.INFO: ==10493== Releasing lock... [2025-12-27 10:06:55] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 10:06:55] Production.INFO: 37.25 MB #Memory Used# [2025-12-27 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 08:00:05 [end_date_ymd] => 2025-12-27 11:00:05 [RateCDR] => 1 ) [2025-12-27 11:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-27 08:00:05' and `end` < '2025-12-27 11:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-27 11:00:18] Production.INFO: count ==2083 [2025-12-27 11:00:19] Production.ERROR: pbx CDR StartTime 2025-12-27 08:00:05 - End Time 2025-12-27 11:00:05 [2025-12-27 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16454740', 'tblTempUsageDetail_20' ) start [2025-12-27 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16454740', 'tblTempUsageDetail_20' ) end [2025-12-27 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16454740', 'tblTempVendorCDR_20' ) start [2025-12-27 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16454740', 'tblTempVendorCDR_20' ) end [2025-12-27 11:00:19] Production.INFO: ProcessCDR(1,16454740,1,1,2) [2025-12-27 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16454740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 11:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16454740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 11:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16454740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 11:06:50] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16454740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 11:06:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16454740', 'tblTempUsageDetail_20' ) start [2025-12-27 11:06:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16454740', 'tblTempUsageDetail_20' ) end [2025-12-27 11:06:50] Production.ERROR: pbx prc_insertCDR start [2025-12-27 11:06:51] Production.ERROR: pbx prc_insertCDR end [2025-12-27 11:06:51] Production.INFO: ==15368== Releasing lock... [2025-12-27 11:06:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 11:06:51] Production.INFO: 43.75 MB #Memory Used# [2025-12-27 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 09:00:05 [end_date_ymd] => 2025-12-27 12:00:05 [RateCDR] => 1 ) [2025-12-27 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-27 09:00:05' and `end` < '2025-12-27 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-27 12:00:17] Production.INFO: count ==2637 [2025-12-27 12:00:18] Production.ERROR: pbx CDR StartTime 2025-12-27 09:00:05 - End Time 2025-12-27 12:00:05 [2025-12-27 12:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16454987', 'tblTempUsageDetail_20' ) start [2025-12-27 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16454987', 'tblTempUsageDetail_20' ) end [2025-12-27 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16454987', 'tblTempVendorCDR_20' ) start [2025-12-27 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16454987', 'tblTempVendorCDR_20' ) end [2025-12-27 12:00:19] Production.INFO: ProcessCDR(1,16454987,1,1,2) [2025-12-27 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16454987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 12:03:13] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16454987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 12:03:13] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16454987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 12:06:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16454987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 12:06:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16454987', 'tblTempUsageDetail_20' ) start [2025-12-27 12:06:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16454987', 'tblTempUsageDetail_20' ) end [2025-12-27 12:06:45] Production.ERROR: pbx prc_insertCDR start [2025-12-27 12:06:46] Production.ERROR: pbx prc_insertCDR end [2025-12-27 12:06:46] Production.INFO: ==19785== Releasing lock... [2025-12-27 12:06:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 12:06:46] Production.INFO: 48.5 MB #Memory Used# [2025-12-27 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 10:00:05 [end_date_ymd] => 2025-12-27 13:00:05 [RateCDR] => 1 ) [2025-12-27 13:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-27 10:00:05' and `end` < '2025-12-27 13:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-27 13:00:18] Production.INFO: count ==2765 [2025-12-27 13:00:19] Production.ERROR: pbx CDR StartTime 2025-12-27 10:00:05 - End Time 2025-12-27 13:00:05 [2025-12-27 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16455234', 'tblTempUsageDetail_20' ) start [2025-12-27 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16455234', 'tblTempUsageDetail_20' ) end [2025-12-27 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16455234', 'tblTempVendorCDR_20' ) start [2025-12-27 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16455234', 'tblTempVendorCDR_20' ) end [2025-12-27 13:00:19] Production.INFO: ProcessCDR(1,16455234,1,1,2) [2025-12-27 13:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16455234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 13:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16455234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 13:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16455234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 13:06:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16455234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 13:06:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16455234', 'tblTempUsageDetail_20' ) start [2025-12-27 13:06:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16455234', 'tblTempUsageDetail_20' ) end [2025-12-27 13:06:52] Production.ERROR: pbx prc_insertCDR start [2025-12-27 13:06:52] Production.ERROR: pbx prc_insertCDR end [2025-12-27 13:06:52] Production.INFO: ==24811== Releasing lock... [2025-12-27 13:06:52] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 13:06:52] Production.INFO: 49.25 MB #Memory Used# [2025-12-27 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 11:00:05 [end_date_ymd] => 2025-12-27 14:00:05 [RateCDR] => 1 ) [2025-12-27 14:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-27 11:00:05' and `end` < '2025-12-27 14:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-27 14:00:17] Production.INFO: count ==2503 [2025-12-27 14:00:19] Production.ERROR: pbx CDR StartTime 2025-12-27 11:00:05 - End Time 2025-12-27 14:00:05 [2025-12-27 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16455481', 'tblTempUsageDetail_20' ) start [2025-12-27 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16455481', 'tblTempUsageDetail_20' ) end [2025-12-27 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16455481', 'tblTempVendorCDR_20' ) start [2025-12-27 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16455481', 'tblTempVendorCDR_20' ) end [2025-12-27 14:00:19] Production.INFO: ProcessCDR(1,16455481,1,1,2) [2025-12-27 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16455481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 14:03:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16455481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 14:03:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16455481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 14:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16455481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 14:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16455481', 'tblTempUsageDetail_20' ) start [2025-12-27 14:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16455481', 'tblTempUsageDetail_20' ) end [2025-12-27 14:07:20] Production.ERROR: pbx prc_insertCDR start [2025-12-27 14:07:21] Production.ERROR: pbx prc_insertCDR end [2025-12-27 14:07:21] Production.INFO: ==30434== Releasing lock... [2025-12-27 14:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 14:07:21] Production.INFO: 47.5 MB #Memory Used# [2025-12-27 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 12:00:05 [end_date_ymd] => 2025-12-27 15:00:05 [RateCDR] => 1 ) [2025-12-27 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-27 12:00:05' and `end` < '2025-12-27 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-27 15:00:17] Production.INFO: count ==2250 [2025-12-27 15:00:18] Production.ERROR: pbx CDR StartTime 2025-12-27 12:00:05 - End Time 2025-12-27 15:00:05 [2025-12-27 15:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16455728', 'tblTempUsageDetail_20' ) start [2025-12-27 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16455728', 'tblTempUsageDetail_20' ) end [2025-12-27 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16455728', 'tblTempVendorCDR_20' ) start [2025-12-27 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16455728', 'tblTempVendorCDR_20' ) end [2025-12-27 15:00:18] Production.INFO: ProcessCDR(1,16455728,1,1,2) [2025-12-27 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16455728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 15:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16455728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 15:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16455728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 15:06:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16455728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 15:06:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16455728', 'tblTempUsageDetail_20' ) start [2025-12-27 15:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16455728', 'tblTempUsageDetail_20' ) end [2025-12-27 15:06:59] Production.ERROR: pbx prc_insertCDR start [2025-12-27 15:06:59] Production.ERROR: pbx prc_insertCDR end [2025-12-27 15:06:59] Production.INFO: ==3617== Releasing lock... [2025-12-27 15:06:59] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 15:06:59] Production.INFO: 45 MB #Memory Used# [2025-12-27 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 13:00:05 [end_date_ymd] => 2025-12-27 16:00:05 [RateCDR] => 1 ) [2025-12-27 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-27 13:00:05' and `end` < '2025-12-27 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-27 16:00:17] Production.INFO: count ==1817 [2025-12-27 16:00:18] Production.ERROR: pbx CDR StartTime 2025-12-27 13:00:05 - End Time 2025-12-27 16:00:05 [2025-12-27 16:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16455975', 'tblTempUsageDetail_20' ) start [2025-12-27 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16455975', 'tblTempUsageDetail_20' ) end [2025-12-27 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16455975', 'tblTempVendorCDR_20' ) start [2025-12-27 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16455975', 'tblTempVendorCDR_20' ) end [2025-12-27 16:00:18] Production.INFO: ProcessCDR(1,16455975,1,1,2) [2025-12-27 16:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16455975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 16:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16455975,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 16:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16455975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 16:06:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16455975,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 16:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16455975', 'tblTempUsageDetail_20' ) start [2025-12-27 16:07:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16455975', 'tblTempUsageDetail_20' ) end [2025-12-27 16:07:00] Production.ERROR: pbx prc_insertCDR start [2025-12-27 16:07:01] Production.ERROR: pbx prc_insertCDR end [2025-12-27 16:07:01] Production.INFO: ==8004== Releasing lock... [2025-12-27 16:07:01] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 16:07:01] Production.INFO: 42 MB #Memory Used# [2025-12-27 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 14:00:05 [end_date_ymd] => 2025-12-27 17:00:05 [RateCDR] => 1 ) [2025-12-27 17:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-27 14:00:05' and `end` < '2025-12-27 17:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-27 17:00:17] Production.INFO: count ==1848 [2025-12-27 17:00:18] Production.ERROR: pbx CDR StartTime 2025-12-27 14:00:05 - End Time 2025-12-27 17:00:05 [2025-12-27 17:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16456222', 'tblTempUsageDetail_20' ) start [2025-12-27 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16456222', 'tblTempUsageDetail_20' ) end [2025-12-27 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16456222', 'tblTempVendorCDR_20' ) start [2025-12-27 17:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16456222', 'tblTempVendorCDR_20' ) end [2025-12-27 17:00:18] Production.INFO: ProcessCDR(1,16456222,1,1,2) [2025-12-27 17:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16456222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 17:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16456222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 17:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16456222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 17:06:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16456222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 17:06:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16456222', 'tblTempUsageDetail_20' ) start [2025-12-27 17:06:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16456222', 'tblTempUsageDetail_20' ) end [2025-12-27 17:06:48] Production.ERROR: pbx prc_insertCDR start [2025-12-27 17:06:51] Production.ERROR: pbx prc_insertCDR end [2025-12-27 17:06:51] Production.INFO: ==12427== Releasing lock... [2025-12-27 17:06:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 17:06:51] Production.INFO: 42 MB #Memory Used# [2025-12-27 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 15:00:05 [end_date_ymd] => 2025-12-27 18:00:05 [RateCDR] => 1 ) [2025-12-27 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-27 15:00:05' and `end` < '2025-12-27 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-27 18:00:18] Production.INFO: count ==1919 [2025-12-27 18:00:19] Production.ERROR: pbx CDR StartTime 2025-12-27 15:00:05 - End Time 2025-12-27 18:00:05 [2025-12-27 18:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16456467', 'tblTempUsageDetail_20' ) start [2025-12-27 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16456467', 'tblTempUsageDetail_20' ) end [2025-12-27 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16456467', 'tblTempVendorCDR_20' ) start [2025-12-27 18:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16456467', 'tblTempVendorCDR_20' ) end [2025-12-27 18:00:19] Production.INFO: ProcessCDR(1,16456467,1,1,2) [2025-12-27 18:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16456467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 18:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16456467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 18:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16456467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 18:07:08] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16456467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 18:07:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16456467', 'tblTempUsageDetail_20' ) start [2025-12-27 18:07:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16456467', 'tblTempUsageDetail_20' ) end [2025-12-27 18:07:09] Production.ERROR: pbx prc_insertCDR start [2025-12-27 18:07:11] Production.ERROR: pbx prc_insertCDR end [2025-12-27 18:07:11] Production.INFO: ==16852== Releasing lock... [2025-12-27 18:07:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 18:07:11] Production.INFO: 42.5 MB #Memory Used# [2025-12-27 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 16:00:06 [end_date_ymd] => 2025-12-27 19:00:06 [RateCDR] => 1 ) [2025-12-27 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-27 16:00:06' and `end` < '2025-12-27 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-27 19:00:18] Production.INFO: count ==2145 [2025-12-27 19:00:19] Production.ERROR: pbx CDR StartTime 2025-12-27 16:00:06 - End Time 2025-12-27 19:00:06 [2025-12-27 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16456714', 'tblTempUsageDetail_20' ) start [2025-12-27 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16456714', 'tblTempUsageDetail_20' ) end [2025-12-27 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16456714', 'tblTempVendorCDR_20' ) start [2025-12-27 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16456714', 'tblTempVendorCDR_20' ) end [2025-12-27 19:00:19] Production.INFO: ProcessCDR(1,16456714,1,1,2) [2025-12-27 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16456714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 19:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16456714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 19:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16456714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 19:06:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16456714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 19:06:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16456714', 'tblTempUsageDetail_20' ) start [2025-12-27 19:06:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16456714', 'tblTempUsageDetail_20' ) end [2025-12-27 19:06:57] Production.ERROR: pbx prc_insertCDR start [2025-12-27 19:06:58] Production.ERROR: pbx prc_insertCDR end [2025-12-27 19:06:58] Production.INFO: ==21281== Releasing lock... [2025-12-27 19:06:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 19:06:58] Production.INFO: 44.5 MB #Memory Used# [2025-12-27 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 17:00:06 [end_date_ymd] => 2025-12-27 20:00:06 [RateCDR] => 1 ) [2025-12-27 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-27 17:00:06' and `end` < '2025-12-27 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-27 20:00:18] Production.INFO: count ==1972 [2025-12-27 20:00:19] Production.ERROR: pbx CDR StartTime 2025-12-27 17:00:06 - End Time 2025-12-27 20:00:06 [2025-12-27 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16456961', 'tblTempUsageDetail_20' ) start [2025-12-27 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16456961', 'tblTempUsageDetail_20' ) end [2025-12-27 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16456961', 'tblTempVendorCDR_20' ) start [2025-12-27 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16456961', 'tblTempVendorCDR_20' ) end [2025-12-27 20:00:19] Production.INFO: ProcessCDR(1,16456961,1,1,2) [2025-12-27 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16456961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 20:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16456961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 20:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16456961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 20:07:15] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16456961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 20:07:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16456961', 'tblTempUsageDetail_20' ) start [2025-12-27 20:07:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16456961', 'tblTempUsageDetail_20' ) end [2025-12-27 20:07:15] Production.ERROR: pbx prc_insertCDR start [2025-12-27 20:07:16] Production.ERROR: pbx prc_insertCDR end [2025-12-27 20:07:16] Production.INFO: ==26270== Releasing lock... [2025-12-27 20:07:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 20:07:16] Production.INFO: 43 MB #Memory Used# [2025-12-27 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 18:00:05 [end_date_ymd] => 2025-12-27 21:00:05 [RateCDR] => 1 ) [2025-12-27 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-27 18:00:05' and `end` < '2025-12-27 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-27 21:00:17] Production.INFO: count ==1770 [2025-12-27 21:00:18] Production.ERROR: pbx CDR StartTime 2025-12-27 18:00:05 - End Time 2025-12-27 21:00:05 [2025-12-27 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16457208', 'tblTempUsageDetail_20' ) start [2025-12-27 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16457208', 'tblTempUsageDetail_20' ) end [2025-12-27 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16457208', 'tblTempVendorCDR_20' ) start [2025-12-27 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16457208', 'tblTempVendorCDR_20' ) end [2025-12-27 21:00:18] Production.INFO: ProcessCDR(1,16457208,1,1,2) [2025-12-27 21:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16457208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 21:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16457208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 21:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16457208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 21:07:06] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16457208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 21:07:06] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16457208', 'tblTempUsageDetail_20' ) start [2025-12-27 21:07:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16457208', 'tblTempUsageDetail_20' ) end [2025-12-27 21:07:08] Production.ERROR: pbx prc_insertCDR start [2025-12-27 21:07:09] Production.ERROR: pbx prc_insertCDR end [2025-12-27 21:07:10] Production.INFO: ==30639== Releasing lock... [2025-12-27 21:07:10] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 21:07:10] Production.INFO: 41.75 MB #Memory Used# [2025-12-27 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 19:00:06 [end_date_ymd] => 2025-12-27 22:00:06 [RateCDR] => 1 ) [2025-12-27 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-27 19:00:06' and `end` < '2025-12-27 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-27 22:00:18] Production.INFO: count ==1697 [2025-12-27 22:00:18] Production.ERROR: pbx CDR StartTime 2025-12-27 19:00:06 - End Time 2025-12-27 22:00:06 [2025-12-27 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16457455', 'tblTempUsageDetail_20' ) start [2025-12-27 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16457455', 'tblTempUsageDetail_20' ) end [2025-12-27 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16457455', 'tblTempVendorCDR_20' ) start [2025-12-27 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16457455', 'tblTempVendorCDR_20' ) end [2025-12-27 22:00:18] Production.INFO: ProcessCDR(1,16457455,1,1,2) [2025-12-27 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16457455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 22:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16457455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 22:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16457455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 22:07:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16457455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 22:07:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16457455', 'tblTempUsageDetail_20' ) start [2025-12-27 22:07:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16457455', 'tblTempUsageDetail_20' ) end [2025-12-27 22:07:17] Production.ERROR: pbx prc_insertCDR start [2025-12-27 22:07:18] Production.ERROR: pbx prc_insertCDR end [2025-12-27 22:07:18] Production.INFO: ==2865== Releasing lock... [2025-12-27 22:07:18] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 22:07:18] Production.INFO: 40.75 MB #Memory Used# [2025-12-27 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-12-27 20:00:05 [end_date_ymd] => 2025-12-27 23:00:05 [RateCDR] => 1 ) [2025-12-27 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-27 20:00:05' and `end` < '2025-12-27 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-27 23:00:17] Production.INFO: count ==1590 [2025-12-27 23:00:18] Production.ERROR: pbx CDR StartTime 2025-12-27 20:00:05 - End Time 2025-12-27 23:00:05 [2025-12-27 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-27 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16457702', 'tblTempUsageDetail_20' ) start [2025-12-27 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16457702', 'tblTempUsageDetail_20' ) end [2025-12-27 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16457702', 'tblTempVendorCDR_20' ) start [2025-12-27 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16457702', 'tblTempVendorCDR_20' ) end [2025-12-27 23:00:18] Production.INFO: ProcessCDR(1,16457702,1,1,2) [2025-12-27 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16457702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 23:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16457702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-27 23:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16457702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 23:07:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16457702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-27 23:07:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16457702', 'tblTempUsageDetail_20' ) start [2025-12-27 23:07:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16457702', 'tblTempUsageDetail_20' ) end [2025-12-27 23:07:00] Production.ERROR: pbx prc_insertCDR start [2025-12-27 23:07:00] Production.ERROR: pbx prc_insertCDR end [2025-12-27 23:07:00] Production.INFO: ==7947== Releasing lock... [2025-12-27 23:07:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-27 23:07:00] Production.INFO: 40 MB #Memory Used#