[2025-09-09 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 21:25:05 [end_date_ymd] => 2025-09-09 00:25:05 [RateCDR] => 1 ) [2025-09-09 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-08 21:25:05' and `end` < '2025-09-09 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-09 00:25:17] Production.INFO: count ==428 [2025-09-09 00:25:17] Production.ERROR: pbx CDR StartTime 2025-09-08 21:25:05 - End Time 2025-09-09 00:25:05 [2025-09-09 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15805749', 'tblTempUsageDetail_20' ) start [2025-09-09 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15805749', 'tblTempUsageDetail_20' ) end [2025-09-09 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15805749', 'tblTempVendorCDR_20' ) start [2025-09-09 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15805749', 'tblTempVendorCDR_20' ) end [2025-09-09 00:25:17] Production.INFO: ProcessCDR(1,15805749,1,1,2) [2025-09-09 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15805749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15805749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15805749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15805749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15805749', 'tblTempUsageDetail_20' ) start [2025-09-09 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15805749', 'tblTempUsageDetail_20' ) end [2025-09-09 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-09 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-09 00:25:27] Production.INFO: ==32263== Releasing lock... [2025-09-09 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 00:25:27] Production.INFO: 35.25 MB #Memory Used# [2025-09-09 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 22:25:05 [end_date_ymd] => 2025-09-09 01:25:05 [RateCDR] => 1 ) [2025-09-09 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-09-08 22:25:05' and `end` < '2025-09-09 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-09-09 01:25:17] Production.INFO: count ==353 [2025-09-09 01:25:17] Production.ERROR: pbx CDR StartTime 2025-09-08 22:25:05 - End Time 2025-09-09 01:25:05 [2025-09-09 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15805996', 'tblTempUsageDetail_20' ) start [2025-09-09 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15805996', 'tblTempUsageDetail_20' ) end [2025-09-09 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15805996', 'tblTempVendorCDR_20' ) start [2025-09-09 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15805996', 'tblTempVendorCDR_20' ) end [2025-09-09 01:25:17] Production.INFO: ProcessCDR(1,15805996,1,1,2) [2025-09-09 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15805996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15805996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15805996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15805996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15805996', 'tblTempUsageDetail_20' ) start [2025-09-09 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15805996', 'tblTempUsageDetail_20' ) end [2025-09-09 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-09 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-09 01:25:26] Production.INFO: ==4335== Releasing lock... [2025-09-09 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 01:25:26] Production.INFO: 31.75 MB #Memory Used# [2025-09-09 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-08 23:25:05 [end_date_ymd] => 2025-09-09 02:25:05 [RateCDR] => 1 ) [2025-09-09 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-08 23:25:05' and `end` < '2025-09-09 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-09 02:25:17] Production.INFO: count ==289 [2025-09-09 02:25:17] Production.ERROR: pbx CDR StartTime 2025-09-08 23:25:05 - End Time 2025-09-09 02:25:05 [2025-09-09 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15806243', 'tblTempUsageDetail_20' ) start [2025-09-09 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15806243', 'tblTempUsageDetail_20' ) end [2025-09-09 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15806243', 'tblTempVendorCDR_20' ) start [2025-09-09 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15806243', 'tblTempVendorCDR_20' ) end [2025-09-09 02:25:17] Production.INFO: ProcessCDR(1,15806243,1,1,2) [2025-09-09 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15806243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15806243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15806243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15806243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15806243', 'tblTempUsageDetail_20' ) start [2025-09-09 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15806243', 'tblTempUsageDetail_20' ) end [2025-09-09 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-09 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-09 02:25:25] Production.INFO: ==8657== Releasing lock... [2025-09-09 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 02:25:25] Production.INFO: 31.25 MB #Memory Used# [2025-09-09 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 00:25:05 [end_date_ymd] => 2025-09-09 03:25:05 [RateCDR] => 1 ) [2025-09-09 03: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-09 00:25:05' and `end` < '2025-09-09 03: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-09 03:25:17] Production.INFO: count ==238 [2025-09-09 03:25:17] Production.ERROR: pbx CDR StartTime 2025-09-09 00:25:05 - End Time 2025-09-09 03:25:05 [2025-09-09 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15806490', 'tblTempUsageDetail_20' ) start [2025-09-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15806490', 'tblTempUsageDetail_20' ) end [2025-09-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15806490', 'tblTempVendorCDR_20' ) start [2025-09-09 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15806490', 'tblTempVendorCDR_20' ) end [2025-09-09 03:25:17] Production.INFO: ProcessCDR(1,15806490,1,1,2) [2025-09-09 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15806490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15806490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15806490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15806490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15806490', 'tblTempUsageDetail_20' ) start [2025-09-09 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15806490', 'tblTempUsageDetail_20' ) end [2025-09-09 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-09 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-09 03:25:25] Production.INFO: ==13421== Releasing lock... [2025-09-09 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 03:25:25] Production.INFO: 30.5 MB #Memory Used# [2025-09-09 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 01:25:05 [end_date_ymd] => 2025-09-09 04:25:05 [RateCDR] => 1 ) [2025-09-09 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-09 01:25:05' and `end` < '2025-09-09 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-09 04:25:17] Production.INFO: count ==170 [2025-09-09 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-09 01:25:05 - End Time 2025-09-09 04:25:05 [2025-09-09 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15806738', 'tblTempUsageDetail_20' ) start [2025-09-09 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15806738', 'tblTempUsageDetail_20' ) end [2025-09-09 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15806738', 'tblTempVendorCDR_20' ) start [2025-09-09 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15806738', 'tblTempVendorCDR_20' ) end [2025-09-09 04:25:17] Production.INFO: ProcessCDR(1,15806738,1,1,2) [2025-09-09 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15806738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15806738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15806738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15806738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15806738', 'tblTempUsageDetail_20' ) start [2025-09-09 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15806738', 'tblTempUsageDetail_20' ) end [2025-09-09 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-09 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-09 04:25:25] Production.INFO: ==17679== Releasing lock... [2025-09-09 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 04:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-09-09 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 02:25:05 [end_date_ymd] => 2025-09-09 05:25:05 [RateCDR] => 1 ) [2025-09-09 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-09 02:25:05' and `end` < '2025-09-09 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-09 05:25:17] Production.INFO: count ==162 [2025-09-09 05:25:17] Production.ERROR: pbx CDR StartTime 2025-09-09 02:25:05 - End Time 2025-09-09 05:25:05 [2025-09-09 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15806986', 'tblTempUsageDetail_20' ) start [2025-09-09 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15806986', 'tblTempUsageDetail_20' ) end [2025-09-09 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15806986', 'tblTempVendorCDR_20' ) start [2025-09-09 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15806986', 'tblTempVendorCDR_20' ) end [2025-09-09 05:25:17] Production.INFO: ProcessCDR(1,15806986,1,1,2) [2025-09-09 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15806986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15806986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15806986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15806986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15806986', 'tblTempUsageDetail_20' ) start [2025-09-09 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15806986', 'tblTempUsageDetail_20' ) end [2025-09-09 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-09-09 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-09-09 05:25:22] Production.INFO: ==22009== Releasing lock... [2025-09-09 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 05:25:22] Production.INFO: 29.25 MB #Memory Used# [2025-09-09 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 03:25:05 [end_date_ymd] => 2025-09-09 06:25:05 [RateCDR] => 1 ) [2025-09-09 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-09-09 03:25:05' and `end` < '2025-09-09 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-09-09 06:25:17] Production.INFO: count ==125 [2025-09-09 06:25:17] Production.ERROR: pbx CDR StartTime 2025-09-09 03:25:05 - End Time 2025-09-09 06:25:05 [2025-09-09 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15807233', 'tblTempUsageDetail_20' ) start [2025-09-09 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15807233', 'tblTempUsageDetail_20' ) end [2025-09-09 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15807233', 'tblTempVendorCDR_20' ) start [2025-09-09 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15807233', 'tblTempVendorCDR_20' ) end [2025-09-09 06:25:17] Production.INFO: ProcessCDR(1,15807233,1,1,2) [2025-09-09 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15807233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15807233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15807233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15807233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15807233', 'tblTempUsageDetail_20' ) start [2025-09-09 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15807233', 'tblTempUsageDetail_20' ) end [2025-09-09 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-09 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-09 06:25:24] Production.INFO: ==26517== Releasing lock... [2025-09-09 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 06:25:24] Production.INFO: 29 MB #Memory Used# [2025-09-09 07:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 04:25:04 [end_date_ymd] => 2025-09-09 07:25:04 [RateCDR] => 1 ) [2025-09-09 07: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-09 04:25:04' and `end` < '2025-09-09 07: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-09 07:25:16] Production.INFO: count ==145 [2025-09-09 07:25:16] Production.ERROR: pbx CDR StartTime 2025-09-09 04:25:04 - End Time 2025-09-09 07:25:04 [2025-09-09 07:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15807480', 'tblTempUsageDetail_20' ) start [2025-09-09 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15807480', 'tblTempUsageDetail_20' ) end [2025-09-09 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15807480', 'tblTempVendorCDR_20' ) start [2025-09-09 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15807480', 'tblTempVendorCDR_20' ) end [2025-09-09 07:25:16] Production.INFO: ProcessCDR(1,15807480,1,1,2) [2025-09-09 07:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15807480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15807480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15807480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15807480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15807480', 'tblTempUsageDetail_20' ) start [2025-09-09 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15807480', 'tblTempUsageDetail_20' ) end [2025-09-09 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-09 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-09 07:25:24] Production.INFO: ==31250== Releasing lock... [2025-09-09 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 07:25:24] Production.INFO: 29.5 MB #Memory Used# [2025-09-09 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 05:25:05 [end_date_ymd] => 2025-09-09 08:25:05 [RateCDR] => 1 ) [2025-09-09 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-09 05:25:05' and `end` < '2025-09-09 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-09 08:25:18] Production.INFO: count ==339 [2025-09-09 08:25:18] Production.ERROR: pbx CDR StartTime 2025-09-09 05:25:05 - End Time 2025-09-09 08:25:05 [2025-09-09 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15807727', 'tblTempUsageDetail_20' ) start [2025-09-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15807727', 'tblTempUsageDetail_20' ) end [2025-09-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15807727', 'tblTempVendorCDR_20' ) start [2025-09-09 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15807727', 'tblTempVendorCDR_20' ) end [2025-09-09 08:25:18] Production.INFO: ProcessCDR(1,15807727,1,1,2) [2025-09-09 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15807727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15807727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15807727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15807727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15807727', 'tblTempUsageDetail_20' ) start [2025-09-09 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15807727', 'tblTempUsageDetail_20' ) end [2025-09-09 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-09 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-09 08:25:26] Production.INFO: ==3778== Releasing lock... [2025-09-09 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 08:25:26] Production.INFO: 30.75 MB #Memory Used# [2025-09-09 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 06:25:05 [end_date_ymd] => 2025-09-09 09:25:05 [RateCDR] => 1 ) [2025-09-09 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-09 06:25:05' and `end` < '2025-09-09 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-09 09:25:17] Production.INFO: count ==1145 [2025-09-09 09:25:18] Production.ERROR: pbx CDR StartTime 2025-09-09 06:25:05 - End Time 2025-09-09 09:25:05 [2025-09-09 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15807974', 'tblTempUsageDetail_20' ) start [2025-09-09 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15807974', 'tblTempUsageDetail_20' ) end [2025-09-09 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15807974', 'tblTempVendorCDR_20' ) start [2025-09-09 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15807974', 'tblTempVendorCDR_20' ) end [2025-09-09 09:25:18] Production.INFO: ProcessCDR(1,15807974,1,1,2) [2025-09-09 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15807974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15807974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15807974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15807974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15807974', 'tblTempUsageDetail_20' ) start [2025-09-09 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15807974', 'tblTempUsageDetail_20' ) end [2025-09-09 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-09 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-09 09:25:27] Production.INFO: ==9095== Releasing lock... [2025-09-09 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 09:25:27] Production.INFO: 37 MB #Memory Used# [2025-09-09 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 07:25:05 [end_date_ymd] => 2025-09-09 10:25:05 [RateCDR] => 1 ) [2025-09-09 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-09 07:25:05' and `end` < '2025-09-09 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-09 10:25:19] Production.INFO: count ==2770 [2025-09-09 10:25:20] Production.ERROR: pbx CDR StartTime 2025-09-09 07:25:05 - End Time 2025-09-09 10:25:05 [2025-09-09 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15808221', 'tblTempUsageDetail_20' ) start [2025-09-09 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15808221', 'tblTempUsageDetail_20' ) end [2025-09-09 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15808221', 'tblTempVendorCDR_20' ) start [2025-09-09 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15808221', 'tblTempVendorCDR_20' ) end [2025-09-09 10:25:21] Production.INFO: ProcessCDR(1,15808221,1,1,2) [2025-09-09 10:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15808221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15808221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15808221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 10:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15808221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15808221', 'tblTempUsageDetail_20' ) start [2025-09-09 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15808221', 'tblTempUsageDetail_20' ) end [2025-09-09 10:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-09 10:25:31] Production.ERROR: pbx prc_insertCDR end [2025-09-09 10:25:31] Production.INFO: ==14013== Releasing lock... [2025-09-09 10:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 10:25:31] Production.INFO: 49.25 MB #Memory Used# [2025-09-09 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 08:25:06 [end_date_ymd] => 2025-09-09 11:25:06 [RateCDR] => 1 ) [2025-09-09 11: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-09 08:25:06' and `end` < '2025-09-09 11: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-09 11:25:19] Production.INFO: count ==4342 [2025-09-09 11:25:21] Production.ERROR: pbx CDR StartTime 2025-09-09 08:25:06 - End Time 2025-09-09 11:25:06 [2025-09-09 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15808468', 'tblTempUsageDetail_20' ) start [2025-09-09 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15808468', 'tblTempUsageDetail_20' ) end [2025-09-09 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15808468', 'tblTempVendorCDR_20' ) start [2025-09-09 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15808468', 'tblTempVendorCDR_20' ) end [2025-09-09 11:25:21] Production.INFO: ProcessCDR(1,15808468,1,1,2) [2025-09-09 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15808468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15808468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15808468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15808468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15808468', 'tblTempUsageDetail_20' ) start [2025-09-09 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15808468', 'tblTempUsageDetail_20' ) end [2025-09-09 11:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-09 11:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-09 11:25:36] Production.INFO: ==18459== Releasing lock... [2025-09-09 11:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 11:25:36] Production.INFO: 60.75 MB #Memory Used# [2025-09-09 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 09:25:05 [end_date_ymd] => 2025-09-09 12:25:05 [RateCDR] => 1 ) [2025-09-09 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-09 09:25:05' and `end` < '2025-09-09 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-09 12:25:18] Production.INFO: count ==5236 [2025-09-09 12:25:20] Production.ERROR: pbx CDR StartTime 2025-09-09 09:25:05 - End Time 2025-09-09 12:25:05 [2025-09-09 12:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15808715', 'tblTempUsageDetail_20' ) start [2025-09-09 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15808715', 'tblTempUsageDetail_20' ) end [2025-09-09 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15808715', 'tblTempVendorCDR_20' ) start [2025-09-09 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15808715', 'tblTempVendorCDR_20' ) end [2025-09-09 12:25:21] Production.INFO: ProcessCDR(1,15808715,1,1,2) [2025-09-09 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15808715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15808715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15808715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 12:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15808715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15808715', 'tblTempUsageDetail_20' ) start [2025-09-09 12:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15808715', 'tblTempUsageDetail_20' ) end [2025-09-09 12:25:30] Production.ERROR: pbx prc_insertCDR start [2025-09-09 12:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-09 12:25:32] Production.INFO: ==23435== Releasing lock... [2025-09-09 12:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 12:25:32] Production.INFO: 67.5 MB #Memory Used# [2025-09-09 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 10:25:06 [end_date_ymd] => 2025-09-09 13:25:06 [RateCDR] => 1 ) [2025-09-09 13: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-09 10:25:06' and `end` < '2025-09-09 13: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-09 13:25:21] Production.INFO: count ==5254 [2025-09-09 13:25:23] Production.ERROR: pbx CDR StartTime 2025-09-09 10:25:06 - End Time 2025-09-09 13:25:06 [2025-09-09 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15808962', 'tblTempUsageDetail_20' ) start [2025-09-09 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15808962', 'tblTempUsageDetail_20' ) end [2025-09-09 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15808962', 'tblTempVendorCDR_20' ) start [2025-09-09 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15808962', 'tblTempVendorCDR_20' ) end [2025-09-09 13:25:24] Production.INFO: ProcessCDR(1,15808962,1,1,2) [2025-09-09 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15808962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 13:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15808962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 13:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15808962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 13:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15808962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 13:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15808962', 'tblTempUsageDetail_20' ) start [2025-09-09 13:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15808962', 'tblTempUsageDetail_20' ) end [2025-09-09 13:25:34] Production.ERROR: pbx prc_insertCDR start [2025-09-09 13:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-09 13:25:36] Production.INFO: ==28058== Releasing lock... [2025-09-09 13:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 13:25:36] Production.INFO: 67.5 MB #Memory Used# [2025-09-09 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 11:25:05 [end_date_ymd] => 2025-09-09 14:25:05 [RateCDR] => 1 ) [2025-09-09 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-09 11:25:05' and `end` < '2025-09-09 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-09 14:25:21] Production.INFO: count ==5476 [2025-09-09 14:25:23] Production.ERROR: pbx CDR StartTime 2025-09-09 11:25:05 - End Time 2025-09-09 14:25:05 [2025-09-09 14:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15809209', 'tblTempUsageDetail_20' ) start [2025-09-09 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15809209', 'tblTempUsageDetail_20' ) end [2025-09-09 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15809209', 'tblTempVendorCDR_20' ) start [2025-09-09 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15809209', 'tblTempVendorCDR_20' ) end [2025-09-09 14:25:24] Production.INFO: ProcessCDR(1,15809209,1,1,2) [2025-09-09 14:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15809209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 14:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15809209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 14:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15809209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 14:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15809209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 14:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15809209', 'tblTempUsageDetail_20' ) start [2025-09-09 14:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15809209', 'tblTempUsageDetail_20' ) end [2025-09-09 14:25:34] Production.ERROR: pbx prc_insertCDR start [2025-09-09 14:25:37] Production.ERROR: pbx prc_insertCDR end [2025-09-09 14:25:37] Production.INFO: ==32568== Releasing lock... [2025-09-09 14:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 14:25:37] Production.INFO: 69.25 MB #Memory Used# [2025-09-09 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 12:25:05 [end_date_ymd] => 2025-09-09 15:25:05 [RateCDR] => 1 ) [2025-09-09 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-09-09 12:25:05' and `end` < '2025-09-09 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-09-09 15:25:18] Production.INFO: count ==5412 [2025-09-09 15:25:21] Production.ERROR: pbx CDR StartTime 2025-09-09 12:25:05 - End Time 2025-09-09 15:25:05 [2025-09-09 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15809456', 'tblTempUsageDetail_20' ) start [2025-09-09 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15809456', 'tblTempUsageDetail_20' ) end [2025-09-09 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15809456', 'tblTempVendorCDR_20' ) start [2025-09-09 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15809456', 'tblTempVendorCDR_20' ) end [2025-09-09 15:25:22] Production.INFO: ProcessCDR(1,15809456,1,1,2) [2025-09-09 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15809456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15809456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15809456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15809456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15809456', 'tblTempUsageDetail_20' ) start [2025-09-09 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15809456', 'tblTempUsageDetail_20' ) end [2025-09-09 15:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-09 15:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-09 15:25:35] Production.INFO: ==4707== Releasing lock... [2025-09-09 15:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 15:25:35] Production.INFO: 68.75 MB #Memory Used# [2025-09-09 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 13:25:05 [end_date_ymd] => 2025-09-09 16:25:05 [RateCDR] => 1 ) [2025-09-09 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-09 13:25:05' and `end` < '2025-09-09 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-09 16:25:19] Production.INFO: count ==5526 [2025-09-09 16:25:21] Production.ERROR: pbx CDR StartTime 2025-09-09 13:25:05 - End Time 2025-09-09 16:25:05 [2025-09-09 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15809703', 'tblTempUsageDetail_20' ) start [2025-09-09 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15809703', 'tblTempUsageDetail_20' ) end [2025-09-09 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15809703', 'tblTempVendorCDR_20' ) start [2025-09-09 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15809703', 'tblTempVendorCDR_20' ) end [2025-09-09 16:25:22] Production.INFO: ProcessCDR(1,15809703,1,1,2) [2025-09-09 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15809703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15809703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15809703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15809703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15809703', 'tblTempUsageDetail_20' ) start [2025-09-09 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15809703', 'tblTempUsageDetail_20' ) end [2025-09-09 16:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-09 16:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-09 16:25:33] Production.INFO: ==9367== Releasing lock... [2025-09-09 16:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 16:25:33] Production.INFO: 69.5 MB #Memory Used# [2025-09-09 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 14:25:05 [end_date_ymd] => 2025-09-09 17:25:05 [RateCDR] => 1 ) [2025-09-09 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-09-09 14:25:05' and `end` < '2025-09-09 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-09-09 17:25:18] Production.INFO: count ==5105 [2025-09-09 17:25:21] Production.ERROR: pbx CDR StartTime 2025-09-09 14:25:05 - End Time 2025-09-09 17:25:05 [2025-09-09 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15809950', 'tblTempUsageDetail_20' ) start [2025-09-09 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15809950', 'tblTempUsageDetail_20' ) end [2025-09-09 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15809950', 'tblTempVendorCDR_20' ) start [2025-09-09 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15809950', 'tblTempVendorCDR_20' ) end [2025-09-09 17:25:21] Production.INFO: ProcessCDR(1,15809950,1,1,2) [2025-09-09 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15809950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15809950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15809950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15809950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15809950', 'tblTempUsageDetail_20' ) start [2025-09-09 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15809950', 'tblTempUsageDetail_20' ) end [2025-09-09 17:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-09 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-09 17:25:32] Production.INFO: ==13957== Releasing lock... [2025-09-09 17:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 17:25:32] Production.INFO: 66.5 MB #Memory Used# [2025-09-09 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 15:25:05 [end_date_ymd] => 2025-09-09 18:25:05 [RateCDR] => 1 ) [2025-09-09 18: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-09 15:25:05' and `end` < '2025-09-09 18: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-09 18:25:18] Production.INFO: count ==4462 [2025-09-09 18:25:20] Production.ERROR: pbx CDR StartTime 2025-09-09 15:25:05 - End Time 2025-09-09 18:25:05 [2025-09-09 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15810197', 'tblTempUsageDetail_20' ) start [2025-09-09 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15810197', 'tblTempUsageDetail_20' ) end [2025-09-09 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15810197', 'tblTempVendorCDR_20' ) start [2025-09-09 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15810197', 'tblTempVendorCDR_20' ) end [2025-09-09 18:25:20] Production.INFO: ProcessCDR(1,15810197,1,1,2) [2025-09-09 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15810197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15810197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15810197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15810197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15810197', 'tblTempUsageDetail_20' ) start [2025-09-09 18:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15810197', 'tblTempUsageDetail_20' ) end [2025-09-09 18:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-09 18:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-09 18:25:37] Production.INFO: ==18552== Releasing lock... [2025-09-09 18:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 18:25:37] Production.INFO: 61.5 MB #Memory Used# [2025-09-09 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 16:25:06 [end_date_ymd] => 2025-09-09 19:25:06 [RateCDR] => 1 ) [2025-09-09 19: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-09 16:25:06' and `end` < '2025-09-09 19: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-09 19:25:19] Production.INFO: count ==3535 [2025-09-09 19:25:21] Production.ERROR: pbx CDR StartTime 2025-09-09 16:25:06 - End Time 2025-09-09 19:25:06 [2025-09-09 19:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15810441', 'tblTempUsageDetail_20' ) start [2025-09-09 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15810441', 'tblTempUsageDetail_20' ) end [2025-09-09 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15810441', 'tblTempVendorCDR_20' ) start [2025-09-09 19:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15810441', 'tblTempVendorCDR_20' ) end [2025-09-09 19:25:21] Production.INFO: ProcessCDR(1,15810441,1,1,2) [2025-09-09 19:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15810441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 19:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15810441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 19:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15810441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 19:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15810441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15810441', 'tblTempUsageDetail_20' ) start [2025-09-09 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15810441', 'tblTempUsageDetail_20' ) end [2025-09-09 19:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-09 19:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-09 19:25:30] Production.INFO: ==23146== Releasing lock... [2025-09-09 19:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 19:25:30] Production.INFO: 54.5 MB #Memory Used# [2025-09-09 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 17:25:05 [end_date_ymd] => 2025-09-09 20:25:05 [RateCDR] => 1 ) [2025-09-09 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-09 17:25:05' and `end` < '2025-09-09 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-09 20:25:17] Production.INFO: count ==2487 [2025-09-09 20:25:18] Production.ERROR: pbx CDR StartTime 2025-09-09 17:25:05 - End Time 2025-09-09 20:25:05 [2025-09-09 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15810688', 'tblTempUsageDetail_20' ) start [2025-09-09 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15810688', 'tblTempUsageDetail_20' ) end [2025-09-09 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15810688', 'tblTempVendorCDR_20' ) start [2025-09-09 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15810688', 'tblTempVendorCDR_20' ) end [2025-09-09 20:25:18] Production.INFO: ProcessCDR(1,15810688,1,1,2) [2025-09-09 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15810688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15810688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15810688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15810688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15810688', 'tblTempUsageDetail_20' ) start [2025-09-09 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15810688', 'tblTempUsageDetail_20' ) end [2025-09-09 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-09 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-09 20:25:27] Production.INFO: ==27695== Releasing lock... [2025-09-09 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 20:25:27] Production.INFO: 46.75 MB #Memory Used# [2025-09-09 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 18:25:05 [end_date_ymd] => 2025-09-09 21:25:05 [RateCDR] => 1 ) [2025-09-09 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-09 18:25:05' and `end` < '2025-09-09 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-09 21:25:17] Production.INFO: count ==1761 [2025-09-09 21:25:18] Production.ERROR: pbx CDR StartTime 2025-09-09 18:25:05 - End Time 2025-09-09 21:25:05 [2025-09-09 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15810935', 'tblTempUsageDetail_20' ) start [2025-09-09 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15810935', 'tblTempUsageDetail_20' ) end [2025-09-09 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15810935', 'tblTempVendorCDR_20' ) start [2025-09-09 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15810935', 'tblTempVendorCDR_20' ) end [2025-09-09 21:25:18] Production.INFO: ProcessCDR(1,15810935,1,1,2) [2025-09-09 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15810935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15810935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15810935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15810935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15810935', 'tblTempUsageDetail_20' ) start [2025-09-09 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15810935', 'tblTempUsageDetail_20' ) end [2025-09-09 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-09 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-09 21:25:26] Production.INFO: ==32362== Releasing lock... [2025-09-09 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 21:25:26] Production.INFO: 41.25 MB #Memory Used# [2025-09-09 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 19:25:05 [end_date_ymd] => 2025-09-09 22:25:05 [RateCDR] => 1 ) [2025-09-09 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-09-09 19:25:05' and `end` < '2025-09-09 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-09-09 22:25:18] Production.INFO: count ==1248 [2025-09-09 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-09 19:25:05 - End Time 2025-09-09 22:25:05 [2025-09-09 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15811182', 'tblTempUsageDetail_20' ) start [2025-09-09 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15811182', 'tblTempUsageDetail_20' ) end [2025-09-09 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15811182', 'tblTempVendorCDR_20' ) start [2025-09-09 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15811182', 'tblTempVendorCDR_20' ) end [2025-09-09 22:25:18] Production.INFO: ProcessCDR(1,15811182,1,1,2) [2025-09-09 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15811182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15811182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15811182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15811182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15811182', 'tblTempUsageDetail_20' ) start [2025-09-09 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15811182', 'tblTempUsageDetail_20' ) end [2025-09-09 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-09 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-09 22:25:26] Production.INFO: ==5799== Releasing lock... [2025-09-09 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 22:25:26] Production.INFO: 38.25 MB #Memory Used# [2025-09-09 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-09 20:25:05 [end_date_ymd] => 2025-09-09 23:25:05 [RateCDR] => 1 ) [2025-09-09 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-09 20:25:05' and `end` < '2025-09-09 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-09 23:25:18] Production.INFO: count ==915 [2025-09-09 23:25:18] Production.ERROR: pbx CDR StartTime 2025-09-09 20:25:05 - End Time 2025-09-09 23:25:05 [2025-09-09 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15811429', 'tblTempUsageDetail_20' ) start [2025-09-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15811429', 'tblTempUsageDetail_20' ) end [2025-09-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15811429', 'tblTempVendorCDR_20' ) start [2025-09-09 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15811429', 'tblTempVendorCDR_20' ) end [2025-09-09 23:25:18] Production.INFO: ProcessCDR(1,15811429,1,1,2) [2025-09-09 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15811429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15811429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-09 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15811429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15811429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-09 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15811429', 'tblTempUsageDetail_20' ) start [2025-09-09 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15811429', 'tblTempUsageDetail_20' ) end [2025-09-09 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-09 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-09 23:25:26] Production.INFO: ==10805== Releasing lock... [2025-09-09 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-09 23:25:26] Production.INFO: 35.25 MB #Memory Used#