[2025-07-02 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 21:25:05 [end_date_ymd] => 2025-07-02 00:25:05 [RateCDR] => 1 ) [2025-07-02 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-07-01 21:25:05' and `end` < '2025-07-02 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-07-02 00:25:17] Production.INFO: count ==772 [2025-07-02 00:25:17] Production.ERROR: pbx CDR StartTime 2025-07-01 21:25:05 - End Time 2025-07-02 00:25:05 [2025-07-02 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15396776', 'tblTempUsageDetail_20' ) start [2025-07-02 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15396776', 'tblTempUsageDetail_20' ) end [2025-07-02 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15396776', 'tblTempVendorCDR_20' ) start [2025-07-02 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15396776', 'tblTempVendorCDR_20' ) end [2025-07-02 00:25:17] Production.INFO: ProcessCDR(1,15396776,1,1,2) [2025-07-02 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15396776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15396776,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15396776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 00:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15396776,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15396776', 'tblTempUsageDetail_20' ) start [2025-07-02 00:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15396776', 'tblTempUsageDetail_20' ) end [2025-07-02 00:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-02 00:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-02 00:25:25] Production.INFO: ==28931== Releasing lock... [2025-07-02 00:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 00:25:25] Production.INFO: 36.75 MB #Memory Used# [2025-07-02 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 22:25:05 [end_date_ymd] => 2025-07-02 01:25:05 [RateCDR] => 1 ) [2025-07-02 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-07-01 22:25:05' and `end` < '2025-07-02 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-07-02 01:25:18] Production.INFO: count ==933 [2025-07-02 01:25:18] Production.ERROR: pbx CDR StartTime 2025-07-01 22:25:05 - End Time 2025-07-02 01:25:05 [2025-07-02 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15397023', 'tblTempUsageDetail_20' ) start [2025-07-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15397023', 'tblTempUsageDetail_20' ) end [2025-07-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15397023', 'tblTempVendorCDR_20' ) start [2025-07-02 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15397023', 'tblTempVendorCDR_20' ) end [2025-07-02 01:25:18] Production.INFO: ProcessCDR(1,15397023,1,1,2) [2025-07-02 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15397023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15397023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15397023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15397023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15397023', 'tblTempUsageDetail_20' ) start [2025-07-02 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15397023', 'tblTempUsageDetail_20' ) end [2025-07-02 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-02 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-02 01:25:25] Production.INFO: ==1254== Releasing lock... [2025-07-02 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 01:25:25] Production.INFO: 35.75 MB #Memory Used# [2025-07-02 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-01 23:25:05 [end_date_ymd] => 2025-07-02 02:25:05 [RateCDR] => 1 ) [2025-07-02 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-07-01 23:25:05' and `end` < '2025-07-02 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-07-02 02:25:17] Production.INFO: count ==805 [2025-07-02 02:25:17] Production.ERROR: pbx CDR StartTime 2025-07-01 23:25:05 - End Time 2025-07-02 02:25:05 [2025-07-02 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15397270', 'tblTempUsageDetail_20' ) start [2025-07-02 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15397270', 'tblTempUsageDetail_20' ) end [2025-07-02 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15397270', 'tblTempVendorCDR_20' ) start [2025-07-02 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15397270', 'tblTempVendorCDR_20' ) end [2025-07-02 02:25:17] Production.INFO: ProcessCDR(1,15397270,1,1,2) [2025-07-02 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15397270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 02:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15397270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 02:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15397270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 02:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15397270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 02:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15397270', 'tblTempUsageDetail_20' ) start [2025-07-02 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15397270', 'tblTempUsageDetail_20' ) end [2025-07-02 02:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-02 02:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-02 02:25:24] Production.INFO: ==6217== Releasing lock... [2025-07-02 02:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 02:25:24] Production.INFO: 34 MB #Memory Used# [2025-07-02 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 00:25:05 [end_date_ymd] => 2025-07-02 03:25:05 [RateCDR] => 1 ) [2025-07-02 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-07-02 00:25:05' and `end` < '2025-07-02 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-07-02 03:25:17] Production.INFO: count ==748 [2025-07-02 03:25:17] Production.ERROR: pbx CDR StartTime 2025-07-02 00:25:05 - End Time 2025-07-02 03:25:05 [2025-07-02 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15397517', 'tblTempUsageDetail_20' ) start [2025-07-02 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15397517', 'tblTempUsageDetail_20' ) end [2025-07-02 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15397517', 'tblTempVendorCDR_20' ) start [2025-07-02 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15397517', 'tblTempVendorCDR_20' ) end [2025-07-02 03:25:17] Production.INFO: ProcessCDR(1,15397517,1,1,2) [2025-07-02 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15397517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15397517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15397517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15397517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15397517', 'tblTempUsageDetail_20' ) start [2025-07-02 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15397517', 'tblTempUsageDetail_20' ) end [2025-07-02 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-02 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-02 03:25:23] Production.INFO: ==10820== Releasing lock... [2025-07-02 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 03:25:23] Production.INFO: 34.25 MB #Memory Used# [2025-07-02 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 01:25:05 [end_date_ymd] => 2025-07-02 04:25:05 [RateCDR] => 1 ) [2025-07-02 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-07-02 01:25:05' and `end` < '2025-07-02 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-07-02 04:25:17] Production.INFO: count ==387 [2025-07-02 04:25:17] Production.ERROR: pbx CDR StartTime 2025-07-02 01:25:05 - End Time 2025-07-02 04:25:05 [2025-07-02 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15397765', 'tblTempUsageDetail_20' ) start [2025-07-02 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15397765', 'tblTempUsageDetail_20' ) end [2025-07-02 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15397765', 'tblTempVendorCDR_20' ) start [2025-07-02 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15397765', 'tblTempVendorCDR_20' ) end [2025-07-02 04:25:17] Production.INFO: ProcessCDR(1,15397765,1,1,2) [2025-07-02 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15397765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15397765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15397765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15397765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15397765', 'tblTempUsageDetail_20' ) start [2025-07-02 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15397765', 'tblTempUsageDetail_20' ) end [2025-07-02 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-02 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-07-02 04:25:23] Production.INFO: ==16379== Releasing lock... [2025-07-02 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 04:25:23] Production.INFO: 31.25 MB #Memory Used# [2025-07-02 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 02:25:05 [end_date_ymd] => 2025-07-02 05:25:05 [RateCDR] => 1 ) [2025-07-02 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-07-02 02:25:05' and `end` < '2025-07-02 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-07-02 05:25:18] Production.INFO: count ==235 [2025-07-02 05:25:18] Production.ERROR: pbx CDR StartTime 2025-07-02 02:25:05 - End Time 2025-07-02 05:25:05 [2025-07-02 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15398013', 'tblTempUsageDetail_20' ) start [2025-07-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15398013', 'tblTempUsageDetail_20' ) end [2025-07-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15398013', 'tblTempVendorCDR_20' ) start [2025-07-02 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15398013', 'tblTempVendorCDR_20' ) end [2025-07-02 05:25:18] Production.INFO: ProcessCDR(1,15398013,1,1,2) [2025-07-02 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15398013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15398013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15398013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15398013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15398013', 'tblTempUsageDetail_20' ) start [2025-07-02 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15398013', 'tblTempUsageDetail_20' ) end [2025-07-02 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-02 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-02 05:25:24] Production.INFO: ==20733== Releasing lock... [2025-07-02 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 05:25:24] Production.INFO: 30.25 MB #Memory Used# [2025-07-02 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 03:25:05 [end_date_ymd] => 2025-07-02 06:25:05 [RateCDR] => 1 ) [2025-07-02 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-07-02 03:25:05' and `end` < '2025-07-02 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-07-02 06:25:17] Production.INFO: count ==120 [2025-07-02 06:25:17] Production.ERROR: pbx CDR StartTime 2025-07-02 03:25:05 - End Time 2025-07-02 06:25:05 [2025-07-02 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15398260', 'tblTempUsageDetail_20' ) start [2025-07-02 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15398260', 'tblTempUsageDetail_20' ) end [2025-07-02 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15398260', 'tblTempVendorCDR_20' ) start [2025-07-02 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15398260', 'tblTempVendorCDR_20' ) end [2025-07-02 06:25:18] Production.INFO: ProcessCDR(1,15398260,1,1,2) [2025-07-02 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15398260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15398260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15398260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15398260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15398260', 'tblTempUsageDetail_20' ) start [2025-07-02 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15398260', 'tblTempUsageDetail_20' ) end [2025-07-02 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-07-02 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-02 06:25:24] Production.INFO: ==25117== Releasing lock... [2025-07-02 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 06:25:24] Production.INFO: 29 MB #Memory Used# [2025-07-02 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 04:25:06 [end_date_ymd] => 2025-07-02 07:25:06 [RateCDR] => 1 ) [2025-07-02 07: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-07-02 04:25:06' and `end` < '2025-07-02 07: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-07-02 07:25:18] Production.INFO: count ==125 [2025-07-02 07:25:18] Production.ERROR: pbx CDR StartTime 2025-07-02 04:25:06 - End Time 2025-07-02 07:25:06 [2025-07-02 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15398507', 'tblTempUsageDetail_20' ) start [2025-07-02 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15398507', 'tblTempUsageDetail_20' ) end [2025-07-02 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15398507', 'tblTempVendorCDR_20' ) start [2025-07-02 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15398507', 'tblTempVendorCDR_20' ) end [2025-07-02 07:25:18] Production.INFO: ProcessCDR(1,15398507,1,1,2) [2025-07-02 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15398507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15398507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15398507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15398507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15398507', 'tblTempUsageDetail_20' ) start [2025-07-02 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15398507', 'tblTempUsageDetail_20' ) end [2025-07-02 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-02 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-02 07:25:24] Production.INFO: ==29506== Releasing lock... [2025-07-02 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 07:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-07-02 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 05:25:06 [end_date_ymd] => 2025-07-02 08:25:06 [RateCDR] => 1 ) [2025-07-02 08:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-02 05:25:06' and `end` < '2025-07-02 08:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-02 08:25:18] Production.INFO: count ==491 [2025-07-02 08:25:18] Production.ERROR: pbx CDR StartTime 2025-07-02 05:25:06 - End Time 2025-07-02 08:25:06 [2025-07-02 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15398754', 'tblTempUsageDetail_20' ) start [2025-07-02 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15398754', 'tblTempUsageDetail_20' ) end [2025-07-02 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15398754', 'tblTempVendorCDR_20' ) start [2025-07-02 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15398754', 'tblTempVendorCDR_20' ) end [2025-07-02 08:25:18] Production.INFO: ProcessCDR(1,15398754,1,1,2) [2025-07-02 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15398754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15398754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15398754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15398754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15398754', 'tblTempUsageDetail_20' ) start [2025-07-02 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15398754', 'tblTempUsageDetail_20' ) end [2025-07-02 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-02 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-02 08:25:25] Production.INFO: ==1673== Releasing lock... [2025-07-02 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 08:25:25] Production.INFO: 32 MB #Memory Used# [2025-07-02 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 06:25:05 [end_date_ymd] => 2025-07-02 09:25:05 [RateCDR] => 1 ) [2025-07-02 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-07-02 06:25:05' and `end` < '2025-07-02 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-07-02 09:25:18] Production.INFO: count ==1612 [2025-07-02 09:25:19] Production.ERROR: pbx CDR StartTime 2025-07-02 06:25:05 - End Time 2025-07-02 09:25:05 [2025-07-02 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15399001', 'tblTempUsageDetail_20' ) start [2025-07-02 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15399001', 'tblTempUsageDetail_20' ) end [2025-07-02 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15399001', 'tblTempVendorCDR_20' ) start [2025-07-02 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15399001', 'tblTempVendorCDR_20' ) end [2025-07-02 09:25:19] Production.INFO: ProcessCDR(1,15399001,1,1,2) [2025-07-02 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15399001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15399001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15399001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15399001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15399001', 'tblTempUsageDetail_20' ) start [2025-07-02 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15399001', 'tblTempUsageDetail_20' ) end [2025-07-02 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-02 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-02 09:25:27] Production.INFO: ==6085== Releasing lock... [2025-07-02 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 09:25:27] Production.INFO: 40.25 MB #Memory Used# [2025-07-02 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 07:25:04 [end_date_ymd] => 2025-07-02 10:25:04 [RateCDR] => 1 ) [2025-07-02 10: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-07-02 07:25:04' and `end` < '2025-07-02 10: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-07-02 10:25:18] Production.INFO: count ==3627 [2025-07-02 10:25:20] Production.ERROR: pbx CDR StartTime 2025-07-02 07:25:04 - End Time 2025-07-02 10:25:04 [2025-07-02 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15399248', 'tblTempUsageDetail_20' ) start [2025-07-02 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15399248', 'tblTempUsageDetail_20' ) end [2025-07-02 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15399248', 'tblTempVendorCDR_20' ) start [2025-07-02 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15399248', 'tblTempVendorCDR_20' ) end [2025-07-02 10:25:20] Production.INFO: ProcessCDR(1,15399248,1,1,2) [2025-07-02 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15399248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 10:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15399248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 10:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15399248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15399248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15399248', 'tblTempUsageDetail_20' ) start [2025-07-02 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15399248', 'tblTempUsageDetail_20' ) end [2025-07-02 10:25:28] Production.ERROR: pbx prc_insertCDR start [2025-07-02 10:25:30] Production.ERROR: pbx prc_insertCDR end [2025-07-02 10:25:30] Production.INFO: ==10509== Releasing lock... [2025-07-02 10:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 10:25:30] Production.INFO: 55.25 MB #Memory Used# [2025-07-02 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 08:25:05 [end_date_ymd] => 2025-07-02 11:25:05 [RateCDR] => 1 ) [2025-07-02 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-02 08:25:05' and `end` < '2025-07-02 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-02 11:25:21] Production.INFO: count ==5261 [2025-07-02 11:25:23] Production.ERROR: pbx CDR StartTime 2025-07-02 08:25:05 - End Time 2025-07-02 11:25:05 [2025-07-02 11:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15399495', 'tblTempUsageDetail_20' ) start [2025-07-02 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15399495', 'tblTempUsageDetail_20' ) end [2025-07-02 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15399495', 'tblTempVendorCDR_20' ) start [2025-07-02 11:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15399495', 'tblTempVendorCDR_20' ) end [2025-07-02 11:25:24] Production.INFO: ProcessCDR(1,15399495,1,1,2) [2025-07-02 11:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15399495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 11:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15399495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 11:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15399495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 11:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15399495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15399495', 'tblTempUsageDetail_20' ) start [2025-07-02 11:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15399495', 'tblTempUsageDetail_20' ) end [2025-07-02 11:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-02 11:25:36] Production.ERROR: pbx prc_insertCDR end [2025-07-02 11:25:36] Production.INFO: ==15098== Releasing lock... [2025-07-02 11:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 11:25:36] Production.INFO: 67.5 MB #Memory Used# [2025-07-02 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 09:25:05 [end_date_ymd] => 2025-07-02 12:25:05 [RateCDR] => 1 ) [2025-07-02 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-07-02 09:25:05' and `end` < '2025-07-02 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-07-02 12:25:20] Production.INFO: count ==6306 [2025-07-02 12:25:23] Production.ERROR: pbx CDR StartTime 2025-07-02 09:25:05 - End Time 2025-07-02 12:25:05 [2025-07-02 12:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15399742', 'tblTempUsageDetail_20' ) start [2025-07-02 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15399742', 'tblTempUsageDetail_20' ) end [2025-07-02 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15399742', 'tblTempVendorCDR_20' ) start [2025-07-02 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15399742', 'tblTempVendorCDR_20' ) end [2025-07-02 12:25:24] Production.INFO: ProcessCDR(1,15399742,1,1,2) [2025-07-02 12:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15399742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 12:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15399742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 12:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15399742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 12:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15399742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15399742', 'tblTempUsageDetail_20' ) start [2025-07-02 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15399742', 'tblTempUsageDetail_20' ) end [2025-07-02 12:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-02 12:25:35] Production.ERROR: pbx prc_insertCDR end [2025-07-02 12:25:36] Production.INFO: ==19468== Releasing lock... [2025-07-02 12:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 12:25:36] Production.INFO: 75.5 MB #Memory Used# [2025-07-02 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 10:25:05 [end_date_ymd] => 2025-07-02 13:25:05 [RateCDR] => 1 ) [2025-07-02 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-07-02 10:25:05' and `end` < '2025-07-02 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-07-02 13:25:22] Production.INFO: count ==6046 [2025-07-02 13:25:25] Production.ERROR: pbx CDR StartTime 2025-07-02 10:25:05 - End Time 2025-07-02 13:25:05 [2025-07-02 13:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15399989', 'tblTempUsageDetail_20' ) start [2025-07-02 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15399989', 'tblTempUsageDetail_20' ) end [2025-07-02 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15399989', 'tblTempVendorCDR_20' ) start [2025-07-02 13:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15399989', 'tblTempVendorCDR_20' ) end [2025-07-02 13:25:25] Production.INFO: ProcessCDR(1,15399989,1,1,2) [2025-07-02 13:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15399989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 13:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15399989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 13:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15399989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 13:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15399989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15399989', 'tblTempUsageDetail_20' ) start [2025-07-02 13:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15399989', 'tblTempUsageDetail_20' ) end [2025-07-02 13:25:33] Production.ERROR: pbx prc_insertCDR start [2025-07-02 13:25:35] Production.ERROR: pbx prc_insertCDR end [2025-07-02 13:25:35] Production.INFO: ==23889== Releasing lock... [2025-07-02 13:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 13:25:35] Production.INFO: 73.5 MB #Memory Used# [2025-07-02 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 11:25:05 [end_date_ymd] => 2025-07-02 14:25:05 [RateCDR] => 1 ) [2025-07-02 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-07-02 11:25:05' and `end` < '2025-07-02 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-07-02 14:25:19] Production.INFO: count ==5938 [2025-07-02 14:25:22] Production.ERROR: pbx CDR StartTime 2025-07-02 11:25:05 - End Time 2025-07-02 14:25:05 [2025-07-02 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15400236', 'tblTempUsageDetail_20' ) start [2025-07-02 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15400236', 'tblTempUsageDetail_20' ) end [2025-07-02 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15400236', 'tblTempVendorCDR_20' ) start [2025-07-02 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15400236', 'tblTempVendorCDR_20' ) end [2025-07-02 14:25:22] Production.INFO: ProcessCDR(1,15400236,1,1,2) [2025-07-02 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15400236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15400236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15400236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 14:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15400236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15400236', 'tblTempUsageDetail_20' ) start [2025-07-02 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15400236', 'tblTempUsageDetail_20' ) end [2025-07-02 14:25:31] Production.ERROR: pbx prc_insertCDR start [2025-07-02 14:25:33] Production.ERROR: pbx prc_insertCDR end [2025-07-02 14:25:33] Production.INFO: ==28537== Releasing lock... [2025-07-02 14:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 14:25:33] Production.INFO: 72.75 MB #Memory Used# [2025-07-02 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 12:25:05 [end_date_ymd] => 2025-07-02 15:25:05 [RateCDR] => 1 ) [2025-07-02 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-07-02 12:25:05' and `end` < '2025-07-02 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-07-02 15:25:20] Production.INFO: count ==6298 [2025-07-02 15:25:23] Production.ERROR: pbx CDR StartTime 2025-07-02 12:25:05 - End Time 2025-07-02 15:25:05 [2025-07-02 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15400483', 'tblTempUsageDetail_20' ) start [2025-07-02 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15400483', 'tblTempUsageDetail_20' ) end [2025-07-02 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15400483', 'tblTempVendorCDR_20' ) start [2025-07-02 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15400483', 'tblTempVendorCDR_20' ) end [2025-07-02 15:25:24] Production.INFO: ProcessCDR(1,15400483,1,1,2) [2025-07-02 15:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15400483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 15:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15400483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 15:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15400483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15400483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15400483', 'tblTempUsageDetail_20' ) start [2025-07-02 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15400483', 'tblTempUsageDetail_20' ) end [2025-07-02 15:25:32] Production.ERROR: pbx prc_insertCDR start [2025-07-02 15:25:36] Production.ERROR: pbx prc_insertCDR end [2025-07-02 15:25:36] Production.INFO: ==1031== Releasing lock... [2025-07-02 15:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 15:25:36] Production.INFO: 75.5 MB #Memory Used# [2025-07-02 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 13:25:05 [end_date_ymd] => 2025-07-02 16:25:05 [RateCDR] => 1 ) [2025-07-02 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-07-02 13:25:05' and `end` < '2025-07-02 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-07-02 16:25:19] Production.INFO: count ==6592 [2025-07-02 16:25:22] Production.ERROR: pbx CDR StartTime 2025-07-02 13:25:05 - End Time 2025-07-02 16:25:05 [2025-07-02 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15400730', 'tblTempUsageDetail_20' ) start [2025-07-02 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15400730', 'tblTempUsageDetail_20' ) end [2025-07-02 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15400730', 'tblTempVendorCDR_20' ) start [2025-07-02 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15400730', 'tblTempVendorCDR_20' ) end [2025-07-02 16:25:22] Production.INFO: ProcessCDR(1,15400730,1,1,2) [2025-07-02 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15400730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15400730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15400730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15400730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15400730', 'tblTempUsageDetail_20' ) start [2025-07-02 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15400730', 'tblTempUsageDetail_20' ) end [2025-07-02 16:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-02 16:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-02 16:25:32] Production.INFO: ==5589== Releasing lock... [2025-07-02 16:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 16:25:32] Production.INFO: 77.75 MB #Memory Used# [2025-07-02 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 14:25:05 [end_date_ymd] => 2025-07-02 17:25:05 [RateCDR] => 1 ) [2025-07-02 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-07-02 14:25:05' and `end` < '2025-07-02 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-07-02 17:25:19] Production.INFO: count ==6201 [2025-07-02 17:25:22] Production.ERROR: pbx CDR StartTime 2025-07-02 14:25:05 - End Time 2025-07-02 17:25:05 [2025-07-02 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15400977', 'tblTempUsageDetail_20' ) start [2025-07-02 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15400977', 'tblTempUsageDetail_20' ) end [2025-07-02 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15400977', 'tblTempVendorCDR_20' ) start [2025-07-02 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15400977', 'tblTempVendorCDR_20' ) end [2025-07-02 17:25:22] Production.INFO: ProcessCDR(1,15400977,1,1,2) [2025-07-02 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15400977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 17:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15400977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 17:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15400977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 17:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15400977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15400977', 'tblTempUsageDetail_20' ) start [2025-07-02 17:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15400977', 'tblTempUsageDetail_20' ) end [2025-07-02 17:25:30] Production.ERROR: pbx prc_insertCDR start [2025-07-02 17:25:32] Production.ERROR: pbx prc_insertCDR end [2025-07-02 17:25:33] Production.INFO: ==9995== Releasing lock... [2025-07-02 17:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 17:25:33] Production.INFO: 74.75 MB #Memory Used# [2025-07-02 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 15:25:06 [end_date_ymd] => 2025-07-02 18:25:06 [RateCDR] => 1 ) [2025-07-02 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-07-02 15:25:06' and `end` < '2025-07-02 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-07-02 18:25:19] Production.INFO: count ==4491 [2025-07-02 18:25:21] Production.ERROR: pbx CDR StartTime 2025-07-02 15:25:06 - End Time 2025-07-02 18:25:06 [2025-07-02 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15401224', 'tblTempUsageDetail_20' ) start [2025-07-02 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15401224', 'tblTempUsageDetail_20' ) end [2025-07-02 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15401224', 'tblTempVendorCDR_20' ) start [2025-07-02 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15401224', 'tblTempVendorCDR_20' ) end [2025-07-02 18:25:21] Production.INFO: ProcessCDR(1,15401224,1,1,2) [2025-07-02 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15401224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15401224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15401224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 18:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15401224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 18:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15401224', 'tblTempUsageDetail_20' ) start [2025-07-02 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15401224', 'tblTempUsageDetail_20' ) end [2025-07-02 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-07-02 18:25:31] Production.ERROR: pbx prc_insertCDR end [2025-07-02 18:25:34] Production.INFO: ==14346== Releasing lock... [2025-07-02 18:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 18:25:34] Production.INFO: 61.75 MB #Memory Used# [2025-07-02 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 16:25:05 [end_date_ymd] => 2025-07-02 19:25:05 [RateCDR] => 1 ) [2025-07-02 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-07-02 16:25:05' and `end` < '2025-07-02 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-07-02 19:25:18] Production.INFO: count ==3232 [2025-07-02 19:25:19] Production.ERROR: pbx CDR StartTime 2025-07-02 16:25:05 - End Time 2025-07-02 19:25:05 [2025-07-02 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15401468', 'tblTempUsageDetail_20' ) start [2025-07-02 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15401468', 'tblTempUsageDetail_20' ) end [2025-07-02 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15401468', 'tblTempVendorCDR_20' ) start [2025-07-02 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15401468', 'tblTempVendorCDR_20' ) end [2025-07-02 19:25:19] Production.INFO: ProcessCDR(1,15401468,1,1,2) [2025-07-02 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15401468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15401468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15401468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15401468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15401468', 'tblTempUsageDetail_20' ) start [2025-07-02 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15401468', 'tblTempUsageDetail_20' ) end [2025-07-02 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-02 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-07-02 19:25:28] Production.INFO: ==18808== Releasing lock... [2025-07-02 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 19:25:28] Production.INFO: 52.5 MB #Memory Used# [2025-07-02 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 17:25:05 [end_date_ymd] => 2025-07-02 20:25:05 [RateCDR] => 1 ) [2025-07-02 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-07-02 17:25:05' and `end` < '2025-07-02 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-07-02 20:25:18] Production.INFO: count ==2339 [2025-07-02 20:25:19] Production.ERROR: pbx CDR StartTime 2025-07-02 17:25:05 - End Time 2025-07-02 20:25:05 [2025-07-02 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15401715', 'tblTempUsageDetail_20' ) start [2025-07-02 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15401715', 'tblTempUsageDetail_20' ) end [2025-07-02 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15401715', 'tblTempVendorCDR_20' ) start [2025-07-02 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15401715', 'tblTempVendorCDR_20' ) end [2025-07-02 20:25:19] Production.INFO: ProcessCDR(1,15401715,1,1,2) [2025-07-02 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15401715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15401715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15401715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15401715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15401715', 'tblTempUsageDetail_20' ) start [2025-07-02 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15401715', 'tblTempUsageDetail_20' ) end [2025-07-02 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-02 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-02 20:25:26] Production.INFO: ==23145== Releasing lock... [2025-07-02 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 20:25:26] Production.INFO: 45.75 MB #Memory Used# [2025-07-02 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 18:25:05 [end_date_ymd] => 2025-07-02 21:25:05 [RateCDR] => 1 ) [2025-07-02 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-07-02 18:25:05' and `end` < '2025-07-02 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-07-02 21:25:18] Production.INFO: count ==1822 [2025-07-02 21:25:19] Production.ERROR: pbx CDR StartTime 2025-07-02 18:25:05 - End Time 2025-07-02 21:25:05 [2025-07-02 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15401962', 'tblTempUsageDetail_20' ) start [2025-07-02 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15401962', 'tblTempUsageDetail_20' ) end [2025-07-02 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15401962', 'tblTempVendorCDR_20' ) start [2025-07-02 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15401962', 'tblTempVendorCDR_20' ) end [2025-07-02 21:25:19] Production.INFO: ProcessCDR(1,15401962,1,1,2) [2025-07-02 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15401962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15401962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15401962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15401962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15401962', 'tblTempUsageDetail_20' ) start [2025-07-02 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15401962', 'tblTempUsageDetail_20' ) end [2025-07-02 21:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-02 21:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-02 21:25:25] Production.INFO: ==27511== Releasing lock... [2025-07-02 21:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 21:25:25] Production.INFO: 41.75 MB #Memory Used# [2025-07-02 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 19:25:05 [end_date_ymd] => 2025-07-02 22:25:05 [RateCDR] => 1 ) [2025-07-02 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-07-02 19:25:05' and `end` < '2025-07-02 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-07-02 22:25:17] Production.INFO: count ==1337 [2025-07-02 22:25:18] Production.ERROR: pbx CDR StartTime 2025-07-02 19:25:05 - End Time 2025-07-02 22:25:05 [2025-07-02 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15402209', 'tblTempUsageDetail_20' ) start [2025-07-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15402209', 'tblTempUsageDetail_20' ) end [2025-07-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15402209', 'tblTempVendorCDR_20' ) start [2025-07-02 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15402209', 'tblTempVendorCDR_20' ) end [2025-07-02 22:25:18] Production.INFO: ProcessCDR(1,15402209,1,1,2) [2025-07-02 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15402209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15402209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15402209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 22:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15402209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15402209', 'tblTempUsageDetail_20' ) start [2025-07-02 22:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15402209', 'tblTempUsageDetail_20' ) end [2025-07-02 22:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-02 22:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-02 22:25:25] Production.INFO: ==31973== Releasing lock... [2025-07-02 22:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 22:25:25] Production.INFO: 38.5 MB #Memory Used# [2025-07-02 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-02 20:25:05 [end_date_ymd] => 2025-07-02 23:25:05 [RateCDR] => 1 ) [2025-07-02 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-07-02 20:25:05' and `end` < '2025-07-02 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-07-02 23:25:17] Production.INFO: count ==967 [2025-07-02 23:25:18] Production.ERROR: pbx CDR StartTime 2025-07-02 20:25:05 - End Time 2025-07-02 23:25:05 [2025-07-02 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-02 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15402456', 'tblTempUsageDetail_20' ) start [2025-07-02 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15402456', 'tblTempUsageDetail_20' ) end [2025-07-02 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15402456', 'tblTempVendorCDR_20' ) start [2025-07-02 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15402456', 'tblTempVendorCDR_20' ) end [2025-07-02 23:25:18] Production.INFO: ProcessCDR(1,15402456,1,1,2) [2025-07-02 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15402456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15402456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-02 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15402456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 23:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15402456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-02 23:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15402456', 'tblTempUsageDetail_20' ) start [2025-07-02 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15402456', 'tblTempUsageDetail_20' ) end [2025-07-02 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-02 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-02 23:25:25] Production.INFO: ==3958== Releasing lock... [2025-07-02 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-02 23:25:25] Production.INFO: 35.5 MB #Memory Used#