[2025-07-26 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 21:25:05 [end_date_ymd] => 2025-07-26 00:25:05 [RateCDR] => 1 ) [2025-07-26 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-25 21:25:05' and `end` < '2025-07-26 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-26 00:25:18] Production.INFO: count ==619 [2025-07-26 00:25:18] Production.ERROR: pbx CDR StartTime 2025-07-25 21:25:05 - End Time 2025-07-26 00:25:05 [2025-07-26 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15539024', 'tblTempUsageDetail_20' ) start [2025-07-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15539024', 'tblTempUsageDetail_20' ) end [2025-07-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15539024', 'tblTempVendorCDR_20' ) start [2025-07-26 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15539024', 'tblTempVendorCDR_20' ) end [2025-07-26 00:25:18] Production.INFO: ProcessCDR(1,15539024,1,1,2) [2025-07-26 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15539024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15539024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15539024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15539024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15539024', 'tblTempUsageDetail_20' ) start [2025-07-26 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15539024', 'tblTempUsageDetail_20' ) end [2025-07-26 00:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-26 00:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-26 00:25:26] Production.INFO: ==6061== Releasing lock... [2025-07-26 00:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 00:25:26] Production.INFO: 36.75 MB #Memory Used# [2025-07-26 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 22:25:05 [end_date_ymd] => 2025-07-26 01:25:05 [RateCDR] => 1 ) [2025-07-26 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-25 22:25:05' and `end` < '2025-07-26 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-26 01:25:17] Production.INFO: count ==587 [2025-07-26 01:25:17] Production.ERROR: pbx CDR StartTime 2025-07-25 22:25:05 - End Time 2025-07-26 01:25:05 [2025-07-26 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15539271', 'tblTempUsageDetail_20' ) start [2025-07-26 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15539271', 'tblTempUsageDetail_20' ) end [2025-07-26 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15539271', 'tblTempVendorCDR_20' ) start [2025-07-26 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15539271', 'tblTempVendorCDR_20' ) end [2025-07-26 01:25:17] Production.INFO: ProcessCDR(1,15539271,1,1,2) [2025-07-26 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15539271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15539271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15539271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15539271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15539271', 'tblTempUsageDetail_20' ) start [2025-07-26 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15539271', 'tblTempUsageDetail_20' ) end [2025-07-26 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-26 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-26 01:25:24] Production.INFO: ==10502== Releasing lock... [2025-07-26 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 01:25:24] Production.INFO: 32.5 MB #Memory Used# [2025-07-26 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-25 23:25:05 [end_date_ymd] => 2025-07-26 02:25:05 [RateCDR] => 1 ) [2025-07-26 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-25 23:25:05' and `end` < '2025-07-26 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-26 02:25:18] Production.INFO: count ==552 [2025-07-26 02:25:18] Production.ERROR: pbx CDR StartTime 2025-07-25 23:25:05 - End Time 2025-07-26 02:25:05 [2025-07-26 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15539518', 'tblTempUsageDetail_20' ) start [2025-07-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15539518', 'tblTempUsageDetail_20' ) end [2025-07-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15539518', 'tblTempVendorCDR_20' ) start [2025-07-26 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15539518', 'tblTempVendorCDR_20' ) end [2025-07-26 02:25:18] Production.INFO: ProcessCDR(1,15539518,1,1,2) [2025-07-26 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15539518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15539518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15539518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15539518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15539518', 'tblTempUsageDetail_20' ) start [2025-07-26 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15539518', 'tblTempUsageDetail_20' ) end [2025-07-26 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-26 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-26 02:25:25] Production.INFO: ==14821== Releasing lock... [2025-07-26 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 02:25:25] Production.INFO: 33 MB #Memory Used# [2025-07-26 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 00:25:05 [end_date_ymd] => 2025-07-26 03:25:05 [RateCDR] => 1 ) [2025-07-26 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-26 00:25:05' and `end` < '2025-07-26 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-26 03:25:17] Production.INFO: count ==516 [2025-07-26 03:25:17] Production.ERROR: pbx CDR StartTime 2025-07-26 00:25:05 - End Time 2025-07-26 03:25:05 [2025-07-26 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15539765', 'tblTempUsageDetail_20' ) start [2025-07-26 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15539765', 'tblTempUsageDetail_20' ) end [2025-07-26 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15539765', 'tblTempVendorCDR_20' ) start [2025-07-26 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15539765', 'tblTempVendorCDR_20' ) end [2025-07-26 03:25:17] Production.INFO: ProcessCDR(1,15539765,1,1,2) [2025-07-26 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15539765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15539765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15539765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15539765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15539765', 'tblTempUsageDetail_20' ) start [2025-07-26 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15539765', 'tblTempUsageDetail_20' ) end [2025-07-26 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-26 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-26 03:25:24] Production.INFO: ==19200== Releasing lock... [2025-07-26 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 03:25:24] Production.INFO: 32.5 MB #Memory Used# [2025-07-26 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 01:25:05 [end_date_ymd] => 2025-07-26 04:25:05 [RateCDR] => 1 ) [2025-07-26 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-26 01:25:05' and `end` < '2025-07-26 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-26 04:25:17] Production.INFO: count ==385 [2025-07-26 04:25:17] Production.ERROR: pbx CDR StartTime 2025-07-26 01:25:05 - End Time 2025-07-26 04:25:05 [2025-07-26 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15540013', 'tblTempUsageDetail_20' ) start [2025-07-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15540013', 'tblTempUsageDetail_20' ) end [2025-07-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15540013', 'tblTempVendorCDR_20' ) start [2025-07-26 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15540013', 'tblTempVendorCDR_20' ) end [2025-07-26 04:25:17] Production.INFO: ProcessCDR(1,15540013,1,1,2) [2025-07-26 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15540013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15540013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15540013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15540013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15540013', 'tblTempUsageDetail_20' ) start [2025-07-26 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15540013', 'tblTempUsageDetail_20' ) end [2025-07-26 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-26 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-26 04:25:24] Production.INFO: ==24243== Releasing lock... [2025-07-26 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 04:25:24] Production.INFO: 31.5 MB #Memory Used# [2025-07-26 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 02:25:05 [end_date_ymd] => 2025-07-26 05:25:05 [RateCDR] => 1 ) [2025-07-26 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-26 02:25:05' and `end` < '2025-07-26 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-26 05:25:18] Production.INFO: count ==312 [2025-07-26 05:25:18] Production.ERROR: pbx CDR StartTime 2025-07-26 02:25:05 - End Time 2025-07-26 05:25:05 [2025-07-26 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15540261', 'tblTempUsageDetail_20' ) start [2025-07-26 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15540261', 'tblTempUsageDetail_20' ) end [2025-07-26 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15540261', 'tblTempVendorCDR_20' ) start [2025-07-26 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15540261', 'tblTempVendorCDR_20' ) end [2025-07-26 05:25:18] Production.INFO: ProcessCDR(1,15540261,1,1,2) [2025-07-26 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15540261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15540261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15540261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 05:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15540261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15540261', 'tblTempUsageDetail_20' ) start [2025-07-26 05:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15540261', 'tblTempUsageDetail_20' ) end [2025-07-26 05:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-26 05:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-26 05:25:24] Production.INFO: ==28659== Releasing lock... [2025-07-26 05:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 05:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-07-26 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 03:25:05 [end_date_ymd] => 2025-07-26 06:25:05 [RateCDR] => 1 ) [2025-07-26 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-26 03:25:05' and `end` < '2025-07-26 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-26 06:25:17] Production.INFO: count ==228 [2025-07-26 06:25:17] Production.ERROR: pbx CDR StartTime 2025-07-26 03:25:05 - End Time 2025-07-26 06:25:05 [2025-07-26 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15540508', 'tblTempUsageDetail_20' ) start [2025-07-26 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15540508', 'tblTempUsageDetail_20' ) end [2025-07-26 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15540508', 'tblTempVendorCDR_20' ) start [2025-07-26 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15540508', 'tblTempVendorCDR_20' ) end [2025-07-26 06:25:18] Production.INFO: ProcessCDR(1,15540508,1,1,2) [2025-07-26 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15540508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15540508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15540508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15540508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15540508', 'tblTempUsageDetail_20' ) start [2025-07-26 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15540508', 'tblTempUsageDetail_20' ) end [2025-07-26 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-26 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-26 06:25:24] Production.INFO: ==952== Releasing lock... [2025-07-26 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 06:25:24] Production.INFO: 30 MB #Memory Used# [2025-07-26 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 04:25:05 [end_date_ymd] => 2025-07-26 07:25:05 [RateCDR] => 1 ) [2025-07-26 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-07-26 04:25:05' and `end` < '2025-07-26 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-07-26 07:25:18] Production.INFO: count ==182 [2025-07-26 07:25:18] Production.ERROR: pbx CDR StartTime 2025-07-26 04:25:05 - End Time 2025-07-26 07:25:05 [2025-07-26 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15540755', 'tblTempUsageDetail_20' ) start [2025-07-26 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15540755', 'tblTempUsageDetail_20' ) end [2025-07-26 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15540755', 'tblTempVendorCDR_20' ) start [2025-07-26 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15540755', 'tblTempVendorCDR_20' ) end [2025-07-26 07:25:18] Production.INFO: ProcessCDR(1,15540755,1,1,2) [2025-07-26 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15540755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15540755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15540755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15540755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15540755', 'tblTempUsageDetail_20' ) start [2025-07-26 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15540755', 'tblTempUsageDetail_20' ) end [2025-07-26 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-26 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-26 07:25:24] Production.INFO: ==5441== Releasing lock... [2025-07-26 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 07:25:24] Production.INFO: 29.75 MB #Memory Used# [2025-07-26 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 05:25:05 [end_date_ymd] => 2025-07-26 08:25:05 [RateCDR] => 1 ) [2025-07-26 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-07-26 05:25:05' and `end` < '2025-07-26 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-07-26 08:25:17] Production.INFO: count ==209 [2025-07-26 08:25:17] Production.ERROR: pbx CDR StartTime 2025-07-26 05:25:05 - End Time 2025-07-26 08:25:05 [2025-07-26 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15541002', 'tblTempUsageDetail_20' ) start [2025-07-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15541002', 'tblTempUsageDetail_20' ) end [2025-07-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15541002', 'tblTempVendorCDR_20' ) start [2025-07-26 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15541002', 'tblTempVendorCDR_20' ) end [2025-07-26 08:25:17] Production.INFO: ProcessCDR(1,15541002,1,1,2) [2025-07-26 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15541002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15541002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15541002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15541002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15541002', 'tblTempUsageDetail_20' ) start [2025-07-26 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15541002', 'tblTempUsageDetail_20' ) end [2025-07-26 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-26 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-26 08:25:24] Production.INFO: ==10090== Releasing lock... [2025-07-26 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 08:25:24] Production.INFO: 30 MB #Memory Used# [2025-07-26 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 06:25:04 [end_date_ymd] => 2025-07-26 09:25:04 [RateCDR] => 1 ) [2025-07-26 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-26 06:25:04' and `end` < '2025-07-26 09: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-26 09:25:17] Production.INFO: count ==520 [2025-07-26 09:25:17] Production.ERROR: pbx CDR StartTime 2025-07-26 06:25:04 - End Time 2025-07-26 09:25:04 [2025-07-26 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15541249', 'tblTempUsageDetail_20' ) start [2025-07-26 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15541249', 'tblTempUsageDetail_20' ) end [2025-07-26 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15541249', 'tblTempVendorCDR_20' ) start [2025-07-26 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15541249', 'tblTempVendorCDR_20' ) end [2025-07-26 09:25:17] Production.INFO: ProcessCDR(1,15541249,1,1,2) [2025-07-26 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15541249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 09:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15541249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 09:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15541249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15541249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15541249', 'tblTempUsageDetail_20' ) start [2025-07-26 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15541249', 'tblTempUsageDetail_20' ) end [2025-07-26 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-07-26 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-07-26 09:25:24] Production.INFO: ==14578== Releasing lock... [2025-07-26 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 09:25:24] Production.INFO: 32.75 MB #Memory Used# [2025-07-26 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 07:25:05 [end_date_ymd] => 2025-07-26 10:25:05 [RateCDR] => 1 ) [2025-07-26 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-07-26 07:25:05' and `end` < '2025-07-26 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-07-26 10:25:18] Production.INFO: count ==1093 [2025-07-26 10:25:18] Production.ERROR: pbx CDR StartTime 2025-07-26 07:25:05 - End Time 2025-07-26 10:25:05 [2025-07-26 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15541496', 'tblTempUsageDetail_20' ) start [2025-07-26 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15541496', 'tblTempUsageDetail_20' ) end [2025-07-26 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15541496', 'tblTempVendorCDR_20' ) start [2025-07-26 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15541496', 'tblTempVendorCDR_20' ) end [2025-07-26 10:25:18] Production.INFO: ProcessCDR(1,15541496,1,1,2) [2025-07-26 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15541496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15541496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15541496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15541496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15541496', 'tblTempUsageDetail_20' ) start [2025-07-26 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15541496', 'tblTempUsageDetail_20' ) end [2025-07-26 10:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-26 10:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-26 10:25:26] Production.INFO: ==18800== Releasing lock... [2025-07-26 10:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 10:25:26] Production.INFO: 36.25 MB #Memory Used# [2025-07-26 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 08:25:06 [end_date_ymd] => 2025-07-26 11:25:06 [RateCDR] => 1 ) [2025-07-26 11:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-26 08:25:06' and `end` < '2025-07-26 11:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-26 11:25:19] Production.INFO: count ==1912 [2025-07-26 11:25:20] Production.ERROR: pbx CDR StartTime 2025-07-26 08:25:06 - End Time 2025-07-26 11:25:06 [2025-07-26 11:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15541743', 'tblTempUsageDetail_20' ) start [2025-07-26 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15541743', 'tblTempUsageDetail_20' ) end [2025-07-26 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15541743', 'tblTempVendorCDR_20' ) start [2025-07-26 11:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15541743', 'tblTempVendorCDR_20' ) end [2025-07-26 11:25:20] Production.INFO: ProcessCDR(1,15541743,1,1,2) [2025-07-26 11:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15541743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15541743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15541743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 11:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15541743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15541743', 'tblTempUsageDetail_20' ) start [2025-07-26 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15541743', 'tblTempUsageDetail_20' ) end [2025-07-26 11:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-26 11:25:28] Production.ERROR: pbx prc_insertCDR end [2025-07-26 11:25:28] Production.INFO: ==23158== Releasing lock... [2025-07-26 11:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 11:25:28] Production.INFO: 42.5 MB #Memory Used# [2025-07-26 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 09:25:05 [end_date_ymd] => 2025-07-26 12:25:05 [RateCDR] => 1 ) [2025-07-26 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-26 09:25:05' and `end` < '2025-07-26 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-26 12:25:18] Production.INFO: count ==2110 [2025-07-26 12:25:19] Production.ERROR: pbx CDR StartTime 2025-07-26 09:25:05 - End Time 2025-07-26 12:25:05 [2025-07-26 12:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15541990', 'tblTempUsageDetail_20' ) start [2025-07-26 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15541990', 'tblTempUsageDetail_20' ) end [2025-07-26 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15541990', 'tblTempVendorCDR_20' ) start [2025-07-26 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15541990', 'tblTempVendorCDR_20' ) end [2025-07-26 12:25:19] Production.INFO: ProcessCDR(1,15541990,1,1,2) [2025-07-26 12:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15541990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15541990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15541990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 12:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15541990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 12:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15541990', 'tblTempUsageDetail_20' ) start [2025-07-26 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15541990', 'tblTempUsageDetail_20' ) end [2025-07-26 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-26 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-26 12:25:27] Production.INFO: ==27633== Releasing lock... [2025-07-26 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 12:25:27] Production.INFO: 44 MB #Memory Used# [2025-07-26 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 10:25:06 [end_date_ymd] => 2025-07-26 13:25:06 [RateCDR] => 1 ) [2025-07-26 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-26 10:25:06' and `end` < '2025-07-26 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-26 13:25:19] Production.INFO: count ==2126 [2025-07-26 13:25:20] Production.ERROR: pbx CDR StartTime 2025-07-26 10:25:06 - End Time 2025-07-26 13:25:06 [2025-07-26 13:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15542237', 'tblTempUsageDetail_20' ) start [2025-07-26 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15542237', 'tblTempUsageDetail_20' ) end [2025-07-26 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15542237', 'tblTempVendorCDR_20' ) start [2025-07-26 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15542237', 'tblTempVendorCDR_20' ) end [2025-07-26 13:25:20] Production.INFO: ProcessCDR(1,15542237,1,1,2) [2025-07-26 13:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15542237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 13:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15542237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 13:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15542237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15542237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15542237', 'tblTempUsageDetail_20' ) start [2025-07-26 13:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15542237', 'tblTempUsageDetail_20' ) end [2025-07-26 13:25:28] Production.ERROR: pbx prc_insertCDR start [2025-07-26 13:25:29] Production.ERROR: pbx prc_insertCDR end [2025-07-26 13:25:29] Production.INFO: ==31917== Releasing lock... [2025-07-26 13:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 13:25:29] Production.INFO: 44.25 MB #Memory Used# [2025-07-26 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 11:25:05 [end_date_ymd] => 2025-07-26 14:25:05 [RateCDR] => 1 ) [2025-07-26 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-26 11:25:05' and `end` < '2025-07-26 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-26 14:25:17] Production.INFO: count ==1744 [2025-07-26 14:25:18] Production.ERROR: pbx CDR StartTime 2025-07-26 11:25:05 - End Time 2025-07-26 14:25:05 [2025-07-26 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15542484', 'tblTempUsageDetail_20' ) start [2025-07-26 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15542484', 'tblTempUsageDetail_20' ) end [2025-07-26 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15542484', 'tblTempVendorCDR_20' ) start [2025-07-26 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15542484', 'tblTempVendorCDR_20' ) end [2025-07-26 14:25:18] Production.INFO: ProcessCDR(1,15542484,1,1,2) [2025-07-26 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15542484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15542484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15542484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15542484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15542484', 'tblTempUsageDetail_20' ) start [2025-07-26 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15542484', 'tblTempUsageDetail_20' ) end [2025-07-26 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-26 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-26 14:25:27] Production.INFO: ==3856== Releasing lock... [2025-07-26 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 14:25:27] Production.INFO: 41.5 MB #Memory Used# [2025-07-26 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 12:25:05 [end_date_ymd] => 2025-07-26 15:25:05 [RateCDR] => 1 ) [2025-07-26 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-26 12:25:05' and `end` < '2025-07-26 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-26 15:25:18] Production.INFO: count ==1561 [2025-07-26 15:25:18] Production.ERROR: pbx CDR StartTime 2025-07-26 12:25:05 - End Time 2025-07-26 15:25:05 [2025-07-26 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15542731', 'tblTempUsageDetail_20' ) start [2025-07-26 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15542731', 'tblTempUsageDetail_20' ) end [2025-07-26 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15542731', 'tblTempVendorCDR_20' ) start [2025-07-26 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15542731', 'tblTempVendorCDR_20' ) end [2025-07-26 15:25:18] Production.INFO: ProcessCDR(1,15542731,1,1,2) [2025-07-26 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15542731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15542731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15542731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15542731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15542731', 'tblTempUsageDetail_20' ) start [2025-07-26 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15542731', 'tblTempUsageDetail_20' ) end [2025-07-26 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-26 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-26 15:25:26] Production.INFO: ==8174== Releasing lock... [2025-07-26 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 15:25:26] Production.INFO: 39.75 MB #Memory Used# [2025-07-26 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 13:25:05 [end_date_ymd] => 2025-07-26 16:25:05 [RateCDR] => 1 ) [2025-07-26 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-26 13:25:05' and `end` < '2025-07-26 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-26 16:25:18] Production.INFO: count ==1500 [2025-07-26 16:25:19] Production.ERROR: pbx CDR StartTime 2025-07-26 13:25:05 - End Time 2025-07-26 16:25:05 [2025-07-26 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15542978', 'tblTempUsageDetail_20' ) start [2025-07-26 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15542978', 'tblTempUsageDetail_20' ) end [2025-07-26 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15542978', 'tblTempVendorCDR_20' ) start [2025-07-26 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15542978', 'tblTempVendorCDR_20' ) end [2025-07-26 16:25:19] Production.INFO: ProcessCDR(1,15542978,1,1,2) [2025-07-26 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15542978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 16:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15542978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 16:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15542978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15542978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15542978', 'tblTempUsageDetail_20' ) start [2025-07-26 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15542978', 'tblTempUsageDetail_20' ) end [2025-07-26 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-26 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-26 16:25:27] Production.INFO: ==12672== Releasing lock... [2025-07-26 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 16:25:27] Production.INFO: 39.75 MB #Memory Used# [2025-07-26 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 14:25:06 [end_date_ymd] => 2025-07-26 17:25:06 [RateCDR] => 1 ) [2025-07-26 17:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-07-26 14:25:06' and `end` < '2025-07-26 17:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-07-26 17:25:18] Production.INFO: count ==1675 [2025-07-26 17:25:19] Production.ERROR: pbx CDR StartTime 2025-07-26 14:25:06 - End Time 2025-07-26 17:25:06 [2025-07-26 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15543225', 'tblTempUsageDetail_20' ) start [2025-07-26 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15543225', 'tblTempUsageDetail_20' ) end [2025-07-26 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15543225', 'tblTempVendorCDR_20' ) start [2025-07-26 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15543225', 'tblTempVendorCDR_20' ) end [2025-07-26 17:25:19] Production.INFO: ProcessCDR(1,15543225,1,1,2) [2025-07-26 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15543225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15543225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15543225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15543225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15543225', 'tblTempUsageDetail_20' ) start [2025-07-26 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15543225', 'tblTempUsageDetail_20' ) end [2025-07-26 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-07-26 17:25:28] Production.ERROR: pbx prc_insertCDR end [2025-07-26 17:25:28] Production.INFO: ==17189== Releasing lock... [2025-07-26 17:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 17:25:28] Production.INFO: 40.75 MB #Memory Used# [2025-07-26 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 15:25:05 [end_date_ymd] => 2025-07-26 18:25:05 [RateCDR] => 1 ) [2025-07-26 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-07-26 15:25:05' and `end` < '2025-07-26 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-07-26 18:25:18] Production.INFO: count ==1938 [2025-07-26 18:25:19] Production.ERROR: pbx CDR StartTime 2025-07-26 15:25:05 - End Time 2025-07-26 18:25:05 [2025-07-26 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15543472', 'tblTempUsageDetail_20' ) start [2025-07-26 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15543472', 'tblTempUsageDetail_20' ) end [2025-07-26 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15543472', 'tblTempVendorCDR_20' ) start [2025-07-26 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15543472', 'tblTempVendorCDR_20' ) end [2025-07-26 18:25:19] Production.INFO: ProcessCDR(1,15543472,1,1,2) [2025-07-26 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15543472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15543472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15543472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 18:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15543472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15543472', 'tblTempUsageDetail_20' ) start [2025-07-26 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15543472', 'tblTempUsageDetail_20' ) end [2025-07-26 18:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-26 18:25:27] Production.ERROR: pbx prc_insertCDR end [2025-07-26 18:25:27] Production.INFO: ==21482== Releasing lock... [2025-07-26 18:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 18:25:27] Production.INFO: 42.75 MB #Memory Used# [2025-07-26 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 16:25:05 [end_date_ymd] => 2025-07-26 19:25:05 [RateCDR] => 1 ) [2025-07-26 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-26 16:25:05' and `end` < '2025-07-26 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-26 19:25:17] Production.INFO: count ==1835 [2025-07-26 19:25:18] Production.ERROR: pbx CDR StartTime 2025-07-26 16:25:05 - End Time 2025-07-26 19:25:05 [2025-07-26 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15543716', 'tblTempUsageDetail_20' ) start [2025-07-26 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15543716', 'tblTempUsageDetail_20' ) end [2025-07-26 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15543716', 'tblTempVendorCDR_20' ) start [2025-07-26 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15543716', 'tblTempVendorCDR_20' ) end [2025-07-26 19:25:18] Production.INFO: ProcessCDR(1,15543716,1,1,2) [2025-07-26 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15543716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15543716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15543716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15543716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15543716', 'tblTempUsageDetail_20' ) start [2025-07-26 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15543716', 'tblTempUsageDetail_20' ) end [2025-07-26 19:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-26 19:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-26 19:25:25] Production.INFO: ==26051== Releasing lock... [2025-07-26 19:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 19:25:25] Production.INFO: 42 MB #Memory Used# [2025-07-26 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 17:25:05 [end_date_ymd] => 2025-07-26 20:25:05 [RateCDR] => 1 ) [2025-07-26 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-26 17:25:05' and `end` < '2025-07-26 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-26 20:25:17] Production.INFO: count ==1682 [2025-07-26 20:25:18] Production.ERROR: pbx CDR StartTime 2025-07-26 17:25:05 - End Time 2025-07-26 20:25:05 [2025-07-26 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15543963', 'tblTempUsageDetail_20' ) start [2025-07-26 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15543963', 'tblTempUsageDetail_20' ) end [2025-07-26 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15543963', 'tblTempVendorCDR_20' ) start [2025-07-26 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15543963', 'tblTempVendorCDR_20' ) end [2025-07-26 20:25:18] Production.INFO: ProcessCDR(1,15543963,1,1,2) [2025-07-26 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15543963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15543963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15543963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15543963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15543963', 'tblTempUsageDetail_20' ) start [2025-07-26 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15543963', 'tblTempUsageDetail_20' ) end [2025-07-26 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-26 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-26 20:25:26] Production.INFO: ==30274== Releasing lock... [2025-07-26 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 20:25:26] Production.INFO: 40.75 MB #Memory Used# [2025-07-26 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 18:25:06 [end_date_ymd] => 2025-07-26 21:25:06 [RateCDR] => 1 ) [2025-07-26 21: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-26 18:25:06' and `end` < '2025-07-26 21: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-26 21:25:18] Production.INFO: count ==1468 [2025-07-26 21:25:19] Production.ERROR: pbx CDR StartTime 2025-07-26 18:25:06 - End Time 2025-07-26 21:25:06 [2025-07-26 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15544210', 'tblTempUsageDetail_20' ) start [2025-07-26 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15544210', 'tblTempUsageDetail_20' ) end [2025-07-26 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15544210', 'tblTempVendorCDR_20' ) start [2025-07-26 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15544210', 'tblTempVendorCDR_20' ) end [2025-07-26 21:25:19] Production.INFO: ProcessCDR(1,15544210,1,1,2) [2025-07-26 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15544210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15544210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15544210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15544210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15544210', 'tblTempUsageDetail_20' ) start [2025-07-26 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15544210', 'tblTempUsageDetail_20' ) end [2025-07-26 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-07-26 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-26 21:25:26] Production.INFO: ==2415== Releasing lock... [2025-07-26 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 21:25:26] Production.INFO: 39.5 MB #Memory Used# [2025-07-26 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 19:25:05 [end_date_ymd] => 2025-07-26 22:25:05 [RateCDR] => 1 ) [2025-07-26 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-26 19:25:05' and `end` < '2025-07-26 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-26 22:25:18] Production.INFO: count ==1337 [2025-07-26 22:25:18] Production.ERROR: pbx CDR StartTime 2025-07-26 19:25:05 - End Time 2025-07-26 22:25:05 [2025-07-26 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15544457', 'tblTempUsageDetail_20' ) start [2025-07-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15544457', 'tblTempUsageDetail_20' ) end [2025-07-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15544457', 'tblTempVendorCDR_20' ) start [2025-07-26 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15544457', 'tblTempVendorCDR_20' ) end [2025-07-26 22:25:18] Production.INFO: ProcessCDR(1,15544457,1,1,2) [2025-07-26 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15544457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15544457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15544457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15544457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15544457', 'tblTempUsageDetail_20' ) start [2025-07-26 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15544457', 'tblTempUsageDetail_20' ) end [2025-07-26 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-26 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-07-26 22:25:26] Production.INFO: ==6795== Releasing lock... [2025-07-26 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 22:25:26] Production.INFO: 38.75 MB #Memory Used# [2025-07-26 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-07-26 20:25:05 [end_date_ymd] => 2025-07-26 23:25:05 [RateCDR] => 1 ) [2025-07-26 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-26 20:25:05' and `end` < '2025-07-26 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-26 23:25:17] Production.INFO: count ==1134 [2025-07-26 23:25:18] Production.ERROR: pbx CDR StartTime 2025-07-26 20:25:05 - End Time 2025-07-26 23:25:05 [2025-07-26 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-07-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15544704', 'tblTempUsageDetail_20' ) start [2025-07-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15544704', 'tblTempUsageDetail_20' ) end [2025-07-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15544704', 'tblTempVendorCDR_20' ) start [2025-07-26 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15544704', 'tblTempVendorCDR_20' ) end [2025-07-26 23:25:18] Production.INFO: ProcessCDR(1,15544704,1,1,2) [2025-07-26 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15544704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15544704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-07-26 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15544704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15544704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-07-26 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15544704', 'tblTempUsageDetail_20' ) start [2025-07-26 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15544704', 'tblTempUsageDetail_20' ) end [2025-07-26 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-07-26 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-07-26 23:25:25] Production.INFO: ==11090== Releasing lock... [2025-07-26 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-07-26 23:25:25] Production.INFO: 37 MB #Memory Used#