[2025-09-20 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 21:25:05 [end_date_ymd] => 2025-09-20 00:25:05 [RateCDR] => 1 ) [2025-09-20 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-19 21:25:05' and `end` < '2025-09-20 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-20 00:25:18] Production.INFO: count ==823 [2025-09-20 00:25:18] Production.ERROR: pbx CDR StartTime 2025-09-19 21:25:05 - End Time 2025-09-20 00:25:05 [2025-09-20 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15870951', 'tblTempUsageDetail_20' ) start [2025-09-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15870951', 'tblTempUsageDetail_20' ) end [2025-09-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15870951', 'tblTempVendorCDR_20' ) start [2025-09-20 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15870951', 'tblTempVendorCDR_20' ) end [2025-09-20 00:25:18] Production.INFO: ProcessCDR(1,15870951,1,1,2) [2025-09-20 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15870951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15870951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15870951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15870951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15870951', 'tblTempUsageDetail_20' ) start [2025-09-20 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15870951', 'tblTempUsageDetail_20' ) end [2025-09-20 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-20 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-20 00:25:28] Production.INFO: ==333== Releasing lock... [2025-09-20 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 00:25:28] Production.INFO: 38 MB #Memory Used# [2025-09-20 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 22:25:05 [end_date_ymd] => 2025-09-20 01:25:05 [RateCDR] => 1 ) [2025-09-20 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-19 22:25:05' and `end` < '2025-09-20 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-20 01:25:17] Production.INFO: count ==783 [2025-09-20 01:25:17] Production.ERROR: pbx CDR StartTime 2025-09-19 22:25:05 - End Time 2025-09-20 01:25:05 [2025-09-20 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15871198', 'tblTempUsageDetail_20' ) start [2025-09-20 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15871198', 'tblTempUsageDetail_20' ) end [2025-09-20 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15871198', 'tblTempVendorCDR_20' ) start [2025-09-20 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15871198', 'tblTempVendorCDR_20' ) end [2025-09-20 01:25:17] Production.INFO: ProcessCDR(1,15871198,1,1,2) [2025-09-20 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15871198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15871198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15871198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15871198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15871198', 'tblTempUsageDetail_20' ) start [2025-09-20 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15871198', 'tblTempUsageDetail_20' ) end [2025-09-20 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-20 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-20 01:25:26] Production.INFO: ==5672== Releasing lock... [2025-09-20 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 01:25:26] Production.INFO: 34.25 MB #Memory Used# [2025-09-20 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-19 23:25:05 [end_date_ymd] => 2025-09-20 02:25:05 [RateCDR] => 1 ) [2025-09-20 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-19 23:25:05' and `end` < '2025-09-20 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-20 02:25:19] Production.INFO: count ==762 [2025-09-20 02:25:19] Production.ERROR: pbx CDR StartTime 2025-09-19 23:25:05 - End Time 2025-09-20 02:25:05 [2025-09-20 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15871445', 'tblTempUsageDetail_20' ) start [2025-09-20 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15871445', 'tblTempUsageDetail_20' ) end [2025-09-20 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15871445', 'tblTempVendorCDR_20' ) start [2025-09-20 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15871445', 'tblTempVendorCDR_20' ) end [2025-09-20 02:25:19] Production.INFO: ProcessCDR(1,15871445,1,1,2) [2025-09-20 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15871445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 02:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15871445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 02:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15871445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 02:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15871445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15871445', 'tblTempUsageDetail_20' ) start [2025-09-20 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15871445', 'tblTempUsageDetail_20' ) end [2025-09-20 02:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-20 02:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-20 02:25:27] Production.INFO: ==11156== Releasing lock... [2025-09-20 02:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 02:25:27] Production.INFO: 34 MB #Memory Used# [2025-09-20 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 00:25:05 [end_date_ymd] => 2025-09-20 03:25:05 [RateCDR] => 1 ) [2025-09-20 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-20 00:25:05' and `end` < '2025-09-20 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-20 03:25:17] Production.INFO: count ==660 [2025-09-20 03:25:17] Production.ERROR: pbx CDR StartTime 2025-09-20 00:25:05 - End Time 2025-09-20 03:25:05 [2025-09-20 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15871692', 'tblTempUsageDetail_20' ) start [2025-09-20 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15871692', 'tblTempUsageDetail_20' ) end [2025-09-20 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15871692', 'tblTempVendorCDR_20' ) start [2025-09-20 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15871692', 'tblTempVendorCDR_20' ) end [2025-09-20 03:25:17] Production.INFO: ProcessCDR(1,15871692,1,1,2) [2025-09-20 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15871692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 03:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15871692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 03:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15871692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15871692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15871692', 'tblTempUsageDetail_20' ) start [2025-09-20 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15871692', 'tblTempUsageDetail_20' ) end [2025-09-20 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-20 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-20 03:25:25] Production.INFO: ==16729== Releasing lock... [2025-09-20 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 03:25:25] Production.INFO: 33.75 MB #Memory Used# [2025-09-20 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 01:25:06 [end_date_ymd] => 2025-09-20 04:25:06 [RateCDR] => 1 ) [2025-09-20 04: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-20 01:25:06' and `end` < '2025-09-20 04: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-20 04:25:18] Production.INFO: count ==410 [2025-09-20 04:25:18] Production.ERROR: pbx CDR StartTime 2025-09-20 01:25:06 - End Time 2025-09-20 04:25:06 [2025-09-20 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15871940', 'tblTempUsageDetail_20' ) start [2025-09-20 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15871940', 'tblTempUsageDetail_20' ) end [2025-09-20 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15871940', 'tblTempVendorCDR_20' ) start [2025-09-20 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15871940', 'tblTempVendorCDR_20' ) end [2025-09-20 04:25:18] Production.INFO: ProcessCDR(1,15871940,1,1,2) [2025-09-20 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15871940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 04:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15871940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 04:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15871940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 04:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15871940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15871940', 'tblTempUsageDetail_20' ) start [2025-09-20 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15871940', 'tblTempUsageDetail_20' ) end [2025-09-20 04:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-20 04:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-20 04:25:26] Production.INFO: ==22382== Releasing lock... [2025-09-20 04:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 04:25:26] Production.INFO: 31.75 MB #Memory Used# [2025-09-20 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 02:25:05 [end_date_ymd] => 2025-09-20 05:25:05 [RateCDR] => 1 ) [2025-09-20 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-20 02:25:05' and `end` < '2025-09-20 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-20 05:25:18] Production.INFO: count ==254 [2025-09-20 05:25:18] Production.ERROR: pbx CDR StartTime 2025-09-20 02:25:05 - End Time 2025-09-20 05:25:05 [2025-09-20 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15872188', 'tblTempUsageDetail_20' ) start [2025-09-20 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15872188', 'tblTempUsageDetail_20' ) end [2025-09-20 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15872188', 'tblTempVendorCDR_20' ) start [2025-09-20 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15872188', 'tblTempVendorCDR_20' ) end [2025-09-20 05:25:18] Production.INFO: ProcessCDR(1,15872188,1,1,2) [2025-09-20 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15872188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 05:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15872188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 05:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15872188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 05:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15872188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15872188', 'tblTempUsageDetail_20' ) start [2025-09-20 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15872188', 'tblTempUsageDetail_20' ) end [2025-09-20 05:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-20 05:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-20 05:25:26] Production.INFO: ==28268== Releasing lock... [2025-09-20 05:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 05:25:26] Production.INFO: 30.25 MB #Memory Used# [2025-09-20 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 03:25:05 [end_date_ymd] => 2025-09-20 06:25:05 [RateCDR] => 1 ) [2025-09-20 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-20 03:25:05' and `end` < '2025-09-20 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-20 06:25:17] Production.INFO: count ==172 [2025-09-20 06:25:17] Production.ERROR: pbx CDR StartTime 2025-09-20 03:25:05 - End Time 2025-09-20 06:25:05 [2025-09-20 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15872435', 'tblTempUsageDetail_20' ) start [2025-09-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15872435', 'tblTempUsageDetail_20' ) end [2025-09-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15872435', 'tblTempVendorCDR_20' ) start [2025-09-20 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15872435', 'tblTempVendorCDR_20' ) end [2025-09-20 06:25:17] Production.INFO: ProcessCDR(1,15872435,1,1,2) [2025-09-20 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15872435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15872435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15872435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15872435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15872435', 'tblTempUsageDetail_20' ) start [2025-09-20 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15872435', 'tblTempUsageDetail_20' ) end [2025-09-20 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-20 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-20 06:25:25] Production.INFO: ==1179== Releasing lock... [2025-09-20 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 06:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-09-20 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 04:25:05 [end_date_ymd] => 2025-09-20 07:25:05 [RateCDR] => 1 ) [2025-09-20 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-20 04:25:05' and `end` < '2025-09-20 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-20 07:25:17] Production.INFO: count ==128 [2025-09-20 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-20 04:25:05 - End Time 2025-09-20 07:25:05 [2025-09-20 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15872682', 'tblTempUsageDetail_20' ) start [2025-09-20 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15872682', 'tblTempUsageDetail_20' ) end [2025-09-20 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15872682', 'tblTempVendorCDR_20' ) start [2025-09-20 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15872682', 'tblTempVendorCDR_20' ) end [2025-09-20 07:25:17] Production.INFO: ProcessCDR(1,15872682,1,1,2) [2025-09-20 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15872682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15872682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15872682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15872682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15872682', 'tblTempUsageDetail_20' ) start [2025-09-20 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15872682', 'tblTempUsageDetail_20' ) end [2025-09-20 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-20 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-20 07:25:25] Production.INFO: ==6412== Releasing lock... [2025-09-20 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 07:25:25] Production.INFO: 29 MB #Memory Used# [2025-09-20 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 05:25:05 [end_date_ymd] => 2025-09-20 08:25:05 [RateCDR] => 1 ) [2025-09-20 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-20 05:25:05' and `end` < '2025-09-20 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-20 08:25:17] Production.INFO: count ==209 [2025-09-20 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-20 05:25:05 - End Time 2025-09-20 08:25:05 [2025-09-20 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15872929', 'tblTempUsageDetail_20' ) start [2025-09-20 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15872929', 'tblTempUsageDetail_20' ) end [2025-09-20 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15872929', 'tblTempVendorCDR_20' ) start [2025-09-20 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15872929', 'tblTempVendorCDR_20' ) end [2025-09-20 08:25:17] Production.INFO: ProcessCDR(1,15872929,1,1,2) [2025-09-20 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15872929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15872929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15872929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15872929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15872929', 'tblTempUsageDetail_20' ) start [2025-09-20 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15872929', 'tblTempUsageDetail_20' ) end [2025-09-20 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-20 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-20 08:25:26] Production.INFO: ==11587== Releasing lock... [2025-09-20 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 08:25:26] Production.INFO: 30 MB #Memory Used# [2025-09-20 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 06:25:05 [end_date_ymd] => 2025-09-20 09:25:05 [RateCDR] => 1 ) [2025-09-20 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-20 06:25:05' and `end` < '2025-09-20 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-20 09:25:17] Production.INFO: count ==462 [2025-09-20 09:25:17] Production.ERROR: pbx CDR StartTime 2025-09-20 06:25:05 - End Time 2025-09-20 09:25:05 [2025-09-20 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15873176', 'tblTempUsageDetail_20' ) start [2025-09-20 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15873176', 'tblTempUsageDetail_20' ) end [2025-09-20 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15873176', 'tblTempVendorCDR_20' ) start [2025-09-20 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15873176', 'tblTempVendorCDR_20' ) end [2025-09-20 09:25:17] Production.INFO: ProcessCDR(1,15873176,1,1,2) [2025-09-20 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15873176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15873176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15873176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15873176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15873176', 'tblTempUsageDetail_20' ) start [2025-09-20 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15873176', 'tblTempUsageDetail_20' ) end [2025-09-20 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-20 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-20 09:25:25] Production.INFO: ==16292== Releasing lock... [2025-09-20 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 09:25:25] Production.INFO: 32 MB #Memory Used# [2025-09-20 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 07:25:05 [end_date_ymd] => 2025-09-20 10:25:05 [RateCDR] => 1 ) [2025-09-20 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-20 07:25:05' and `end` < '2025-09-20 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-20 10:25:17] Production.INFO: count ==962 [2025-09-20 10:25:18] Production.ERROR: pbx CDR StartTime 2025-09-20 07:25:05 - End Time 2025-09-20 10:25:05 [2025-09-20 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15873423', 'tblTempUsageDetail_20' ) start [2025-09-20 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15873423', 'tblTempUsageDetail_20' ) end [2025-09-20 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15873423', 'tblTempVendorCDR_20' ) start [2025-09-20 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15873423', 'tblTempVendorCDR_20' ) end [2025-09-20 10:25:18] Production.INFO: ProcessCDR(1,15873423,1,1,2) [2025-09-20 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15873423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15873423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15873423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15873423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15873423', 'tblTempUsageDetail_20' ) start [2025-09-20 10:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15873423', 'tblTempUsageDetail_20' ) end [2025-09-20 10:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-20 10:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-20 10:25:27] Production.INFO: ==20851== Releasing lock... [2025-09-20 10:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 10:25:27] Production.INFO: 35.75 MB #Memory Used# [2025-09-20 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 08:25:05 [end_date_ymd] => 2025-09-20 11:25:05 [RateCDR] => 1 ) [2025-09-20 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-09-20 08:25:05' and `end` < '2025-09-20 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-09-20 11:25:17] Production.INFO: count ==1506 [2025-09-20 11:25:18] Production.ERROR: pbx CDR StartTime 2025-09-20 08:25:05 - End Time 2025-09-20 11:25:05 [2025-09-20 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15873670', 'tblTempUsageDetail_20' ) start [2025-09-20 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15873670', 'tblTempUsageDetail_20' ) end [2025-09-20 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15873670', 'tblTempVendorCDR_20' ) start [2025-09-20 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15873670', 'tblTempVendorCDR_20' ) end [2025-09-20 11:25:18] Production.INFO: ProcessCDR(1,15873670,1,1,2) [2025-09-20 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15873670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 11:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15873670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 11:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15873670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15873670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15873670', 'tblTempUsageDetail_20' ) start [2025-09-20 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15873670', 'tblTempUsageDetail_20' ) end [2025-09-20 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-20 11:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-20 11:25:27] Production.INFO: ==25145== Releasing lock... [2025-09-20 11:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 11:25:27] Production.INFO: 39.5 MB #Memory Used# [2025-09-20 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 09:25:05 [end_date_ymd] => 2025-09-20 12:25:05 [RateCDR] => 1 ) [2025-09-20 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-20 09:25:05' and `end` < '2025-09-20 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-20 12:25:18] Production.INFO: count ==1805 [2025-09-20 12:25:19] Production.ERROR: pbx CDR StartTime 2025-09-20 09:25:05 - End Time 2025-09-20 12:25:05 [2025-09-20 12:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15873917', 'tblTempUsageDetail_20' ) start [2025-09-20 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15873917', 'tblTempUsageDetail_20' ) end [2025-09-20 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15873917', 'tblTempVendorCDR_20' ) start [2025-09-20 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15873917', 'tblTempVendorCDR_20' ) end [2025-09-20 12:25:19] Production.INFO: ProcessCDR(1,15873917,1,1,2) [2025-09-20 12:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15873917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15873917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15873917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 12:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15873917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15873917', 'tblTempUsageDetail_20' ) start [2025-09-20 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15873917', 'tblTempUsageDetail_20' ) end [2025-09-20 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-20 12:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-20 12:25:28] Production.INFO: ==29542== Releasing lock... [2025-09-20 12:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 12:25:28] Production.INFO: 41.75 MB #Memory Used# [2025-09-20 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 10:25:05 [end_date_ymd] => 2025-09-20 13:25:05 [RateCDR] => 1 ) [2025-09-20 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-20 10:25:05' and `end` < '2025-09-20 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-20 13:25:17] Production.INFO: count ==1885 [2025-09-20 13:25:18] Production.ERROR: pbx CDR StartTime 2025-09-20 10:25:05 - End Time 2025-09-20 13:25:05 [2025-09-20 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15874164', 'tblTempUsageDetail_20' ) start [2025-09-20 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15874164', 'tblTempUsageDetail_20' ) end [2025-09-20 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15874164', 'tblTempVendorCDR_20' ) start [2025-09-20 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15874164', 'tblTempVendorCDR_20' ) end [2025-09-20 13:25:18] Production.INFO: ProcessCDR(1,15874164,1,1,2) [2025-09-20 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15874164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 13:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15874164,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 13:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15874164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15874164,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15874164', 'tblTempUsageDetail_20' ) start [2025-09-20 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15874164', 'tblTempUsageDetail_20' ) end [2025-09-20 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-20 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-20 13:25:27] Production.INFO: ==2302== Releasing lock... [2025-09-20 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 13:25:27] Production.INFO: 42.5 MB #Memory Used# [2025-09-20 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 11:25:05 [end_date_ymd] => 2025-09-20 14:25:05 [RateCDR] => 1 ) [2025-09-20 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-20 11:25:05' and `end` < '2025-09-20 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-20 14:25:17] Production.INFO: count ==1994 [2025-09-20 14:25:18] Production.ERROR: pbx CDR StartTime 2025-09-20 11:25:05 - End Time 2025-09-20 14:25:05 [2025-09-20 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15874411', 'tblTempUsageDetail_20' ) start [2025-09-20 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15874411', 'tblTempUsageDetail_20' ) end [2025-09-20 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15874411', 'tblTempVendorCDR_20' ) start [2025-09-20 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15874411', 'tblTempVendorCDR_20' ) end [2025-09-20 14:25:18] Production.INFO: ProcessCDR(1,15874411,1,1,2) [2025-09-20 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15874411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15874411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15874411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15874411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15874411', 'tblTempUsageDetail_20' ) start [2025-09-20 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15874411', 'tblTempUsageDetail_20' ) end [2025-09-20 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-20 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-20 14:25:27] Production.INFO: ==6858== Releasing lock... [2025-09-20 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 14:25:27] Production.INFO: 43.25 MB #Memory Used# [2025-09-20 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 12:25:05 [end_date_ymd] => 2025-09-20 15:25:05 [RateCDR] => 1 ) [2025-09-20 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-20 12:25:05' and `end` < '2025-09-20 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-20 15:25:17] Production.INFO: count ==2660 [2025-09-20 15:25:18] Production.ERROR: pbx CDR StartTime 2025-09-20 12:25:05 - End Time 2025-09-20 15:25:05 [2025-09-20 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15874658', 'tblTempUsageDetail_20' ) start [2025-09-20 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15874658', 'tblTempUsageDetail_20' ) end [2025-09-20 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15874658', 'tblTempVendorCDR_20' ) start [2025-09-20 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15874658', 'tblTempVendorCDR_20' ) end [2025-09-20 15:25:19] Production.INFO: ProcessCDR(1,15874658,1,1,2) [2025-09-20 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15874658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15874658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15874658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 15:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15874658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15874658', 'tblTempUsageDetail_20' ) start [2025-09-20 15:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15874658', 'tblTempUsageDetail_20' ) end [2025-09-20 15:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-20 15:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-20 15:25:29] Production.INFO: ==11406== Releasing lock... [2025-09-20 15:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 15:25:29] Production.INFO: 48.25 MB #Memory Used# [2025-09-20 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 13:25:05 [end_date_ymd] => 2025-09-20 16:25:05 [RateCDR] => 1 ) [2025-09-20 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-20 13:25:05' and `end` < '2025-09-20 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-20 16:25:18] Production.INFO: count ==2591 [2025-09-20 16:25:19] Production.ERROR: pbx CDR StartTime 2025-09-20 13:25:05 - End Time 2025-09-20 16:25:05 [2025-09-20 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15874905', 'tblTempUsageDetail_20' ) start [2025-09-20 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15874905', 'tblTempUsageDetail_20' ) end [2025-09-20 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15874905', 'tblTempVendorCDR_20' ) start [2025-09-20 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15874905', 'tblTempVendorCDR_20' ) end [2025-09-20 16:25:19] Production.INFO: ProcessCDR(1,15874905,1,1,2) [2025-09-20 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15874905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 16:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15874905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 16:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15874905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 16:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15874905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15874905', 'tblTempUsageDetail_20' ) start [2025-09-20 16:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15874905', 'tblTempUsageDetail_20' ) end [2025-09-20 16:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-20 16:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-20 16:25:28] Production.INFO: ==15683== Releasing lock... [2025-09-20 16:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 16:25:28] Production.INFO: 48 MB #Memory Used# [2025-09-20 17:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 14:25:04 [end_date_ymd] => 2025-09-20 17:25:04 [RateCDR] => 1 ) [2025-09-20 17: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-20 14:25:04' and `end` < '2025-09-20 17: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-20 17:25:17] Production.INFO: count ==2491 [2025-09-20 17:25:18] Production.ERROR: pbx CDR StartTime 2025-09-20 14:25:04 - End Time 2025-09-20 17:25:04 [2025-09-20 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15875152', 'tblTempUsageDetail_20' ) start [2025-09-20 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15875152', 'tblTempUsageDetail_20' ) end [2025-09-20 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15875152', 'tblTempVendorCDR_20' ) start [2025-09-20 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15875152', 'tblTempVendorCDR_20' ) end [2025-09-20 17:25:18] Production.INFO: ProcessCDR(1,15875152,1,1,2) [2025-09-20 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15875152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15875152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15875152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15875152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15875152', 'tblTempUsageDetail_20' ) start [2025-09-20 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15875152', 'tblTempUsageDetail_20' ) end [2025-09-20 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-20 17:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-20 17:25:28] Production.INFO: ==19997== Releasing lock... [2025-09-20 17:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 17:25:28] Production.INFO: 47 MB #Memory Used# [2025-09-20 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 15:25:05 [end_date_ymd] => 2025-09-20 18:25:05 [RateCDR] => 1 ) [2025-09-20 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-20 15:25:05' and `end` < '2025-09-20 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-20 18:25:18] Production.INFO: count ==2178 [2025-09-20 18:25:19] Production.ERROR: pbx CDR StartTime 2025-09-20 15:25:05 - End Time 2025-09-20 18:25:05 [2025-09-20 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15875399', 'tblTempUsageDetail_20' ) start [2025-09-20 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15875399', 'tblTempUsageDetail_20' ) end [2025-09-20 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15875399', 'tblTempVendorCDR_20' ) start [2025-09-20 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15875399', 'tblTempVendorCDR_20' ) end [2025-09-20 18:25:19] Production.INFO: ProcessCDR(1,15875399,1,1,2) [2025-09-20 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15875399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15875399,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15875399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15875399,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15875399', 'tblTempUsageDetail_20' ) start [2025-09-20 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15875399', 'tblTempUsageDetail_20' ) end [2025-09-20 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-20 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-20 18:25:30] Production.INFO: ==24295== Releasing lock... [2025-09-20 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 18:25:30] Production.INFO: 44.5 MB #Memory Used# [2025-09-20 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 16:25:05 [end_date_ymd] => 2025-09-20 19:25:05 [RateCDR] => 1 ) [2025-09-20 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-20 16:25:05' and `end` < '2025-09-20 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-20 19:25:18] Production.INFO: count ==2360 [2025-09-20 19:25:19] Production.ERROR: pbx CDR StartTime 2025-09-20 16:25:05 - End Time 2025-09-20 19:25:05 [2025-09-20 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15875644', 'tblTempUsageDetail_20' ) start [2025-09-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15875644', 'tblTempUsageDetail_20' ) end [2025-09-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15875644', 'tblTempVendorCDR_20' ) start [2025-09-20 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15875644', 'tblTempVendorCDR_20' ) end [2025-09-20 19:25:19] Production.INFO: ProcessCDR(1,15875644,1,1,2) [2025-09-20 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15875644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15875644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15875644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15875644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15875644', 'tblTempUsageDetail_20' ) start [2025-09-20 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15875644', 'tblTempUsageDetail_20' ) end [2025-09-20 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-20 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-20 19:25:29] Production.INFO: ==28526== Releasing lock... [2025-09-20 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 19:25:29] Production.INFO: 46 MB #Memory Used# [2025-09-20 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 17:25:05 [end_date_ymd] => 2025-09-20 20:25:05 [RateCDR] => 1 ) [2025-09-20 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-20 17:25:05' and `end` < '2025-09-20 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-20 20:25:18] Production.INFO: count ==2267 [2025-09-20 20:25:19] Production.ERROR: pbx CDR StartTime 2025-09-20 17:25:05 - End Time 2025-09-20 20:25:05 [2025-09-20 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15875891', 'tblTempUsageDetail_20' ) start [2025-09-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15875891', 'tblTempUsageDetail_20' ) end [2025-09-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15875891', 'tblTempVendorCDR_20' ) start [2025-09-20 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15875891', 'tblTempVendorCDR_20' ) end [2025-09-20 20:25:19] Production.INFO: ProcessCDR(1,15875891,1,1,2) [2025-09-20 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15875891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15875891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15875891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15875891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15875891', 'tblTempUsageDetail_20' ) start [2025-09-20 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15875891', 'tblTempUsageDetail_20' ) end [2025-09-20 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-20 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-20 20:25:27] Production.INFO: ==419== Releasing lock... [2025-09-20 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 20:25:27] Production.INFO: 45.5 MB #Memory Used# [2025-09-20 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 18:25:05 [end_date_ymd] => 2025-09-20 21:25:05 [RateCDR] => 1 ) [2025-09-20 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-20 18:25:05' and `end` < '2025-09-20 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-20 21:25:17] Production.INFO: count ==1766 [2025-09-20 21:25:18] Production.ERROR: pbx CDR StartTime 2025-09-20 18:25:05 - End Time 2025-09-20 21:25:05 [2025-09-20 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15876138', 'tblTempUsageDetail_20' ) start [2025-09-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15876138', 'tblTempUsageDetail_20' ) end [2025-09-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15876138', 'tblTempVendorCDR_20' ) start [2025-09-20 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15876138', 'tblTempVendorCDR_20' ) end [2025-09-20 21:25:18] Production.INFO: ProcessCDR(1,15876138,1,1,2) [2025-09-20 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15876138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15876138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15876138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 21:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15876138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 21:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15876138', 'tblTempUsageDetail_20' ) start [2025-09-20 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15876138', 'tblTempUsageDetail_20' ) end [2025-09-20 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-20 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-20 21:25:26] Production.INFO: ==4888== Releasing lock... [2025-09-20 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 21:25:26] Production.INFO: 41.5 MB #Memory Used# [2025-09-20 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 19:25:05 [end_date_ymd] => 2025-09-20 22:25:05 [RateCDR] => 1 ) [2025-09-20 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-20 19:25:05' and `end` < '2025-09-20 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-20 22:25:17] Production.INFO: count ==1360 [2025-09-20 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-20 19:25:05 - End Time 2025-09-20 22:25:05 [2025-09-20 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15876385', 'tblTempUsageDetail_20' ) start [2025-09-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15876385', 'tblTempUsageDetail_20' ) end [2025-09-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15876385', 'tblTempVendorCDR_20' ) start [2025-09-20 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15876385', 'tblTempVendorCDR_20' ) end [2025-09-20 22:25:18] Production.INFO: ProcessCDR(1,15876385,1,1,2) [2025-09-20 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15876385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15876385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15876385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15876385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15876385', 'tblTempUsageDetail_20' ) start [2025-09-20 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15876385', 'tblTempUsageDetail_20' ) end [2025-09-20 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-20 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-20 22:25:26] Production.INFO: ==9142== Releasing lock... [2025-09-20 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 22:25:26] Production.INFO: 38.5 MB #Memory Used# [2025-09-20 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-20 20:25:05 [end_date_ymd] => 2025-09-20 23:25:05 [RateCDR] => 1 ) [2025-09-20 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-20 20:25:05' and `end` < '2025-09-20 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-20 23:25:17] Production.INFO: count ==1178 [2025-09-20 23:25:17] Production.ERROR: pbx CDR StartTime 2025-09-20 20:25:05 - End Time 2025-09-20 23:25:05 [2025-09-20 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-20 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15876632', 'tblTempUsageDetail_20' ) start [2025-09-20 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15876632', 'tblTempUsageDetail_20' ) end [2025-09-20 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15876632', 'tblTempVendorCDR_20' ) start [2025-09-20 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15876632', 'tblTempVendorCDR_20' ) end [2025-09-20 23:25:17] Production.INFO: ProcessCDR(1,15876632,1,1,2) [2025-09-20 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15876632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15876632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-20 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15876632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15876632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-20 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15876632', 'tblTempUsageDetail_20' ) start [2025-09-20 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15876632', 'tblTempUsageDetail_20' ) end [2025-09-20 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-20 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-20 23:25:26] Production.INFO: ==14209== Releasing lock... [2025-09-20 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-20 23:25:26] Production.INFO: 37.5 MB #Memory Used#