[2025-08-17 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 21:25:05 [end_date_ymd] => 2025-08-17 00:25:05 [RateCDR] => 1 ) [2025-08-17 00:25: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-08-16 21:25:05' and `end` < '2025-08-17 00:25: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-08-17 00:25:18] Production.INFO: count ==607 [2025-08-17 00:25:18] Production.ERROR: pbx CDR StartTime 2025-08-16 21:25:05 - End Time 2025-08-17 00:25:05 [2025-08-17 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15669421', 'tblTempUsageDetail_20' ) start [2025-08-17 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15669421', 'tblTempUsageDetail_20' ) end [2025-08-17 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15669421', 'tblTempVendorCDR_20' ) start [2025-08-17 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15669421', 'tblTempVendorCDR_20' ) end [2025-08-17 00:25:18] Production.INFO: ProcessCDR(1,15669421,1,1,2) [2025-08-17 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15669421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15669421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15669421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15669421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15669421', 'tblTempUsageDetail_20' ) start [2025-08-17 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15669421', 'tblTempUsageDetail_20' ) end [2025-08-17 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-17 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-17 00:25:27] Production.INFO: ==13938== Releasing lock... [2025-08-17 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 00:25:27] Production.INFO: 36.25 MB #Memory Used# [2025-08-17 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 22:25:05 [end_date_ymd] => 2025-08-17 01:25:05 [RateCDR] => 1 ) [2025-08-17 01:25: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-08-16 22:25:05' and `end` < '2025-08-17 01:25: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-08-17 01:25:17] Production.INFO: count ==579 [2025-08-17 01:25:17] Production.ERROR: pbx CDR StartTime 2025-08-16 22:25:05 - End Time 2025-08-17 01:25:05 [2025-08-17 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15669668', 'tblTempUsageDetail_20' ) start [2025-08-17 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15669668', 'tblTempUsageDetail_20' ) end [2025-08-17 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15669668', 'tblTempVendorCDR_20' ) start [2025-08-17 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15669668', 'tblTempVendorCDR_20' ) end [2025-08-17 01:25:17] Production.INFO: ProcessCDR(1,15669668,1,1,2) [2025-08-17 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15669668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15669668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15669668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15669668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15669668', 'tblTempUsageDetail_20' ) start [2025-08-17 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15669668', 'tblTempUsageDetail_20' ) end [2025-08-17 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-17 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-17 01:25:25] Production.INFO: ==18551== Releasing lock... [2025-08-17 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 01:25:25] Production.INFO: 33 MB #Memory Used# [2025-08-17 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 23:25:06 [end_date_ymd] => 2025-08-17 02:25:06 [RateCDR] => 1 ) [2025-08-17 02:25: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-08-16 23:25:06' and `end` < '2025-08-17 02:25: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-08-17 02:25:19] Production.INFO: count ==490 [2025-08-17 02:25:19] Production.ERROR: pbx CDR StartTime 2025-08-16 23:25:06 - End Time 2025-08-17 02:25:06 [2025-08-17 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15669915', 'tblTempUsageDetail_20' ) start [2025-08-17 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15669915', 'tblTempUsageDetail_20' ) end [2025-08-17 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15669915', 'tblTempVendorCDR_20' ) start [2025-08-17 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15669915', 'tblTempVendorCDR_20' ) end [2025-08-17 02:25:19] Production.INFO: ProcessCDR(1,15669915,1,1,2) [2025-08-17 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15669915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 02:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15669915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 02:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15669915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15669915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15669915', 'tblTempUsageDetail_20' ) start [2025-08-17 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15669915', 'tblTempUsageDetail_20' ) end [2025-08-17 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-17 02:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-17 02:25:27] Production.INFO: ==23395== Releasing lock... [2025-08-17 02:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 02:25:27] Production.INFO: 32 MB #Memory Used# [2025-08-17 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 00:25:06 [end_date_ymd] => 2025-08-17 03:25:06 [RateCDR] => 1 ) [2025-08-17 03:25: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-08-17 00:25:06' and `end` < '2025-08-17 03:25: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-08-17 03:25:18] Production.INFO: count ==489 [2025-08-17 03:25:18] Production.ERROR: pbx CDR StartTime 2025-08-17 00:25:06 - End Time 2025-08-17 03:25:06 [2025-08-17 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15670162', 'tblTempUsageDetail_20' ) start [2025-08-17 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15670162', 'tblTempUsageDetail_20' ) end [2025-08-17 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15670162', 'tblTempVendorCDR_20' ) start [2025-08-17 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15670162', 'tblTempVendorCDR_20' ) end [2025-08-17 03:25:18] Production.INFO: ProcessCDR(1,15670162,1,1,2) [2025-08-17 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15670162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15670162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15670162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15670162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15670162', 'tblTempUsageDetail_20' ) start [2025-08-17 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15670162', 'tblTempUsageDetail_20' ) end [2025-08-17 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-17 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-17 03:25:25] Production.INFO: ==28410== Releasing lock... [2025-08-17 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 03:25:25] Production.INFO: 32.5 MB #Memory Used# [2025-08-17 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 01:25:05 [end_date_ymd] => 2025-08-17 04:25:05 [RateCDR] => 1 ) [2025-08-17 04:25: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-08-17 01:25:05' and `end` < '2025-08-17 04:25: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-08-17 04:25:17] Production.INFO: count ==388 [2025-08-17 04:25:17] Production.ERROR: pbx CDR StartTime 2025-08-17 01:25:05 - End Time 2025-08-17 04:25:05 [2025-08-17 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15670410', 'tblTempUsageDetail_20' ) start [2025-08-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15670410', 'tblTempUsageDetail_20' ) end [2025-08-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15670410', 'tblTempVendorCDR_20' ) start [2025-08-17 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15670410', 'tblTempVendorCDR_20' ) end [2025-08-17 04:25:17] Production.INFO: ProcessCDR(1,15670410,1,1,2) [2025-08-17 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15670410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15670410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15670410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15670410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15670410', 'tblTempUsageDetail_20' ) start [2025-08-17 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15670410', 'tblTempUsageDetail_20' ) end [2025-08-17 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-17 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-17 04:25:24] Production.INFO: ==32718== Releasing lock... [2025-08-17 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 04:25:24] Production.INFO: 31.75 MB #Memory Used# [2025-08-17 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 02:25:06 [end_date_ymd] => 2025-08-17 05:25:06 [RateCDR] => 1 ) [2025-08-17 05:25: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-08-17 02:25:06' and `end` < '2025-08-17 05:25: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-08-17 05:25:18] Production.INFO: count ==344 [2025-08-17 05:25:18] Production.ERROR: pbx CDR StartTime 2025-08-17 02:25:06 - End Time 2025-08-17 05:25:06 [2025-08-17 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15670658', 'tblTempUsageDetail_20' ) start [2025-08-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15670658', 'tblTempUsageDetail_20' ) end [2025-08-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15670658', 'tblTempVendorCDR_20' ) start [2025-08-17 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15670658', 'tblTempVendorCDR_20' ) end [2025-08-17 05:25:18] Production.INFO: ProcessCDR(1,15670658,1,1,2) [2025-08-17 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15670658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15670658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15670658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15670658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15670658', 'tblTempUsageDetail_20' ) start [2025-08-17 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15670658', 'tblTempUsageDetail_20' ) end [2025-08-17 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-17 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-17 05:25:25] Production.INFO: ==4669== Releasing lock... [2025-08-17 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 05:25:25] Production.INFO: 31.25 MB #Memory Used# [2025-08-17 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 03:25:05 [end_date_ymd] => 2025-08-17 06:25:05 [RateCDR] => 1 ) [2025-08-17 06:25: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-08-17 03:25:05' and `end` < '2025-08-17 06:25: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-08-17 06:25:17] Production.INFO: count ==240 [2025-08-17 06:25:17] Production.ERROR: pbx CDR StartTime 2025-08-17 03:25:05 - End Time 2025-08-17 06:25:05 [2025-08-17 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15670905', 'tblTempUsageDetail_20' ) start [2025-08-17 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15670905', 'tblTempUsageDetail_20' ) end [2025-08-17 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15670905', 'tblTempVendorCDR_20' ) start [2025-08-17 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15670905', 'tblTempVendorCDR_20' ) end [2025-08-17 06:25:17] Production.INFO: ProcessCDR(1,15670905,1,1,2) [2025-08-17 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15670905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15670905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15670905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15670905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15670905', 'tblTempUsageDetail_20' ) start [2025-08-17 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15670905', 'tblTempUsageDetail_20' ) end [2025-08-17 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-17 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-17 06:25:24] Production.INFO: ==9437== Releasing lock... [2025-08-17 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 06:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-08-17 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 04:25:05 [end_date_ymd] => 2025-08-17 07:25:05 [RateCDR] => 1 ) [2025-08-17 07:25: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-08-17 04:25:05' and `end` < '2025-08-17 07:25: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-08-17 07:25:17] Production.INFO: count ==164 [2025-08-17 07:25:17] Production.ERROR: pbx CDR StartTime 2025-08-17 04:25:05 - End Time 2025-08-17 07:25:05 [2025-08-17 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15671152', 'tblTempUsageDetail_20' ) start [2025-08-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15671152', 'tblTempUsageDetail_20' ) end [2025-08-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15671152', 'tblTempVendorCDR_20' ) start [2025-08-17 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15671152', 'tblTempVendorCDR_20' ) end [2025-08-17 07:25:17] Production.INFO: ProcessCDR(1,15671152,1,1,2) [2025-08-17 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15671152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15671152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15671152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 07:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15671152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15671152', 'tblTempUsageDetail_20' ) start [2025-08-17 07:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15671152', 'tblTempUsageDetail_20' ) end [2025-08-17 07:25:22] Production.ERROR: pbx prc_insertCDR start [2025-08-17 07:25:22] Production.ERROR: pbx prc_insertCDR end [2025-08-17 07:25:22] Production.INFO: ==14155== Releasing lock... [2025-08-17 07:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 07:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-08-17 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 05:25:06 [end_date_ymd] => 2025-08-17 08:25:06 [RateCDR] => 1 ) [2025-08-17 08:25: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-08-17 05:25:06' and `end` < '2025-08-17 08:25: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-08-17 08:25:18] Production.INFO: count ==124 [2025-08-17 08:25:18] Production.ERROR: pbx CDR StartTime 2025-08-17 05:25:06 - End Time 2025-08-17 08:25:06 [2025-08-17 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15671399', 'tblTempUsageDetail_20' ) start [2025-08-17 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15671399', 'tblTempUsageDetail_20' ) end [2025-08-17 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15671399', 'tblTempVendorCDR_20' ) start [2025-08-17 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15671399', 'tblTempVendorCDR_20' ) end [2025-08-17 08:25:18] Production.INFO: ProcessCDR(1,15671399,1,1,2) [2025-08-17 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15671399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15671399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15671399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15671399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15671399', 'tblTempUsageDetail_20' ) start [2025-08-17 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15671399', 'tblTempUsageDetail_20' ) end [2025-08-17 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-17 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-17 08:25:25] Production.INFO: ==18368== Releasing lock... [2025-08-17 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 08:25:25] Production.INFO: 29 MB #Memory Used# [2025-08-17 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 06:25:06 [end_date_ymd] => 2025-08-17 09:25:06 [RateCDR] => 1 ) [2025-08-17 09:25: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-08-17 06:25:06' and `end` < '2025-08-17 09:25: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-08-17 09:25:18] Production.INFO: count ==124 [2025-08-17 09:25:18] Production.ERROR: pbx CDR StartTime 2025-08-17 06:25:06 - End Time 2025-08-17 09:25:06 [2025-08-17 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15671646', 'tblTempUsageDetail_20' ) start [2025-08-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15671646', 'tblTempUsageDetail_20' ) end [2025-08-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15671646', 'tblTempVendorCDR_20' ) start [2025-08-17 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15671646', 'tblTempVendorCDR_20' ) end [2025-08-17 09:25:18] Production.INFO: ProcessCDR(1,15671646,1,1,2) [2025-08-17 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15671646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15671646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15671646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15671646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15671646', 'tblTempUsageDetail_20' ) start [2025-08-17 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15671646', 'tblTempUsageDetail_20' ) end [2025-08-17 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-17 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-17 09:25:25] Production.INFO: ==24165== Releasing lock... [2025-08-17 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 09:25:25] Production.INFO: 29 MB #Memory Used# [2025-08-17 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 07:25:05 [end_date_ymd] => 2025-08-17 10:25:05 [RateCDR] => 1 ) [2025-08-17 10:25: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-08-17 07:25:05' and `end` < '2025-08-17 10:25: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-08-17 10:25:17] Production.INFO: count ==270 [2025-08-17 10:25:17] Production.ERROR: pbx CDR StartTime 2025-08-17 07:25:05 - End Time 2025-08-17 10:25:05 [2025-08-17 10:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15671893', 'tblTempUsageDetail_20' ) start [2025-08-17 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15671893', 'tblTempUsageDetail_20' ) end [2025-08-17 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15671893', 'tblTempVendorCDR_20' ) start [2025-08-17 10:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15671893', 'tblTempVendorCDR_20' ) end [2025-08-17 10:25:17] Production.INFO: ProcessCDR(1,15671893,1,1,2) [2025-08-17 10:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15671893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15671893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15671893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15671893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15671893', 'tblTempUsageDetail_20' ) start [2025-08-17 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15671893', 'tblTempUsageDetail_20' ) end [2025-08-17 10:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-17 10:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-17 10:25:24] Production.INFO: ==28644== Releasing lock... [2025-08-17 10:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 10:25:24] Production.INFO: 30.75 MB #Memory Used# [2025-08-17 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 08:25:05 [end_date_ymd] => 2025-08-17 11:25:05 [RateCDR] => 1 ) [2025-08-17 11:25: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-08-17 08:25:05' and `end` < '2025-08-17 11:25: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-08-17 11:25:17] Production.INFO: count ==506 [2025-08-17 11:25:18] Production.ERROR: pbx CDR StartTime 2025-08-17 08:25:05 - End Time 2025-08-17 11:25:05 [2025-08-17 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15672140', 'tblTempUsageDetail_20' ) start [2025-08-17 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15672140', 'tblTempUsageDetail_20' ) end [2025-08-17 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15672140', 'tblTempVendorCDR_20' ) start [2025-08-17 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15672140', 'tblTempVendorCDR_20' ) end [2025-08-17 11:25:18] Production.INFO: ProcessCDR(1,15672140,1,1,2) [2025-08-17 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15672140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15672140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15672140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15672140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15672140', 'tblTempUsageDetail_20' ) start [2025-08-17 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15672140', 'tblTempUsageDetail_20' ) end [2025-08-17 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-17 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-17 11:25:26] Production.INFO: ==1039== Releasing lock... [2025-08-17 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 11:25:26] Production.INFO: 32.5 MB #Memory Used# [2025-08-17 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 09:25:05 [end_date_ymd] => 2025-08-17 12:25:05 [RateCDR] => 1 ) [2025-08-17 12:25: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-08-17 09:25:05' and `end` < '2025-08-17 12:25: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-08-17 12:25:18] Production.INFO: count ==717 [2025-08-17 12:25:18] Production.ERROR: pbx CDR StartTime 2025-08-17 09:25:05 - End Time 2025-08-17 12:25:05 [2025-08-17 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15672387', 'tblTempUsageDetail_20' ) start [2025-08-17 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15672387', 'tblTempUsageDetail_20' ) end [2025-08-17 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15672387', 'tblTempVendorCDR_20' ) start [2025-08-17 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15672387', 'tblTempVendorCDR_20' ) end [2025-08-17 12:25:18] Production.INFO: ProcessCDR(1,15672387,1,1,2) [2025-08-17 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15672387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15672387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15672387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15672387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15672387', 'tblTempUsageDetail_20' ) start [2025-08-17 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15672387', 'tblTempUsageDetail_20' ) end [2025-08-17 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-17 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-17 12:25:26] Production.INFO: ==5998== Releasing lock... [2025-08-17 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 12:25:26] Production.INFO: 34 MB #Memory Used# [2025-08-17 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 10:25:05 [end_date_ymd] => 2025-08-17 13:25:05 [RateCDR] => 1 ) [2025-08-17 13:25: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-08-17 10:25:05' and `end` < '2025-08-17 13:25: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-08-17 13:25:17] Production.INFO: count ==870 [2025-08-17 13:25:17] Production.ERROR: pbx CDR StartTime 2025-08-17 10:25:05 - End Time 2025-08-17 13:25:05 [2025-08-17 13:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15672634', 'tblTempUsageDetail_20' ) start [2025-08-17 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15672634', 'tblTempUsageDetail_20' ) end [2025-08-17 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15672634', 'tblTempVendorCDR_20' ) start [2025-08-17 13:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15672634', 'tblTempVendorCDR_20' ) end [2025-08-17 13:25:17] Production.INFO: ProcessCDR(1,15672634,1,1,2) [2025-08-17 13:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15672634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 13:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15672634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 13:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15672634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 13:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15672634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15672634', 'tblTempUsageDetail_20' ) start [2025-08-17 13:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15672634', 'tblTempUsageDetail_20' ) end [2025-08-17 13:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-17 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-17 13:25:26] Production.INFO: ==10730== Releasing lock... [2025-08-17 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 13:25:26] Production.INFO: 34.75 MB #Memory Used# [2025-08-17 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 11:25:05 [end_date_ymd] => 2025-08-17 14:25:05 [RateCDR] => 1 ) [2025-08-17 14:25: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-08-17 11:25:05' and `end` < '2025-08-17 14:25: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-08-17 14:25:18] Production.INFO: count ==931 [2025-08-17 14:25:18] Production.ERROR: pbx CDR StartTime 2025-08-17 11:25:05 - End Time 2025-08-17 14:25:05 [2025-08-17 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15672881', 'tblTempUsageDetail_20' ) start [2025-08-17 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15672881', 'tblTempUsageDetail_20' ) end [2025-08-17 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15672881', 'tblTempVendorCDR_20' ) start [2025-08-17 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15672881', 'tblTempVendorCDR_20' ) end [2025-08-17 14:25:19] Production.INFO: ProcessCDR(1,15672881,1,1,2) [2025-08-17 14:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15672881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15672881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15672881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15672881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15672881', 'tblTempUsageDetail_20' ) start [2025-08-17 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15672881', 'tblTempUsageDetail_20' ) end [2025-08-17 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-17 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-17 14:25:27] Production.INFO: ==15135== Releasing lock... [2025-08-17 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 14:25:27] Production.INFO: 35.5 MB #Memory Used# [2025-08-17 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 12:25:05 [end_date_ymd] => 2025-08-17 15:25:05 [RateCDR] => 1 ) [2025-08-17 15:25: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-08-17 12:25:05' and `end` < '2025-08-17 15:25: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-08-17 15:25:17] Production.INFO: count ==997 [2025-08-17 15:25:18] Production.ERROR: pbx CDR StartTime 2025-08-17 12:25:05 - End Time 2025-08-17 15:25:05 [2025-08-17 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15673128', 'tblTempUsageDetail_20' ) start [2025-08-17 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15673128', 'tblTempUsageDetail_20' ) end [2025-08-17 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15673128', 'tblTempVendorCDR_20' ) start [2025-08-17 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15673128', 'tblTempVendorCDR_20' ) end [2025-08-17 15:25:18] Production.INFO: ProcessCDR(1,15673128,1,1,2) [2025-08-17 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15673128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 15:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15673128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 15:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15673128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 15:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15673128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15673128', 'tblTempUsageDetail_20' ) start [2025-08-17 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15673128', 'tblTempUsageDetail_20' ) end [2025-08-17 15:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-17 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-17 15:25:26] Production.INFO: ==19487== Releasing lock... [2025-08-17 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 15:25:26] Production.INFO: 36 MB #Memory Used# [2025-08-17 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 13:25:06 [end_date_ymd] => 2025-08-17 16:25:06 [RateCDR] => 1 ) [2025-08-17 16:25: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-08-17 13:25:06' and `end` < '2025-08-17 16:25: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-08-17 16:25:18] Production.INFO: count ==1012 [2025-08-17 16:25:18] Production.ERROR: pbx CDR StartTime 2025-08-17 13:25:06 - End Time 2025-08-17 16:25:06 [2025-08-17 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15673375', 'tblTempUsageDetail_20' ) start [2025-08-17 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15673375', 'tblTempUsageDetail_20' ) end [2025-08-17 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15673375', 'tblTempVendorCDR_20' ) start [2025-08-17 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15673375', 'tblTempVendorCDR_20' ) end [2025-08-17 16:25:18] Production.INFO: ProcessCDR(1,15673375,1,1,2) [2025-08-17 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15673375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 16:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15673375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 16:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15673375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15673375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15673375', 'tblTempUsageDetail_20' ) start [2025-08-17 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15673375', 'tblTempUsageDetail_20' ) end [2025-08-17 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-17 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-17 16:25:26] Production.INFO: ==23877== Releasing lock... [2025-08-17 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 16:25:26] Production.INFO: 36.5 MB #Memory Used# [2025-08-17 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 14:25:05 [end_date_ymd] => 2025-08-17 17:25:05 [RateCDR] => 1 ) [2025-08-17 17:25: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-08-17 14:25:05' and `end` < '2025-08-17 17:25: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-08-17 17:25:17] Production.INFO: count ==1184 [2025-08-17 17:25:18] Production.ERROR: pbx CDR StartTime 2025-08-17 14:25:05 - End Time 2025-08-17 17:25:05 [2025-08-17 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15673622', 'tblTempUsageDetail_20' ) start [2025-08-17 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15673622', 'tblTempUsageDetail_20' ) end [2025-08-17 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15673622', 'tblTempVendorCDR_20' ) start [2025-08-17 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15673622', 'tblTempVendorCDR_20' ) end [2025-08-17 17:25:18] Production.INFO: ProcessCDR(1,15673622,1,1,2) [2025-08-17 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15673622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 17:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15673622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 17:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15673622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15673622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15673622', 'tblTempUsageDetail_20' ) start [2025-08-17 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15673622', 'tblTempUsageDetail_20' ) end [2025-08-17 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-17 17:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-17 17:25:26] Production.INFO: ==28429== Releasing lock... [2025-08-17 17:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 17:25:26] Production.INFO: 37.25 MB #Memory Used# [2025-08-17 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 15:25:06 [end_date_ymd] => 2025-08-17 18:25:06 [RateCDR] => 1 ) [2025-08-17 18:25: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-08-17 15:25:06' and `end` < '2025-08-17 18:25: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-08-17 18:25:18] Production.INFO: count ==1295 [2025-08-17 18:25:18] Production.ERROR: pbx CDR StartTime 2025-08-17 15:25:06 - End Time 2025-08-17 18:25:06 [2025-08-17 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15673869', 'tblTempUsageDetail_20' ) start [2025-08-17 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15673869', 'tblTempUsageDetail_20' ) end [2025-08-17 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15673869', 'tblTempVendorCDR_20' ) start [2025-08-17 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15673869', 'tblTempVendorCDR_20' ) end [2025-08-17 18:25:18] Production.INFO: ProcessCDR(1,15673869,1,1,2) [2025-08-17 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15673869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15673869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15673869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 18:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15673869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15673869', 'tblTempUsageDetail_20' ) start [2025-08-17 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15673869', 'tblTempUsageDetail_20' ) end [2025-08-17 18:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-17 18:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-17 18:25:26] Production.INFO: ==950== Releasing lock... [2025-08-17 18:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 18:25:26] Production.INFO: 38 MB #Memory Used# [2025-08-17 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 16:25:05 [end_date_ymd] => 2025-08-17 19:25:05 [RateCDR] => 1 ) [2025-08-17 19:25: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-08-17 16:25:05' and `end` < '2025-08-17 19:25: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-08-17 19:25:17] Production.INFO: count ==1423 [2025-08-17 19:25:17] Production.ERROR: pbx CDR StartTime 2025-08-17 16:25:05 - End Time 2025-08-17 19:25:05 [2025-08-17 19:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15674114', 'tblTempUsageDetail_20' ) start [2025-08-17 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15674114', 'tblTempUsageDetail_20' ) end [2025-08-17 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15674114', 'tblTempVendorCDR_20' ) start [2025-08-17 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15674114', 'tblTempVendorCDR_20' ) end [2025-08-17 19:25:18] Production.INFO: ProcessCDR(1,15674114,1,1,2) [2025-08-17 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15674114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15674114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15674114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15674114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15674114', 'tblTempUsageDetail_20' ) start [2025-08-17 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15674114', 'tblTempUsageDetail_20' ) end [2025-08-17 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-17 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-17 19:25:26] Production.INFO: ==5606== Releasing lock... [2025-08-17 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 19:25:26] Production.INFO: 39 MB #Memory Used# [2025-08-17 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 17:25:05 [end_date_ymd] => 2025-08-17 20:25:05 [RateCDR] => 1 ) [2025-08-17 20:25: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-08-17 17:25:05' and `end` < '2025-08-17 20:25: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-08-17 20:25:18] Production.INFO: count ==1326 [2025-08-17 20:25:18] Production.ERROR: pbx CDR StartTime 2025-08-17 17:25:05 - End Time 2025-08-17 20:25:05 [2025-08-17 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15674361', 'tblTempUsageDetail_20' ) start [2025-08-17 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15674361', 'tblTempUsageDetail_20' ) end [2025-08-17 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15674361', 'tblTempVendorCDR_20' ) start [2025-08-17 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15674361', 'tblTempVendorCDR_20' ) end [2025-08-17 20:25:18] Production.INFO: ProcessCDR(1,15674361,1,1,2) [2025-08-17 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15674361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15674361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15674361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15674361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15674361', 'tblTempUsageDetail_20' ) start [2025-08-17 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15674361', 'tblTempUsageDetail_20' ) end [2025-08-17 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-17 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-17 20:25:26] Production.INFO: ==10009== Releasing lock... [2025-08-17 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 20:25:26] Production.INFO: 38 MB #Memory Used# [2025-08-17 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 18:25:05 [end_date_ymd] => 2025-08-17 21:25:05 [RateCDR] => 1 ) [2025-08-17 21:25: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-08-17 18:25:05' and `end` < '2025-08-17 21:25: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-08-17 21:25:17] Production.INFO: count ==1236 [2025-08-17 21:25:18] Production.ERROR: pbx CDR StartTime 2025-08-17 18:25:05 - End Time 2025-08-17 21:25:05 [2025-08-17 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15674608', 'tblTempUsageDetail_20' ) start [2025-08-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15674608', 'tblTempUsageDetail_20' ) end [2025-08-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15674608', 'tblTempVendorCDR_20' ) start [2025-08-17 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15674608', 'tblTempVendorCDR_20' ) end [2025-08-17 21:25:18] Production.INFO: ProcessCDR(1,15674608,1,1,2) [2025-08-17 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15674608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15674608,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15674608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15674608,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15674608', 'tblTempUsageDetail_20' ) start [2025-08-17 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15674608', 'tblTempUsageDetail_20' ) end [2025-08-17 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-17 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-17 21:25:26] Production.INFO: ==15110== Releasing lock... [2025-08-17 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 21:25:26] Production.INFO: 37.75 MB #Memory Used# [2025-08-17 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 19:25:05 [end_date_ymd] => 2025-08-17 22:25:05 [RateCDR] => 1 ) [2025-08-17 22:25: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-08-17 19:25:05' and `end` < '2025-08-17 22:25: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-08-17 22:25:17] Production.INFO: count ==1036 [2025-08-17 22:25:17] Production.ERROR: pbx CDR StartTime 2025-08-17 19:25:05 - End Time 2025-08-17 22:25:05 [2025-08-17 22:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15674855', 'tblTempUsageDetail_20' ) start [2025-08-17 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15674855', 'tblTempUsageDetail_20' ) end [2025-08-17 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15674855', 'tblTempVendorCDR_20' ) start [2025-08-17 22:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15674855', 'tblTempVendorCDR_20' ) end [2025-08-17 22:25:17] Production.INFO: ProcessCDR(1,15674855,1,1,2) [2025-08-17 22:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15674855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15674855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15674855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15674855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15674855', 'tblTempUsageDetail_20' ) start [2025-08-17 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15674855', 'tblTempUsageDetail_20' ) end [2025-08-17 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-17 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-17 22:25:25] Production.INFO: ==19962== Releasing lock... [2025-08-17 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 22:25:25] Production.INFO: 36 MB #Memory Used# [2025-08-17 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-17 20:25:06 [end_date_ymd] => 2025-08-17 23:25:06 [RateCDR] => 1 ) [2025-08-17 23:25: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-08-17 20:25:06' and `end` < '2025-08-17 23:25: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-08-17 23:25:18] Production.INFO: count ==966 [2025-08-17 23:25:18] Production.ERROR: pbx CDR StartTime 2025-08-17 20:25:06 - End Time 2025-08-17 23:25:06 [2025-08-17 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15675102', 'tblTempUsageDetail_20' ) start [2025-08-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15675102', 'tblTempUsageDetail_20' ) end [2025-08-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15675102', 'tblTempVendorCDR_20' ) start [2025-08-17 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15675102', 'tblTempVendorCDR_20' ) end [2025-08-17 23:25:18] Production.INFO: ProcessCDR(1,15675102,1,1,2) [2025-08-17 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15675102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15675102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-17 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15675102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15675102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-17 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15675102', 'tblTempUsageDetail_20' ) start [2025-08-17 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15675102', 'tblTempUsageDetail_20' ) end [2025-08-17 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-17 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-17 23:25:27] Production.INFO: ==24173== Releasing lock... [2025-08-17 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-17 23:25:27] Production.INFO: 35.5 MB #Memory Used#