[2025-08-27 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 21:25:06 [end_date_ymd] => 2025-08-27 00:25:06 [RateCDR] => 1 ) [2025-08-27 00: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-08-26 21:25:06' and `end` < '2025-08-27 00: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-08-27 00:25:19] Production.INFO: count ==624 [2025-08-27 00:25:19] Production.ERROR: pbx CDR StartTime 2025-08-26 21:25:06 - End Time 2025-08-27 00:25:06 [2025-08-27 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15728693', 'tblTempUsageDetail_20' ) start [2025-08-27 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15728693', 'tblTempUsageDetail_20' ) end [2025-08-27 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15728693', 'tblTempVendorCDR_20' ) start [2025-08-27 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15728693', 'tblTempVendorCDR_20' ) end [2025-08-27 00:25:19] Production.INFO: ProcessCDR(1,15728693,1,1,2) [2025-08-27 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15728693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 00:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15728693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 00:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15728693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 00:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15728693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 00:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15728693', 'tblTempUsageDetail_20' ) start [2025-08-27 00:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15728693', 'tblTempUsageDetail_20' ) end [2025-08-27 00:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-27 00:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-27 00:25:28] Production.INFO: ==10651== Releasing lock... [2025-08-27 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 00:25:28] Production.INFO: 36.5 MB #Memory Used# [2025-08-27 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 22:25:05 [end_date_ymd] => 2025-08-27 01:25:05 [RateCDR] => 1 ) [2025-08-27 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-08-26 22:25:05' and `end` < '2025-08-27 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-08-27 01:25:17] Production.INFO: count ==497 [2025-08-27 01:25:17] Production.ERROR: pbx CDR StartTime 2025-08-26 22:25:05 - End Time 2025-08-27 01:25:05 [2025-08-27 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15728940', 'tblTempUsageDetail_20' ) start [2025-08-27 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15728940', 'tblTempUsageDetail_20' ) end [2025-08-27 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15728940', 'tblTempVendorCDR_20' ) start [2025-08-27 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15728940', 'tblTempVendorCDR_20' ) end [2025-08-27 01:25:17] Production.INFO: ProcessCDR(1,15728940,1,1,2) [2025-08-27 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15728940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15728940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15728940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15728940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15728940', 'tblTempUsageDetail_20' ) start [2025-08-27 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15728940', 'tblTempUsageDetail_20' ) end [2025-08-27 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-27 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-27 01:25:25] Production.INFO: ==14944== Releasing lock... [2025-08-27 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 01:25:25] Production.INFO: 32.25 MB #Memory Used# [2025-08-27 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-26 23:25:05 [end_date_ymd] => 2025-08-27 02:25:05 [RateCDR] => 1 ) [2025-08-27 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-08-26 23:25:05' and `end` < '2025-08-27 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-08-27 02:25:19] Production.INFO: count ==480 [2025-08-27 02:25:19] Production.ERROR: pbx CDR StartTime 2025-08-26 23:25:05 - End Time 2025-08-27 02:25:05 [2025-08-27 02:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15729187', 'tblTempUsageDetail_20' ) start [2025-08-27 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15729187', 'tblTempUsageDetail_20' ) end [2025-08-27 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15729187', 'tblTempVendorCDR_20' ) start [2025-08-27 02:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15729187', 'tblTempVendorCDR_20' ) end [2025-08-27 02:25:19] Production.INFO: ProcessCDR(1,15729187,1,1,2) [2025-08-27 02:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15729187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15729187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15729187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15729187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15729187', 'tblTempUsageDetail_20' ) start [2025-08-27 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15729187', 'tblTempUsageDetail_20' ) end [2025-08-27 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-27 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-27 02:25:26] Production.INFO: ==19263== Releasing lock... [2025-08-27 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 02:25:26] Production.INFO: 32.5 MB #Memory Used# [2025-08-27 03:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 00:25:06 [end_date_ymd] => 2025-08-27 03:25:06 [RateCDR] => 1 ) [2025-08-27 03: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-08-27 00:25:06' and `end` < '2025-08-27 03: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-08-27 03:25:18] Production.INFO: count ==411 [2025-08-27 03:25:18] Production.ERROR: pbx CDR StartTime 2025-08-27 00:25:06 - End Time 2025-08-27 03:25:06 [2025-08-27 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15729434', 'tblTempUsageDetail_20' ) start [2025-08-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15729434', 'tblTempUsageDetail_20' ) end [2025-08-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15729434', 'tblTempVendorCDR_20' ) start [2025-08-27 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15729434', 'tblTempVendorCDR_20' ) end [2025-08-27 03:25:18] Production.INFO: ProcessCDR(1,15729434,1,1,2) [2025-08-27 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15729434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 03:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15729434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 03:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15729434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15729434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15729434', 'tblTempUsageDetail_20' ) start [2025-08-27 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15729434', 'tblTempUsageDetail_20' ) end [2025-08-27 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-27 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-27 03:25:25] Production.INFO: ==23771== Releasing lock... [2025-08-27 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 03:25:25] Production.INFO: 32.25 MB #Memory Used# [2025-08-27 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 01:25:05 [end_date_ymd] => 2025-08-27 04:25:05 [RateCDR] => 1 ) [2025-08-27 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-08-27 01:25:05' and `end` < '2025-08-27 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-08-27 04:25:18] Production.INFO: count ==308 [2025-08-27 04:25:18] Production.ERROR: pbx CDR StartTime 2025-08-27 01:25:05 - End Time 2025-08-27 04:25:05 [2025-08-27 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15729682', 'tblTempUsageDetail_20' ) start [2025-08-27 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15729682', 'tblTempUsageDetail_20' ) end [2025-08-27 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15729682', 'tblTempVendorCDR_20' ) start [2025-08-27 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15729682', 'tblTempVendorCDR_20' ) end [2025-08-27 04:25:18] Production.INFO: ProcessCDR(1,15729682,1,1,2) [2025-08-27 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15729682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15729682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15729682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15729682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15729682', 'tblTempUsageDetail_20' ) start [2025-08-27 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15729682', 'tblTempUsageDetail_20' ) end [2025-08-27 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-27 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-27 04:25:25] Production.INFO: ==28107== Releasing lock... [2025-08-27 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 04:25:25] Production.INFO: 31 MB #Memory Used# [2025-08-27 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 02:25:05 [end_date_ymd] => 2025-08-27 05:25:05 [RateCDR] => 1 ) [2025-08-27 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-08-27 02:25:05' and `end` < '2025-08-27 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-08-27 05:25:17] Production.INFO: count ==184 [2025-08-27 05:25:17] Production.ERROR: pbx CDR StartTime 2025-08-27 02:25:05 - End Time 2025-08-27 05:25:05 [2025-08-27 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15729930', 'tblTempUsageDetail_20' ) start [2025-08-27 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15729930', 'tblTempUsageDetail_20' ) end [2025-08-27 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15729930', 'tblTempVendorCDR_20' ) start [2025-08-27 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15729930', 'tblTempVendorCDR_20' ) end [2025-08-27 05:25:17] Production.INFO: ProcessCDR(1,15729930,1,1,2) [2025-08-27 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15729930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15729930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15729930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15729930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15729930', 'tblTempUsageDetail_20' ) start [2025-08-27 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15729930', 'tblTempUsageDetail_20' ) end [2025-08-27 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-08-27 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-08-27 05:25:22] Production.INFO: ==32592== Releasing lock... [2025-08-27 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 05:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-08-27 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 03:25:05 [end_date_ymd] => 2025-08-27 06:25:05 [RateCDR] => 1 ) [2025-08-27 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-08-27 03:25:05' and `end` < '2025-08-27 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-08-27 06:25:17] Production.INFO: count ==126 [2025-08-27 06:25:17] Production.ERROR: pbx CDR StartTime 2025-08-27 03:25:05 - End Time 2025-08-27 06:25:05 [2025-08-27 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15730177', 'tblTempUsageDetail_20' ) start [2025-08-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15730177', 'tblTempUsageDetail_20' ) end [2025-08-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15730177', 'tblTempVendorCDR_20' ) start [2025-08-27 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15730177', 'tblTempVendorCDR_20' ) end [2025-08-27 06:25:17] Production.INFO: ProcessCDR(1,15730177,1,1,2) [2025-08-27 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15730177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15730177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15730177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15730177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15730177', 'tblTempUsageDetail_20' ) start [2025-08-27 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15730177', 'tblTempUsageDetail_20' ) end [2025-08-27 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-27 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-27 06:25:24] Production.INFO: ==4825== Releasing lock... [2025-08-27 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 06:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-08-27 07:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 04:25:04 [end_date_ymd] => 2025-08-27 07:25:04 [RateCDR] => 1 ) [2025-08-27 07:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-27 04:25:04' and `end` < '2025-08-27 07:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-27 07:25:17] Production.INFO: count ==107 [2025-08-27 07:25:17] Production.ERROR: pbx CDR StartTime 2025-08-27 04:25:04 - End Time 2025-08-27 07:25:04 [2025-08-27 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15730424', 'tblTempUsageDetail_20' ) start [2025-08-27 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15730424', 'tblTempUsageDetail_20' ) end [2025-08-27 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15730424', 'tblTempVendorCDR_20' ) start [2025-08-27 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15730424', 'tblTempVendorCDR_20' ) end [2025-08-27 07:25:17] Production.INFO: ProcessCDR(1,15730424,1,1,2) [2025-08-27 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15730424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15730424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15730424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 07:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15730424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 07:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15730424', 'tblTempUsageDetail_20' ) start [2025-08-27 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15730424', 'tblTempUsageDetail_20' ) end [2025-08-27 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-27 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-27 07:25:24] Production.INFO: ==9808== Releasing lock... [2025-08-27 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 07:25:24] Production.INFO: 28.75 MB #Memory Used# [2025-08-27 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 05:25:06 [end_date_ymd] => 2025-08-27 08:25:06 [RateCDR] => 1 ) [2025-08-27 08:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-27 05:25:06' and `end` < '2025-08-27 08:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-27 08:25:18] Production.INFO: count ==378 [2025-08-27 08:25:18] Production.ERROR: pbx CDR StartTime 2025-08-27 05:25:06 - End Time 2025-08-27 08:25:06 [2025-08-27 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15730671', 'tblTempUsageDetail_20' ) start [2025-08-27 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15730671', 'tblTempUsageDetail_20' ) end [2025-08-27 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15730671', 'tblTempVendorCDR_20' ) start [2025-08-27 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15730671', 'tblTempVendorCDR_20' ) end [2025-08-27 08:25:18] Production.INFO: ProcessCDR(1,15730671,1,1,2) [2025-08-27 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15730671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15730671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15730671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 08:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15730671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 08:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15730671', 'tblTempUsageDetail_20' ) start [2025-08-27 08:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15730671', 'tblTempUsageDetail_20' ) end [2025-08-27 08:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-27 08:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-27 08:25:27] Production.INFO: ==14147== Releasing lock... [2025-08-27 08:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 08:25:27] Production.INFO: 31.75 MB #Memory Used# [2025-08-27 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 06:25:05 [end_date_ymd] => 2025-08-27 09:25:05 [RateCDR] => 1 ) [2025-08-27 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-08-27 06:25:05' and `end` < '2025-08-27 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-08-27 09:25:17] Production.INFO: count ==1275 [2025-08-27 09:25:18] Production.ERROR: pbx CDR StartTime 2025-08-27 06:25:05 - End Time 2025-08-27 09:25:05 [2025-08-27 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15730918', 'tblTempUsageDetail_20' ) start [2025-08-27 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15730918', 'tblTempUsageDetail_20' ) end [2025-08-27 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15730918', 'tblTempVendorCDR_20' ) start [2025-08-27 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15730918', 'tblTempVendorCDR_20' ) end [2025-08-27 09:25:18] Production.INFO: ProcessCDR(1,15730918,1,1,2) [2025-08-27 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15730918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15730918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15730918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15730918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15730918', 'tblTempUsageDetail_20' ) start [2025-08-27 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15730918', 'tblTempUsageDetail_20' ) end [2025-08-27 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-27 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-27 09:25:27] Production.INFO: ==18425== Releasing lock... [2025-08-27 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 09:25:27] Production.INFO: 37.75 MB #Memory Used# [2025-08-27 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 07:25:05 [end_date_ymd] => 2025-08-27 10:25:05 [RateCDR] => 1 ) [2025-08-27 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-08-27 07:25:05' and `end` < '2025-08-27 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-08-27 10:25:20] Production.INFO: count ==2631 [2025-08-27 10:25:22] Production.ERROR: pbx CDR StartTime 2025-08-27 07:25:05 - End Time 2025-08-27 10:25:05 [2025-08-27 10:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15731165', 'tblTempUsageDetail_20' ) start [2025-08-27 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15731165', 'tblTempUsageDetail_20' ) end [2025-08-27 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15731165', 'tblTempVendorCDR_20' ) start [2025-08-27 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15731165', 'tblTempVendorCDR_20' ) end [2025-08-27 10:25:22] Production.INFO: ProcessCDR(1,15731165,1,1,2) [2025-08-27 10:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15731165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 10:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15731165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 10:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15731165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 10:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15731165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15731165', 'tblTempUsageDetail_20' ) start [2025-08-27 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15731165', 'tblTempUsageDetail_20' ) end [2025-08-27 10:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-27 10:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-27 10:25:32] Production.INFO: ==22624== Releasing lock... [2025-08-27 10:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 10:25:32] Production.INFO: 48.5 MB #Memory Used# [2025-08-27 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 08:25:05 [end_date_ymd] => 2025-08-27 11:25:05 [RateCDR] => 1 ) [2025-08-27 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-08-27 08:25:05' and `end` < '2025-08-27 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-08-27 11:25:20] Production.INFO: count ==4085 [2025-08-27 11:25:22] Production.ERROR: pbx CDR StartTime 2025-08-27 08:25:05 - End Time 2025-08-27 11:25:05 [2025-08-27 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15731412', 'tblTempUsageDetail_20' ) start [2025-08-27 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15731412', 'tblTempUsageDetail_20' ) end [2025-08-27 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15731412', 'tblTempVendorCDR_20' ) start [2025-08-27 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15731412', 'tblTempVendorCDR_20' ) end [2025-08-27 11:25:22] Production.INFO: ProcessCDR(1,15731412,1,1,2) [2025-08-27 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15731412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 11:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15731412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 11:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15731412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15731412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15731412', 'tblTempUsageDetail_20' ) start [2025-08-27 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15731412', 'tblTempUsageDetail_20' ) end [2025-08-27 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-27 11:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-27 11:25:33] Production.INFO: ==26854== Releasing lock... [2025-08-27 11:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 11:25:33] Production.INFO: 58.75 MB #Memory Used# [2025-08-27 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 09:25:05 [end_date_ymd] => 2025-08-27 12:25:05 [RateCDR] => 1 ) [2025-08-27 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-08-27 09:25:05' and `end` < '2025-08-27 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-08-27 12:25:19] Production.INFO: count ==4890 [2025-08-27 12:25:21] Production.ERROR: pbx CDR StartTime 2025-08-27 09:25:05 - End Time 2025-08-27 12:25:05 [2025-08-27 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15731659', 'tblTempUsageDetail_20' ) start [2025-08-27 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15731659', 'tblTempUsageDetail_20' ) end [2025-08-27 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15731659', 'tblTempVendorCDR_20' ) start [2025-08-27 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15731659', 'tblTempVendorCDR_20' ) end [2025-08-27 12:25:22] Production.INFO: ProcessCDR(1,15731659,1,1,2) [2025-08-27 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15731659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 12:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15731659,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 12:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15731659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 12:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15731659,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15731659', 'tblTempUsageDetail_20' ) start [2025-08-27 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15731659', 'tblTempUsageDetail_20' ) end [2025-08-27 12:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-27 12:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-27 12:25:33] Production.INFO: ==31202== Releasing lock... [2025-08-27 12:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 12:25:33] Production.INFO: 64.75 MB #Memory Used# [2025-08-27 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 10:25:05 [end_date_ymd] => 2025-08-27 13:25:05 [RateCDR] => 1 ) [2025-08-27 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-08-27 10:25:05' and `end` < '2025-08-27 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-08-27 13:25:18] Production.INFO: count ==4905 [2025-08-27 13:25:21] Production.ERROR: pbx CDR StartTime 2025-08-27 10:25:05 - End Time 2025-08-27 13:25:05 [2025-08-27 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15731906', 'tblTempUsageDetail_20' ) start [2025-08-27 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15731906', 'tblTempUsageDetail_20' ) end [2025-08-27 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15731906', 'tblTempVendorCDR_20' ) start [2025-08-27 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15731906', 'tblTempVendorCDR_20' ) end [2025-08-27 13:25:21] Production.INFO: ProcessCDR(1,15731906,1,1,2) [2025-08-27 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15731906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15731906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15731906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 13:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15731906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15731906', 'tblTempUsageDetail_20' ) start [2025-08-27 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15731906', 'tblTempUsageDetail_20' ) end [2025-08-27 13:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-27 13:25:31] Production.ERROR: pbx prc_insertCDR end [2025-08-27 13:25:31] Production.INFO: ==3261== Releasing lock... [2025-08-27 13:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 13:25:31] Production.INFO: 65 MB #Memory Used# [2025-08-27 14:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 11:25:06 [end_date_ymd] => 2025-08-27 14:25:06 [RateCDR] => 1 ) [2025-08-27 14: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-08-27 11:25:06' and `end` < '2025-08-27 14: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-08-27 14:25:20] Production.INFO: count ==4755 [2025-08-27 14:25:22] Production.ERROR: pbx CDR StartTime 2025-08-27 11:25:06 - End Time 2025-08-27 14:25:06 [2025-08-27 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15732153', 'tblTempUsageDetail_20' ) start [2025-08-27 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15732153', 'tblTempUsageDetail_20' ) end [2025-08-27 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15732153', 'tblTempVendorCDR_20' ) start [2025-08-27 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15732153', 'tblTempVendorCDR_20' ) end [2025-08-27 14:25:22] Production.INFO: ProcessCDR(1,15732153,1,1,2) [2025-08-27 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15732153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 14:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15732153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 14:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15732153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 14:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15732153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15732153', 'tblTempUsageDetail_20' ) start [2025-08-27 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15732153', 'tblTempUsageDetail_20' ) end [2025-08-27 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-27 14:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-27 14:25:34] Production.INFO: ==7546== Releasing lock... [2025-08-27 14:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 14:25:34] Production.INFO: 63.75 MB #Memory Used# [2025-08-27 15:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 12:25:04 [end_date_ymd] => 2025-08-27 15:25:04 [RateCDR] => 1 ) [2025-08-27 15:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-27 12:25:04' and `end` < '2025-08-27 15:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-27 15:25:19] Production.INFO: count ==4983 [2025-08-27 15:25:21] Production.ERROR: pbx CDR StartTime 2025-08-27 12:25:04 - End Time 2025-08-27 15:25:04 [2025-08-27 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15732400', 'tblTempUsageDetail_20' ) start [2025-08-27 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15732400', 'tblTempUsageDetail_20' ) end [2025-08-27 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15732400', 'tblTempVendorCDR_20' ) start [2025-08-27 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15732400', 'tblTempVendorCDR_20' ) end [2025-08-27 15:25:22] Production.INFO: ProcessCDR(1,15732400,1,1,2) [2025-08-27 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15732400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 15:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15732400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 15:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15732400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 15:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15732400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15732400', 'tblTempUsageDetail_20' ) start [2025-08-27 15:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15732400', 'tblTempUsageDetail_20' ) end [2025-08-27 15:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-27 15:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-27 15:25:34] Production.INFO: ==11948== Releasing lock... [2025-08-27 15:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 15:25:34] Production.INFO: 65.5 MB #Memory Used# [2025-08-27 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 13:25:05 [end_date_ymd] => 2025-08-27 16:25:05 [RateCDR] => 1 ) [2025-08-27 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-08-27 13:25:05' and `end` < '2025-08-27 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-08-27 16:25:20] Production.INFO: count ==5295 [2025-08-27 16:25:22] Production.ERROR: pbx CDR StartTime 2025-08-27 13:25:05 - End Time 2025-08-27 16:25:05 [2025-08-27 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15732647', 'tblTempUsageDetail_20' ) start [2025-08-27 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15732647', 'tblTempUsageDetail_20' ) end [2025-08-27 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15732647', 'tblTempVendorCDR_20' ) start [2025-08-27 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15732647', 'tblTempVendorCDR_20' ) end [2025-08-27 16:25:22] Production.INFO: ProcessCDR(1,15732647,1,1,2) [2025-08-27 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15732647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15732647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15732647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15732647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15732647', 'tblTempUsageDetail_20' ) start [2025-08-27 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15732647', 'tblTempUsageDetail_20' ) end [2025-08-27 16:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-27 16:25:35] Production.ERROR: pbx prc_insertCDR end [2025-08-27 16:25:35] Production.INFO: ==16363== Releasing lock... [2025-08-27 16:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 16:25:35] Production.INFO: 67.75 MB #Memory Used# [2025-08-27 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 14:25:05 [end_date_ymd] => 2025-08-27 17:25:05 [RateCDR] => 1 ) [2025-08-27 17:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-27 14:25:05' and `end` < '2025-08-27 17:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-27 17:25:19] Production.INFO: count ==4962 [2025-08-27 17:25:22] Production.ERROR: pbx CDR StartTime 2025-08-27 14:25:05 - End Time 2025-08-27 17:25:05 [2025-08-27 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15732894', 'tblTempUsageDetail_20' ) start [2025-08-27 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15732894', 'tblTempUsageDetail_20' ) end [2025-08-27 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15732894', 'tblTempVendorCDR_20' ) start [2025-08-27 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15732894', 'tblTempVendorCDR_20' ) end [2025-08-27 17:25:22] Production.INFO: ProcessCDR(1,15732894,1,1,2) [2025-08-27 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15732894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15732894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15732894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15732894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15732894', 'tblTempUsageDetail_20' ) start [2025-08-27 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15732894', 'tblTempUsageDetail_20' ) end [2025-08-27 17:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-27 17:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-27 17:25:34] Production.INFO: ==20828== Releasing lock... [2025-08-27 17:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 17:25:34] Production.INFO: 65.25 MB #Memory Used# [2025-08-27 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 15:25:06 [end_date_ymd] => 2025-08-27 18:25:06 [RateCDR] => 1 ) [2025-08-27 18:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-27 15:25:06' and `end` < '2025-08-27 18:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-27 18:25:18] Production.INFO: count ==4502 [2025-08-27 18:25:21] Production.ERROR: pbx CDR StartTime 2025-08-27 15:25:06 - End Time 2025-08-27 18:25:06 [2025-08-27 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15733141', 'tblTempUsageDetail_20' ) start [2025-08-27 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15733141', 'tblTempUsageDetail_20' ) end [2025-08-27 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15733141', 'tblTempVendorCDR_20' ) start [2025-08-27 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15733141', 'tblTempVendorCDR_20' ) end [2025-08-27 18:25:21] Production.INFO: ProcessCDR(1,15733141,1,1,2) [2025-08-27 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15733141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15733141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15733141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 18:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15733141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 18:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15733141', 'tblTempUsageDetail_20' ) start [2025-08-27 18:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15733141', 'tblTempUsageDetail_20' ) end [2025-08-27 18:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-27 18:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-27 18:25:34] Production.INFO: ==25961== Releasing lock... [2025-08-27 18:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 18:25:34] Production.INFO: 61.75 MB #Memory Used# [2025-08-27 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 16:25:05 [end_date_ymd] => 2025-08-27 19:25:05 [RateCDR] => 1 ) [2025-08-27 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-08-27 16:25:05' and `end` < '2025-08-27 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-08-27 19:25:18] Production.INFO: count ==3493 [2025-08-27 19:25:19] Production.ERROR: pbx CDR StartTime 2025-08-27 16:25:05 - End Time 2025-08-27 19:25:05 [2025-08-27 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15733385', 'tblTempUsageDetail_20' ) start [2025-08-27 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15733385', 'tblTempUsageDetail_20' ) end [2025-08-27 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15733385', 'tblTempVendorCDR_20' ) start [2025-08-27 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15733385', 'tblTempVendorCDR_20' ) end [2025-08-27 19:25:19] Production.INFO: ProcessCDR(1,15733385,1,1,2) [2025-08-27 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15733385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15733385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15733385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15733385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15733385', 'tblTempUsageDetail_20' ) start [2025-08-27 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15733385', 'tblTempUsageDetail_20' ) end [2025-08-27 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-27 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-08-27 19:25:28] Production.INFO: ==31341== Releasing lock... [2025-08-27 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 19:25:28] Production.INFO: 54.5 MB #Memory Used# [2025-08-27 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 17:25:05 [end_date_ymd] => 2025-08-27 20:25:05 [RateCDR] => 1 ) [2025-08-27 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-08-27 17:25:05' and `end` < '2025-08-27 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-08-27 20:25:18] Production.INFO: count ==2485 [2025-08-27 20:25:19] Production.ERROR: pbx CDR StartTime 2025-08-27 17:25:05 - End Time 2025-08-27 20:25:05 [2025-08-27 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15733632', 'tblTempUsageDetail_20' ) start [2025-08-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15733632', 'tblTempUsageDetail_20' ) end [2025-08-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15733632', 'tblTempVendorCDR_20' ) start [2025-08-27 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15733632', 'tblTempVendorCDR_20' ) end [2025-08-27 20:25:19] Production.INFO: ProcessCDR(1,15733632,1,1,2) [2025-08-27 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15733632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15733632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15733632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15733632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15733632', 'tblTempUsageDetail_20' ) start [2025-08-27 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15733632', 'tblTempUsageDetail_20' ) end [2025-08-27 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-27 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-08-27 20:25:28] Production.INFO: ==3579== Releasing lock... [2025-08-27 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 20:25:28] Production.INFO: 46.75 MB #Memory Used# [2025-08-27 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 18:25:05 [end_date_ymd] => 2025-08-27 21:25:05 [RateCDR] => 1 ) [2025-08-27 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-08-27 18:25:05' and `end` < '2025-08-27 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-08-27 21:25:18] Production.INFO: count ==1620 [2025-08-27 21:25:18] Production.ERROR: pbx CDR StartTime 2025-08-27 18:25:05 - End Time 2025-08-27 21:25:05 [2025-08-27 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15733879', 'tblTempUsageDetail_20' ) start [2025-08-27 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15733879', 'tblTempUsageDetail_20' ) end [2025-08-27 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15733879', 'tblTempVendorCDR_20' ) start [2025-08-27 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15733879', 'tblTempVendorCDR_20' ) end [2025-08-27 21:25:18] Production.INFO: ProcessCDR(1,15733879,1,1,2) [2025-08-27 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15733879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15733879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15733879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15733879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15733879', 'tblTempUsageDetail_20' ) start [2025-08-27 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15733879', 'tblTempUsageDetail_20' ) end [2025-08-27 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-27 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-27 21:25:26] Production.INFO: ==7806== Releasing lock... [2025-08-27 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 21:25:26] Production.INFO: 40.25 MB #Memory Used# [2025-08-27 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 19:25:05 [end_date_ymd] => 2025-08-27 22:25:05 [RateCDR] => 1 ) [2025-08-27 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-08-27 19:25:05' and `end` < '2025-08-27 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-08-27 22:25:17] Production.INFO: count ==1118 [2025-08-27 22:25:18] Production.ERROR: pbx CDR StartTime 2025-08-27 19:25:05 - End Time 2025-08-27 22:25:05 [2025-08-27 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15734126', 'tblTempUsageDetail_20' ) start [2025-08-27 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15734126', 'tblTempUsageDetail_20' ) end [2025-08-27 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15734126', 'tblTempVendorCDR_20' ) start [2025-08-27 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15734126', 'tblTempVendorCDR_20' ) end [2025-08-27 22:25:18] Production.INFO: ProcessCDR(1,15734126,1,1,2) [2025-08-27 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15734126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15734126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15734126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15734126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15734126', 'tblTempUsageDetail_20' ) start [2025-08-27 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15734126', 'tblTempUsageDetail_20' ) end [2025-08-27 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-27 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-27 22:25:26] Production.INFO: ==12024== Releasing lock... [2025-08-27 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 22:25:26] Production.INFO: 36.75 MB #Memory Used# [2025-08-27 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-27 20:25:05 [end_date_ymd] => 2025-08-27 23:25:05 [RateCDR] => 1 ) [2025-08-27 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-08-27 20:25:05' and `end` < '2025-08-27 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-08-27 23:25:18] Production.INFO: count ==838 [2025-08-27 23:25:18] Production.ERROR: pbx CDR StartTime 2025-08-27 20:25:05 - End Time 2025-08-27 23:25:05 [2025-08-27 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15734373', 'tblTempUsageDetail_20' ) start [2025-08-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15734373', 'tblTempUsageDetail_20' ) end [2025-08-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15734373', 'tblTempVendorCDR_20' ) start [2025-08-27 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15734373', 'tblTempVendorCDR_20' ) end [2025-08-27 23:25:18] Production.INFO: ProcessCDR(1,15734373,1,1,2) [2025-08-27 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15734373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15734373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-27 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15734373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15734373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-27 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15734373', 'tblTempUsageDetail_20' ) start [2025-08-27 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15734373', 'tblTempUsageDetail_20' ) end [2025-08-27 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-27 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-27 23:25:26] Production.INFO: ==16313== Releasing lock... [2025-08-27 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-27 23:25:26] Production.INFO: 34.25 MB #Memory Used#