[2025-09-16 00:25:04] Production.INFO: next invoice date [2025-09-16 00:25:04] Production.INFO: 2025-10-16 [2025-09-16 00:25:04] Production.INFO: getdaysdiff [2025-09-16 00:25:04] Production.INFO: +30 [2025-09-16 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (107,16,1,30,30,'RMScheduler',2025-09-16 00:25:04,1,0,,,0) [2025-09-16 00:25:04] Production.INFO: next invoice date [2025-09-16 00:25:04] Production.INFO: 2025-10-16 [2025-09-16 00:25:04] Production.INFO: getdaysdiff [2025-09-16 00:25:04] Production.INFO: +30 [2025-09-16 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (140,16,1,30,30,'RMScheduler',2025-09-16 00:25:04,1,0,,,0) [2025-09-16 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 21:25:05 [end_date_ymd] => 2025-09-16 00:25:05 [RateCDR] => 1 ) [2025-09-16 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-09-15 21:25:05' and `end` < '2025-09-16 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-09-16 00:25:18] Production.INFO: count ==430 [2025-09-16 00:25:18] Production.ERROR: pbx CDR StartTime 2025-09-15 21:25:05 - End Time 2025-09-16 00:25:05 [2025-09-16 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15847242', 'tblTempUsageDetail_20' ) start [2025-09-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15847242', 'tblTempUsageDetail_20' ) end [2025-09-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15847242', 'tblTempVendorCDR_20' ) start [2025-09-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15847242', 'tblTempVendorCDR_20' ) end [2025-09-16 00:25:18] Production.INFO: ProcessCDR(1,15847242,1,1,2) [2025-09-16 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15847242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15847242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15847242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15847242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15847242', 'tblTempUsageDetail_20' ) start [2025-09-16 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15847242', 'tblTempUsageDetail_20' ) end [2025-09-16 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-16 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-16 00:25:32] Production.INFO: ==5214== Releasing lock... [2025-09-16 00:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 00:25:32] Production.INFO: 35.25 MB #Memory Used# [2025-09-16 01:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 22:25:04 [end_date_ymd] => 2025-09-16 01:25:04 [RateCDR] => 1 ) [2025-09-16 01:25:04] 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-09-15 22:25:04' and `end` < '2025-09-16 01:25:04' 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-09-16 01:25:16] Production.INFO: count ==428 [2025-09-16 01:25:17] Production.ERROR: pbx CDR StartTime 2025-09-15 22:25:04 - End Time 2025-09-16 01:25:04 [2025-09-16 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15847489', 'tblTempUsageDetail_20' ) start [2025-09-16 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15847489', 'tblTempUsageDetail_20' ) end [2025-09-16 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15847489', 'tblTempVendorCDR_20' ) start [2025-09-16 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15847489', 'tblTempVendorCDR_20' ) end [2025-09-16 01:25:17] Production.INFO: ProcessCDR(1,15847489,1,1,2) [2025-09-16 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15847489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15847489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15847489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15847489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15847489', 'tblTempUsageDetail_20' ) start [2025-09-16 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15847489', 'tblTempUsageDetail_20' ) end [2025-09-16 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-16 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-16 01:25:25] Production.INFO: ==9786== Releasing lock... [2025-09-16 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 01:25:25] Production.INFO: 32 MB #Memory Used# [2025-09-16 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-15 23:25:05 [end_date_ymd] => 2025-09-16 02:25:05 [RateCDR] => 1 ) [2025-09-16 02: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-09-15 23:25:05' and `end` < '2025-09-16 02: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-09-16 02:25:20] Production.INFO: count ==367 [2025-09-16 02:25:20] Production.ERROR: pbx CDR StartTime 2025-09-15 23:25:05 - End Time 2025-09-16 02:25:05 [2025-09-16 02:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15847736', 'tblTempUsageDetail_20' ) start [2025-09-16 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15847736', 'tblTempUsageDetail_20' ) end [2025-09-16 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15847736', 'tblTempVendorCDR_20' ) start [2025-09-16 02:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15847736', 'tblTempVendorCDR_20' ) end [2025-09-16 02:25:20] Production.INFO: ProcessCDR(1,15847736,1,1,2) [2025-09-16 02:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15847736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 02:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15847736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 02:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15847736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 02:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15847736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 02:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15847736', 'tblTempUsageDetail_20' ) start [2025-09-16 02:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15847736', 'tblTempUsageDetail_20' ) end [2025-09-16 02:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-16 02:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-16 02:25:28] Production.INFO: ==14284== Releasing lock... [2025-09-16 02:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 02:25:28] Production.INFO: 31 MB #Memory Used# [2025-09-16 03:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 00:25:04 [end_date_ymd] => 2025-09-16 03:25:04 [RateCDR] => 1 ) [2025-09-16 03:25:04] 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-09-16 00:25:04' and `end` < '2025-09-16 03:25:04' 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-09-16 03:25:16] Production.INFO: count ==302 [2025-09-16 03:25:16] Production.ERROR: pbx CDR StartTime 2025-09-16 00:25:04 - End Time 2025-09-16 03:25:04 [2025-09-16 03:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15847983', 'tblTempUsageDetail_20' ) start [2025-09-16 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15847983', 'tblTempUsageDetail_20' ) end [2025-09-16 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15847983', 'tblTempVendorCDR_20' ) start [2025-09-16 03:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15847983', 'tblTempVendorCDR_20' ) end [2025-09-16 03:25:16] Production.INFO: ProcessCDR(1,15847983,1,1,2) [2025-09-16 03:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15847983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15847983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15847983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15847983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15847983', 'tblTempUsageDetail_20' ) start [2025-09-16 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15847983', 'tblTempUsageDetail_20' ) end [2025-09-16 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-16 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-16 03:25:24] Production.INFO: ==18862== Releasing lock... [2025-09-16 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 03:25:24] Production.INFO: 30.75 MB #Memory Used# [2025-09-16 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 01:25:05 [end_date_ymd] => 2025-09-16 04:25:05 [RateCDR] => 1 ) [2025-09-16 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-09-16 01:25:05' and `end` < '2025-09-16 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-09-16 04:25:17] Production.INFO: count ==191 [2025-09-16 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-16 01:25:05 - End Time 2025-09-16 04:25:05 [2025-09-16 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15848231', 'tblTempUsageDetail_20' ) start [2025-09-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15848231', 'tblTempUsageDetail_20' ) end [2025-09-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15848231', 'tblTempVendorCDR_20' ) start [2025-09-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15848231', 'tblTempVendorCDR_20' ) end [2025-09-16 04:25:17] Production.INFO: ProcessCDR(1,15848231,1,1,2) [2025-09-16 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15848231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15848231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15848231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15848231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15848231', 'tblTempUsageDetail_20' ) start [2025-09-16 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15848231', 'tblTempUsageDetail_20' ) end [2025-09-16 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-16 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-16 04:25:25] Production.INFO: ==23713== Releasing lock... [2025-09-16 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 04:25:25] Production.INFO: 30 MB #Memory Used# [2025-09-16 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 02:25:05 [end_date_ymd] => 2025-09-16 05:25:05 [RateCDR] => 1 ) [2025-09-16 05: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-09-16 02:25:05' and `end` < '2025-09-16 05: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-09-16 05:25:17] Production.INFO: count ==193 [2025-09-16 05:25:17] Production.ERROR: pbx CDR StartTime 2025-09-16 02:25:05 - End Time 2025-09-16 05:25:05 [2025-09-16 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15848479', 'tblTempUsageDetail_20' ) start [2025-09-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15848479', 'tblTempUsageDetail_20' ) end [2025-09-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15848479', 'tblTempVendorCDR_20' ) start [2025-09-16 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15848479', 'tblTempVendorCDR_20' ) end [2025-09-16 05:25:17] Production.INFO: ProcessCDR(1,15848479,1,1,2) [2025-09-16 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15848479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15848479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15848479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15848479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15848479', 'tblTempUsageDetail_20' ) start [2025-09-16 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15848479', 'tblTempUsageDetail_20' ) end [2025-09-16 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-09-16 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-09-16 05:25:22] Production.INFO: ==28607== Releasing lock... [2025-09-16 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 05:25:22] Production.INFO: 30 MB #Memory Used# [2025-09-16 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 03:25:06 [end_date_ymd] => 2025-09-16 06:25:06 [RateCDR] => 1 ) [2025-09-16 06: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-09-16 03:25:06' and `end` < '2025-09-16 06: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-09-16 06:25:18] Production.INFO: count ==162 [2025-09-16 06:25:18] Production.ERROR: pbx CDR StartTime 2025-09-16 03:25:06 - End Time 2025-09-16 06:25:06 [2025-09-16 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15848726', 'tblTempUsageDetail_20' ) start [2025-09-16 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15848726', 'tblTempUsageDetail_20' ) end [2025-09-16 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15848726', 'tblTempVendorCDR_20' ) start [2025-09-16 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15848726', 'tblTempVendorCDR_20' ) end [2025-09-16 06:25:18] Production.INFO: ProcessCDR(1,15848726,1,1,2) [2025-09-16 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15848726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 06:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15848726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 06:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15848726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15848726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15848726', 'tblTempUsageDetail_20' ) start [2025-09-16 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15848726', 'tblTempUsageDetail_20' ) end [2025-09-16 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-16 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-16 06:25:25] Production.INFO: ==447== Releasing lock... [2025-09-16 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 06:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-09-16 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 04:25:05 [end_date_ymd] => 2025-09-16 07:25:05 [RateCDR] => 1 ) [2025-09-16 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-09-16 04:25:05' and `end` < '2025-09-16 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-09-16 07:25:17] Production.INFO: count ==193 [2025-09-16 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-16 04:25:05 - End Time 2025-09-16 07:25:05 [2025-09-16 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15848973', 'tblTempUsageDetail_20' ) start [2025-09-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15848973', 'tblTempUsageDetail_20' ) end [2025-09-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15848973', 'tblTempVendorCDR_20' ) start [2025-09-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15848973', 'tblTempVendorCDR_20' ) end [2025-09-16 07:25:17] Production.INFO: ProcessCDR(1,15848973,1,1,2) [2025-09-16 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15848973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15848973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15848973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15848973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15848973', 'tblTempUsageDetail_20' ) start [2025-09-16 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15848973', 'tblTempUsageDetail_20' ) end [2025-09-16 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-16 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-16 07:25:24] Production.INFO: ==5153== Releasing lock... [2025-09-16 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 07:25:24] Production.INFO: 30 MB #Memory Used# [2025-09-16 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 05:25:05 [end_date_ymd] => 2025-09-16 08:25:05 [RateCDR] => 1 ) [2025-09-16 08: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-09-16 05:25:05' and `end` < '2025-09-16 08: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-09-16 08:25:17] Production.INFO: count ==409 [2025-09-16 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-16 05:25:05 - End Time 2025-09-16 08:25:05 [2025-09-16 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15849220', 'tblTempUsageDetail_20' ) start [2025-09-16 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15849220', 'tblTempUsageDetail_20' ) end [2025-09-16 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15849220', 'tblTempVendorCDR_20' ) start [2025-09-16 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15849220', 'tblTempVendorCDR_20' ) end [2025-09-16 08:25:17] Production.INFO: ProcessCDR(1,15849220,1,1,2) [2025-09-16 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15849220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15849220,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15849220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15849220,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15849220', 'tblTempUsageDetail_20' ) start [2025-09-16 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15849220', 'tblTempUsageDetail_20' ) end [2025-09-16 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-16 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-16 08:25:26] Production.INFO: ==9487== Releasing lock... [2025-09-16 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 08:25:26] Production.INFO: 31.5 MB #Memory Used# [2025-09-16 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 06:25:05 [end_date_ymd] => 2025-09-16 09:25:05 [RateCDR] => 1 ) [2025-09-16 09: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-09-16 06:25:05' and `end` < '2025-09-16 09: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-09-16 09:25:19] Production.INFO: count ==1627 [2025-09-16 09:25:19] Production.ERROR: pbx CDR StartTime 2025-09-16 06:25:05 - End Time 2025-09-16 09:25:05 [2025-09-16 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15849467', 'tblTempUsageDetail_20' ) start [2025-09-16 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15849467', 'tblTempUsageDetail_20' ) end [2025-09-16 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15849467', 'tblTempVendorCDR_20' ) start [2025-09-16 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15849467', 'tblTempVendorCDR_20' ) end [2025-09-16 09:25:19] Production.INFO: ProcessCDR(1,15849467,1,1,2) [2025-09-16 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15849467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 09:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15849467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 09:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15849467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 09:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15849467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 09:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15849467', 'tblTempUsageDetail_20' ) start [2025-09-16 09:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15849467', 'tblTempUsageDetail_20' ) end [2025-09-16 09:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-16 09:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-16 09:25:29] Production.INFO: ==14116== Releasing lock... [2025-09-16 09:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 09:25:29] Production.INFO: 40.5 MB #Memory Used# [2025-09-16 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 07:25:05 [end_date_ymd] => 2025-09-16 10:25:05 [RateCDR] => 1 ) [2025-09-16 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-09-16 07:25:05' and `end` < '2025-09-16 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-09-16 10:25:18] Production.INFO: count ==3178 [2025-09-16 10:25:19] Production.ERROR: pbx CDR StartTime 2025-09-16 07:25:05 - End Time 2025-09-16 10:25:05 [2025-09-16 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15849714', 'tblTempUsageDetail_20' ) start [2025-09-16 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15849714', 'tblTempUsageDetail_20' ) end [2025-09-16 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15849714', 'tblTempVendorCDR_20' ) start [2025-09-16 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15849714', 'tblTempVendorCDR_20' ) end [2025-09-16 10:25:19] Production.INFO: ProcessCDR(1,15849714,1,1,2) [2025-09-16 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15849714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15849714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15849714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15849714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15849714', 'tblTempUsageDetail_20' ) start [2025-09-16 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15849714', 'tblTempUsageDetail_20' ) end [2025-09-16 10:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-16 10:25:31] Production.ERROR: pbx prc_insertCDR end [2025-09-16 10:25:31] Production.INFO: ==18800== Releasing lock... [2025-09-16 10:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 10:25:31] Production.INFO: 52.25 MB #Memory Used# [2025-09-16 11:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 08:25:04 [end_date_ymd] => 2025-09-16 11:25:04 [RateCDR] => 1 ) [2025-09-16 11:25:04] 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-09-16 08:25:04' and `end` < '2025-09-16 11:25:04' 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-09-16 11:25:18] Production.INFO: count ==4518 [2025-09-16 11:25:21] Production.ERROR: pbx CDR StartTime 2025-09-16 08:25:04 - End Time 2025-09-16 11:25:04 [2025-09-16 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15849961', 'tblTempUsageDetail_20' ) start [2025-09-16 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15849961', 'tblTempUsageDetail_20' ) end [2025-09-16 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15849961', 'tblTempVendorCDR_20' ) start [2025-09-16 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15849961', 'tblTempVendorCDR_20' ) end [2025-09-16 11:25:21] Production.INFO: ProcessCDR(1,15849961,1,1,2) [2025-09-16 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15849961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15849961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15849961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 11:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15849961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15849961', 'tblTempUsageDetail_20' ) start [2025-09-16 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15849961', 'tblTempUsageDetail_20' ) end [2025-09-16 11:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-16 11:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-16 11:25:32] Production.INFO: ==23394== Releasing lock... [2025-09-16 11:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 11:25:32] Production.INFO: 62 MB #Memory Used# [2025-09-16 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 09:25:05 [end_date_ymd] => 2025-09-16 12:25:05 [RateCDR] => 1 ) [2025-09-16 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-09-16 09:25:05' and `end` < '2025-09-16 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-09-16 12:25:18] Production.INFO: count ==5071 [2025-09-16 12:25:21] Production.ERROR: pbx CDR StartTime 2025-09-16 09:25:05 - End Time 2025-09-16 12:25:05 [2025-09-16 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15850208', 'tblTempUsageDetail_20' ) start [2025-09-16 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15850208', 'tblTempUsageDetail_20' ) end [2025-09-16 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15850208', 'tblTempVendorCDR_20' ) start [2025-09-16 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15850208', 'tblTempVendorCDR_20' ) end [2025-09-16 12:25:21] Production.INFO: ProcessCDR(1,15850208,1,1,2) [2025-09-16 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15850208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15850208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15850208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 12:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15850208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15850208', 'tblTempUsageDetail_20' ) start [2025-09-16 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15850208', 'tblTempUsageDetail_20' ) end [2025-09-16 12:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-16 12:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-16 12:25:33] Production.INFO: ==27979== Releasing lock... [2025-09-16 12:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 12:25:33] Production.INFO: 66.25 MB #Memory Used# [2025-09-16 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 10:25:05 [end_date_ymd] => 2025-09-16 13:25:05 [RateCDR] => 1 ) [2025-09-16 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-09-16 10:25:05' and `end` < '2025-09-16 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-09-16 13:25:22] Production.INFO: count ==5455 [2025-09-16 13:25:25] Production.ERROR: pbx CDR StartTime 2025-09-16 10:25:05 - End Time 2025-09-16 13:25:05 [2025-09-16 13:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15850455', 'tblTempUsageDetail_20' ) start [2025-09-16 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15850455', 'tblTempUsageDetail_20' ) end [2025-09-16 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15850455', 'tblTempVendorCDR_20' ) start [2025-09-16 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15850455', 'tblTempVendorCDR_20' ) end [2025-09-16 13:25:25] Production.INFO: ProcessCDR(1,15850455,1,1,2) [2025-09-16 13:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15850455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 13:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15850455,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 13:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15850455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 13:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15850455,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 13:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15850455', 'tblTempUsageDetail_20' ) start [2025-09-16 13:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15850455', 'tblTempUsageDetail_20' ) end [2025-09-16 13:25:36] Production.ERROR: pbx prc_insertCDR start [2025-09-16 13:25:38] Production.ERROR: pbx prc_insertCDR end [2025-09-16 13:25:38] Production.INFO: ==32439== Releasing lock... [2025-09-16 13:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 13:25:38] Production.INFO: 69 MB #Memory Used# [2025-09-16 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 11:25:05 [end_date_ymd] => 2025-09-16 14:25:05 [RateCDR] => 1 ) [2025-09-16 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-09-16 11:25:05' and `end` < '2025-09-16 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-09-16 14:25:22] Production.INFO: count ==5818 [2025-09-16 14:25:25] Production.ERROR: pbx CDR StartTime 2025-09-16 11:25:05 - End Time 2025-09-16 14:25:05 [2025-09-16 14:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15850702', 'tblTempUsageDetail_20' ) start [2025-09-16 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15850702', 'tblTempUsageDetail_20' ) end [2025-09-16 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15850702', 'tblTempVendorCDR_20' ) start [2025-09-16 14:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15850702', 'tblTempVendorCDR_20' ) end [2025-09-16 14:25:25] Production.INFO: ProcessCDR(1,15850702,1,1,2) [2025-09-16 14:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15850702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 14:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15850702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 14:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15850702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 14:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15850702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 14:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15850702', 'tblTempUsageDetail_20' ) start [2025-09-16 14:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15850702', 'tblTempUsageDetail_20' ) end [2025-09-16 14:25:36] Production.ERROR: pbx prc_insertCDR start [2025-09-16 14:25:38] Production.ERROR: pbx prc_insertCDR end [2025-09-16 14:25:38] Production.INFO: ==4638== Releasing lock... [2025-09-16 14:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 14:25:38] Production.INFO: 71.75 MB #Memory Used# [2025-09-16 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 12:25:04 [end_date_ymd] => 2025-09-16 15:25:04 [RateCDR] => 1 ) [2025-09-16 15:25:04] 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-09-16 12:25:04' and `end` < '2025-09-16 15:25:04' 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-09-16 15:25:22] Production.INFO: count ==6172 [2025-09-16 15:25:25] Production.ERROR: pbx CDR StartTime 2025-09-16 12:25:04 - End Time 2025-09-16 15:25:04 [2025-09-16 15:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15850949', 'tblTempUsageDetail_20' ) start [2025-09-16 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15850949', 'tblTempUsageDetail_20' ) end [2025-09-16 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15850949', 'tblTempVendorCDR_20' ) start [2025-09-16 15:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15850949', 'tblTempVendorCDR_20' ) end [2025-09-16 15:25:26] Production.INFO: ProcessCDR(1,15850949,1,1,2) [2025-09-16 15:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15850949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 15:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15850949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 15:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15850949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 15:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15850949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 15:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15850949', 'tblTempUsageDetail_20' ) start [2025-09-16 15:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15850949', 'tblTempUsageDetail_20' ) end [2025-09-16 15:25:35] Production.ERROR: pbx prc_insertCDR start [2025-09-16 15:25:38] Production.ERROR: pbx prc_insertCDR end [2025-09-16 15:25:38] Production.INFO: ==9224== Releasing lock... [2025-09-16 15:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 15:25:38] Production.INFO: 74.5 MB #Memory Used# [2025-09-16 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 13:25:05 [end_date_ymd] => 2025-09-16 16:25:05 [RateCDR] => 1 ) [2025-09-16 16: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-09-16 13:25:05' and `end` < '2025-09-16 16: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-09-16 16:25:21] Production.INFO: count ==6278 [2025-09-16 16:25:24] Production.ERROR: pbx CDR StartTime 2025-09-16 13:25:05 - End Time 2025-09-16 16:25:05 [2025-09-16 16:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15851196', 'tblTempUsageDetail_20' ) start [2025-09-16 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15851196', 'tblTempUsageDetail_20' ) end [2025-09-16 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15851196', 'tblTempVendorCDR_20' ) start [2025-09-16 16:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15851196', 'tblTempVendorCDR_20' ) end [2025-09-16 16:25:24] Production.INFO: ProcessCDR(1,15851196,1,1,2) [2025-09-16 16:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15851196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 16:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15851196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 16:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15851196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 16:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15851196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 16:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15851196', 'tblTempUsageDetail_20' ) start [2025-09-16 16:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15851196', 'tblTempUsageDetail_20' ) end [2025-09-16 16:25:35] Production.ERROR: pbx prc_insertCDR start [2025-09-16 16:25:37] Production.ERROR: pbx prc_insertCDR end [2025-09-16 16:25:37] Production.INFO: ==13584== Releasing lock... [2025-09-16 16:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 16:25:37] Production.INFO: 75.25 MB #Memory Used# [2025-09-16 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 14:25:06 [end_date_ymd] => 2025-09-16 17:25:06 [RateCDR] => 1 ) [2025-09-16 17: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-09-16 14:25:06' and `end` < '2025-09-16 17: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-09-16 17:25:20] Production.INFO: count ==5726 [2025-09-16 17:25:22] Production.ERROR: pbx CDR StartTime 2025-09-16 14:25:06 - End Time 2025-09-16 17:25:06 [2025-09-16 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15851443', 'tblTempUsageDetail_20' ) start [2025-09-16 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15851443', 'tblTempUsageDetail_20' ) end [2025-09-16 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15851443', 'tblTempVendorCDR_20' ) start [2025-09-16 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15851443', 'tblTempVendorCDR_20' ) end [2025-09-16 17:25:23] Production.INFO: ProcessCDR(1,15851443,1,1,2) [2025-09-16 17:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15851443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 17:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15851443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 17:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15851443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 17:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15851443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15851443', 'tblTempUsageDetail_20' ) start [2025-09-16 17:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15851443', 'tblTempUsageDetail_20' ) end [2025-09-16 17:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-16 17:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-16 17:25:35] Production.INFO: ==19302== Releasing lock... [2025-09-16 17:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 17:25:35] Production.INFO: 71 MB #Memory Used# [2025-09-16 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 15:25:06 [end_date_ymd] => 2025-09-16 18:25:06 [RateCDR] => 1 ) [2025-09-16 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-09-16 15:25:06' and `end` < '2025-09-16 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-09-16 18:25:19] Production.INFO: count ==4545 [2025-09-16 18:25:21] Production.ERROR: pbx CDR StartTime 2025-09-16 15:25:06 - End Time 2025-09-16 18:25:06 [2025-09-16 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15851690', 'tblTempUsageDetail_20' ) start [2025-09-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15851690', 'tblTempUsageDetail_20' ) end [2025-09-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15851690', 'tblTempVendorCDR_20' ) start [2025-09-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15851690', 'tblTempVendorCDR_20' ) end [2025-09-16 18:25:21] Production.INFO: ProcessCDR(1,15851690,1,1,2) [2025-09-16 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15851690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15851690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15851690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 18:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15851690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 18:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15851690', 'tblTempUsageDetail_20' ) start [2025-09-16 18:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15851690', 'tblTempUsageDetail_20' ) end [2025-09-16 18:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-16 18:25:31] Production.ERROR: pbx prc_insertCDR end [2025-09-16 18:25:31] Production.INFO: ==24840== Releasing lock... [2025-09-16 18:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 18:25:31] Production.INFO: 62.25 MB #Memory Used# [2025-09-16 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 16:25:05 [end_date_ymd] => 2025-09-16 19:25:05 [RateCDR] => 1 ) [2025-09-16 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-09-16 16:25:05' and `end` < '2025-09-16 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-09-16 19:25:18] Production.INFO: count ==3166 [2025-09-16 19:25:19] Production.ERROR: pbx CDR StartTime 2025-09-16 16:25:05 - End Time 2025-09-16 19:25:05 [2025-09-16 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15851935', 'tblTempUsageDetail_20' ) start [2025-09-16 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15851935', 'tblTempUsageDetail_20' ) end [2025-09-16 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15851935', 'tblTempVendorCDR_20' ) start [2025-09-16 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15851935', 'tblTempVendorCDR_20' ) end [2025-09-16 19:25:20] Production.INFO: ProcessCDR(1,15851935,1,1,2) [2025-09-16 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15851935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15851935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15851935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15851935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15851935', 'tblTempUsageDetail_20' ) start [2025-09-16 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15851935', 'tblTempUsageDetail_20' ) end [2025-09-16 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-16 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-16 19:25:29] Production.INFO: ==29177== Releasing lock... [2025-09-16 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 19:25:29] Production.INFO: 52.5 MB #Memory Used# [2025-09-16 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 17:25:05 [end_date_ymd] => 2025-09-16 20:25:05 [RateCDR] => 1 ) [2025-09-16 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-09-16 17:25:05' and `end` < '2025-09-16 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-09-16 20:25:18] Production.INFO: count ==2188 [2025-09-16 20:25:18] Production.ERROR: pbx CDR StartTime 2025-09-16 17:25:05 - End Time 2025-09-16 20:25:05 [2025-09-16 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15852182', 'tblTempUsageDetail_20' ) start [2025-09-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15852182', 'tblTempUsageDetail_20' ) end [2025-09-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15852182', 'tblTempVendorCDR_20' ) start [2025-09-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15852182', 'tblTempVendorCDR_20' ) end [2025-09-16 20:25:18] Production.INFO: ProcessCDR(1,15852182,1,1,2) [2025-09-16 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15852182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15852182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15852182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15852182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15852182', 'tblTempUsageDetail_20' ) start [2025-09-16 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15852182', 'tblTempUsageDetail_20' ) end [2025-09-16 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-16 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-16 20:25:28] Production.INFO: ==1318== Releasing lock... [2025-09-16 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 20:25:28] Production.INFO: 44.5 MB #Memory Used# [2025-09-16 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 18:25:05 [end_date_ymd] => 2025-09-16 21:25:05 [RateCDR] => 1 ) [2025-09-16 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-09-16 18:25:05' and `end` < '2025-09-16 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-09-16 21:25:17] Production.INFO: count ==1504 [2025-09-16 21:25:18] Production.ERROR: pbx CDR StartTime 2025-09-16 18:25:05 - End Time 2025-09-16 21:25:05 [2025-09-16 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15852429', 'tblTempUsageDetail_20' ) start [2025-09-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15852429', 'tblTempUsageDetail_20' ) end [2025-09-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15852429', 'tblTempVendorCDR_20' ) start [2025-09-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15852429', 'tblTempVendorCDR_20' ) end [2025-09-16 21:25:18] Production.INFO: ProcessCDR(1,15852429,1,1,2) [2025-09-16 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15852429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15852429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15852429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15852429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15852429', 'tblTempUsageDetail_20' ) start [2025-09-16 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15852429', 'tblTempUsageDetail_20' ) end [2025-09-16 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-16 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-16 21:25:27] Production.INFO: ==5876== Releasing lock... [2025-09-16 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 21:25:27] Production.INFO: 39.5 MB #Memory Used# [2025-09-16 22:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 19:25:06 [end_date_ymd] => 2025-09-16 22:25:06 [RateCDR] => 1 ) [2025-09-16 22: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-09-16 19:25:06' and `end` < '2025-09-16 22: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-09-16 22:25:18] Production.INFO: count ==1111 [2025-09-16 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-16 19:25:06 - End Time 2025-09-16 22:25:06 [2025-09-16 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15852676', 'tblTempUsageDetail_20' ) start [2025-09-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15852676', 'tblTempUsageDetail_20' ) end [2025-09-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15852676', 'tblTempVendorCDR_20' ) start [2025-09-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15852676', 'tblTempVendorCDR_20' ) end [2025-09-16 22:25:18] Production.INFO: ProcessCDR(1,15852676,1,1,2) [2025-09-16 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15852676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15852676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15852676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15852676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15852676', 'tblTempUsageDetail_20' ) start [2025-09-16 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15852676', 'tblTempUsageDetail_20' ) end [2025-09-16 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-16 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-16 22:25:26] Production.INFO: ==11999== Releasing lock... [2025-09-16 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 22:25:26] Production.INFO: 36.75 MB #Memory Used# [2025-09-16 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-16 20:25:05 [end_date_ymd] => 2025-09-16 23:25:05 [RateCDR] => 1 ) [2025-09-16 23: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-09-16 20:25:05' and `end` < '2025-09-16 23: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-09-16 23:25:18] Production.INFO: count ==817 [2025-09-16 23:25:18] Production.ERROR: pbx CDR StartTime 2025-09-16 20:25:05 - End Time 2025-09-16 23:25:05 [2025-09-16 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-16 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15852923', 'tblTempUsageDetail_20' ) start [2025-09-16 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15852923', 'tblTempUsageDetail_20' ) end [2025-09-16 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15852923', 'tblTempVendorCDR_20' ) start [2025-09-16 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15852923', 'tblTempVendorCDR_20' ) end [2025-09-16 23:25:18] Production.INFO: ProcessCDR(1,15852923,1,1,2) [2025-09-16 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15852923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15852923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-16 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15852923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15852923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-16 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15852923', 'tblTempUsageDetail_20' ) start [2025-09-16 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15852923', 'tblTempUsageDetail_20' ) end [2025-09-16 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-16 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-16 23:25:26] Production.INFO: ==16274== Releasing lock... [2025-09-16 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-16 23:25:26] Production.INFO: 34.5 MB #Memory Used#