[2025-11-17 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 21:00:07 [end_date_ymd] => 2025-11-17 00:00:07 [RateCDR] => 1 ) [2025-11-17 00:00:07] 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-11-16 21:00:07' and `end` < '2025-11-17 00:00:07' 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-11-17 00:00:20] Production.INFO: count ==851 [2025-11-17 00:00:21] Production.ERROR: pbx CDR StartTime 2025-11-16 21:00:07 - End Time 2025-11-17 00:00:07 [2025-11-17 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16214923', 'tblTempUsageDetail_20' ) start [2025-11-17 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16214923', 'tblTempUsageDetail_20' ) end [2025-11-17 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16214923', 'tblTempVendorCDR_20' ) start [2025-11-17 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16214923', 'tblTempVendorCDR_20' ) end [2025-11-17 00:00:21] Production.INFO: ProcessCDR(1,16214923,1,1,2) [2025-11-17 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16214923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 00:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16214923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 00:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16214923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 00:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16214923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 00:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16214923', 'tblTempUsageDetail_20' ) start [2025-11-17 00:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16214923', 'tblTempUsageDetail_20' ) end [2025-11-17 00:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-17 00:00:36] Production.ERROR: pbx prc_insertCDR end [2025-11-17 00:00:40] Production.INFO: ==8978== Releasing lock... [2025-11-17 00:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 00:00:40] Production.INFO: 37.5 MB #Memory Used# [2025-11-17 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 22:00:06 [end_date_ymd] => 2025-11-17 01:00:06 [RateCDR] => 1 ) [2025-11-17 01:00: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-11-16 22:00:06' and `end` < '2025-11-17 01:00: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-11-17 01:00:23] Production.INFO: count ==453 [2025-11-17 01:00:23] Production.ERROR: pbx CDR StartTime 2025-11-16 22:00:06 - End Time 2025-11-17 01:00:06 [2025-11-17 01:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 01:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16215171', 'tblTempUsageDetail_20' ) start [2025-11-17 01:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16215171', 'tblTempUsageDetail_20' ) end [2025-11-17 01:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16215171', 'tblTempVendorCDR_20' ) start [2025-11-17 01:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16215171', 'tblTempVendorCDR_20' ) end [2025-11-17 01:00:23] Production.INFO: ProcessCDR(1,16215171,1,1,2) [2025-11-17 01:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16215171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 01:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16215171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 01:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16215171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 01:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16215171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 01:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16215171', 'tblTempUsageDetail_20' ) start [2025-11-17 01:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16215171', 'tblTempUsageDetail_20' ) end [2025-11-17 01:00:33] Production.ERROR: pbx prc_insertCDR start [2025-11-17 01:00:34] Production.ERROR: pbx prc_insertCDR end [2025-11-17 01:00:34] Production.INFO: ==13491== Releasing lock... [2025-11-17 01:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 01:00:34] Production.INFO: 31.75 MB #Memory Used# [2025-11-17 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 23:00:07 [end_date_ymd] => 2025-11-17 02:00:07 [RateCDR] => 1 ) [2025-11-17 02:00:07] 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-11-16 23:00:07' and `end` < '2025-11-17 02:00:07' 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-11-17 02:00:19] Production.INFO: count ==368 [2025-11-17 02:00:19] Production.ERROR: pbx CDR StartTime 2025-11-16 23:00:07 - End Time 2025-11-17 02:00:07 [2025-11-17 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16215418', 'tblTempUsageDetail_20' ) start [2025-11-17 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16215418', 'tblTempUsageDetail_20' ) end [2025-11-17 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16215418', 'tblTempVendorCDR_20' ) start [2025-11-17 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16215418', 'tblTempVendorCDR_20' ) end [2025-11-17 02:00:19] Production.INFO: ProcessCDR(1,16215418,1,1,2) [2025-11-17 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16215418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 02:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16215418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 02:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16215418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 02:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16215418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 02:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16215418', 'tblTempUsageDetail_20' ) start [2025-11-17 02:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16215418', 'tblTempUsageDetail_20' ) end [2025-11-17 02:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-17 02:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-17 02:00:29] Production.INFO: ==18199== Releasing lock... [2025-11-17 02:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 02:00:29] Production.INFO: 31.25 MB #Memory Used# [2025-11-17 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 00:00:06 [end_date_ymd] => 2025-11-17 03:00:06 [RateCDR] => 1 ) [2025-11-17 03:00: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-11-17 00:00:06' and `end` < '2025-11-17 03:00: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-11-17 03:00:18] Production.INFO: count ==300 [2025-11-17 03:00:18] Production.ERROR: pbx CDR StartTime 2025-11-17 00:00:06 - End Time 2025-11-17 03:00:06 [2025-11-17 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16215665', 'tblTempUsageDetail_20' ) start [2025-11-17 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16215665', 'tblTempUsageDetail_20' ) end [2025-11-17 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16215665', 'tblTempVendorCDR_20' ) start [2025-11-17 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16215665', 'tblTempVendorCDR_20' ) end [2025-11-17 03:00:18] Production.INFO: ProcessCDR(1,16215665,1,1,2) [2025-11-17 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16215665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 03:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16215665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 03:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16215665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 03:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16215665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 03:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16215665', 'tblTempUsageDetail_20' ) start [2025-11-17 03:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16215665', 'tblTempUsageDetail_20' ) end [2025-11-17 03:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-17 03:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-17 03:00:28] Production.INFO: ==23049== Releasing lock... [2025-11-17 03:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 03:00:28] Production.INFO: 31 MB #Memory Used# [2025-11-17 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 01:00:07 [end_date_ymd] => 2025-11-17 04:00:07 [RateCDR] => 1 ) [2025-11-17 04:00:07] 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-11-17 01:00:07' and `end` < '2025-11-17 04:00:07' 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-11-17 04:00:19] Production.INFO: count ==209 [2025-11-17 04:00:19] Production.ERROR: pbx CDR StartTime 2025-11-17 01:00:07 - End Time 2025-11-17 04:00:07 [2025-11-17 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16215913', 'tblTempUsageDetail_20' ) start [2025-11-17 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16215913', 'tblTempUsageDetail_20' ) end [2025-11-17 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16215913', 'tblTempVendorCDR_20' ) start [2025-11-17 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16215913', 'tblTempVendorCDR_20' ) end [2025-11-17 04:00:19] Production.INFO: ProcessCDR(1,16215913,1,1,2) [2025-11-17 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16215913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 04:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16215913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 04:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16215913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 04:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16215913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 04:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16215913', 'tblTempUsageDetail_20' ) start [2025-11-17 04:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16215913', 'tblTempUsageDetail_20' ) end [2025-11-17 04:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-17 04:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-17 04:00:29] Production.INFO: ==27873== Releasing lock... [2025-11-17 04:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 04:00:29] Production.INFO: 30 MB #Memory Used# [2025-11-17 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 02:00:06 [end_date_ymd] => 2025-11-17 05:00:06 [RateCDR] => 1 ) [2025-11-17 05:00: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-11-17 02:00:06' and `end` < '2025-11-17 05:00: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-11-17 05:00:19] Production.INFO: count ==153 [2025-11-17 05:00:19] Production.ERROR: pbx CDR StartTime 2025-11-17 02:00:06 - End Time 2025-11-17 05:00:06 [2025-11-17 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16216161', 'tblTempUsageDetail_20' ) start [2025-11-17 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16216161', 'tblTempUsageDetail_20' ) end [2025-11-17 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16216161', 'tblTempVendorCDR_20' ) start [2025-11-17 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16216161', 'tblTempVendorCDR_20' ) end [2025-11-17 05:00:19] Production.INFO: ProcessCDR(1,16216161,1,1,2) [2025-11-17 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16216161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16216161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16216161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 05:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16216161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 05:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16216161', 'tblTempUsageDetail_20' ) start [2025-11-17 05:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16216161', 'tblTempUsageDetail_20' ) end [2025-11-17 05:00:26] Production.ERROR: pbx prc_insertCDR start [2025-11-17 05:00:26] Production.ERROR: pbx prc_insertCDR end [2025-11-17 05:00:26] Production.INFO: ==32753== Releasing lock... [2025-11-17 05:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 05:00:26] Production.INFO: 29.25 MB #Memory Used# [2025-11-17 06:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 03:00:07 [end_date_ymd] => 2025-11-17 06:00:07 [RateCDR] => 1 ) [2025-11-17 06:00:07] 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-11-17 03:00:07' and `end` < '2025-11-17 06:00:07' 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-11-17 06:00:19] Production.INFO: count ==115 [2025-11-17 06:00:19] Production.ERROR: pbx CDR StartTime 2025-11-17 03:00:07 - End Time 2025-11-17 06:00:07 [2025-11-17 06:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16216408', 'tblTempUsageDetail_20' ) start [2025-11-17 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16216408', 'tblTempUsageDetail_20' ) end [2025-11-17 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16216408', 'tblTempVendorCDR_20' ) start [2025-11-17 06:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16216408', 'tblTempVendorCDR_20' ) end [2025-11-17 06:00:19] Production.INFO: ProcessCDR(1,16216408,1,1,2) [2025-11-17 06:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16216408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 06:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16216408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 06:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16216408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 06:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16216408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 06:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16216408', 'tblTempUsageDetail_20' ) start [2025-11-17 06:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16216408', 'tblTempUsageDetail_20' ) end [2025-11-17 06:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-17 06:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-17 06:00:29] Production.INFO: ==4874== Releasing lock... [2025-11-17 06:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 06:00:29] Production.INFO: 29 MB #Memory Used# [2025-11-17 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 04:00:05 [end_date_ymd] => 2025-11-17 07:00:05 [RateCDR] => 1 ) [2025-11-17 07:00: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-11-17 04:00:05' and `end` < '2025-11-17 07:00: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-11-17 07:00:17] Production.INFO: count ==144 [2025-11-17 07:00:17] Production.ERROR: pbx CDR StartTime 2025-11-17 04:00:05 - End Time 2025-11-17 07:00:05 [2025-11-17 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16216654', 'tblTempUsageDetail_20' ) start [2025-11-17 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16216654', 'tblTempUsageDetail_20' ) end [2025-11-17 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16216654', 'tblTempVendorCDR_20' ) start [2025-11-17 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16216654', 'tblTempVendorCDR_20' ) end [2025-11-17 07:00:17] Production.INFO: ProcessCDR(1,16216654,1,1,2) [2025-11-17 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16216654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 07:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16216654,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 07:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16216654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 07:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16216654,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 07:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16216654', 'tblTempUsageDetail_20' ) start [2025-11-17 07:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16216654', 'tblTempUsageDetail_20' ) end [2025-11-17 07:00:27] Production.ERROR: pbx prc_insertCDR start [2025-11-17 07:00:27] Production.ERROR: pbx prc_insertCDR end [2025-11-17 07:00:27] Production.INFO: ==9493== Releasing lock... [2025-11-17 07:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 07:00:27] Production.INFO: 29 MB #Memory Used# [2025-11-17 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 05:00:06 [end_date_ymd] => 2025-11-17 08:00:06 [RateCDR] => 1 ) [2025-11-17 08:00: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-11-17 05:00:06' and `end` < '2025-11-17 08:00: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-11-17 08:00:19] Production.INFO: count ==283 [2025-11-17 08:00:19] Production.ERROR: pbx CDR StartTime 2025-11-17 05:00:06 - End Time 2025-11-17 08:00:06 [2025-11-17 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16216902', 'tblTempUsageDetail_20' ) start [2025-11-17 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16216902', 'tblTempUsageDetail_20' ) end [2025-11-17 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16216902', 'tblTempVendorCDR_20' ) start [2025-11-17 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16216902', 'tblTempVendorCDR_20' ) end [2025-11-17 08:00:19] Production.INFO: ProcessCDR(1,16216902,1,1,2) [2025-11-17 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16216902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 08:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16216902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 08:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16216902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 08:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16216902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 08:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16216902', 'tblTempUsageDetail_20' ) start [2025-11-17 08:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16216902', 'tblTempUsageDetail_20' ) end [2025-11-17 08:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-17 08:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-17 08:00:29] Production.INFO: ==13910== Releasing lock... [2025-11-17 08:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 08:00:29] Production.INFO: 31 MB #Memory Used# [2025-11-17 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 06:00:06 [end_date_ymd] => 2025-11-17 09:00:06 [RateCDR] => 1 ) [2025-11-17 09:00: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-11-17 06:00:06' and `end` < '2025-11-17 09:00: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-11-17 09:00:18] Production.INFO: count ==1155 [2025-11-17 09:00:19] Production.ERROR: pbx CDR StartTime 2025-11-17 06:00:06 - End Time 2025-11-17 09:00:06 [2025-11-17 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16217149', 'tblTempUsageDetail_20' ) start [2025-11-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16217149', 'tblTempUsageDetail_20' ) end [2025-11-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16217149', 'tblTempVendorCDR_20' ) start [2025-11-17 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16217149', 'tblTempVendorCDR_20' ) end [2025-11-17 09:00:19] Production.INFO: ProcessCDR(1,16217149,1,1,2) [2025-11-17 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16217149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 09:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16217149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 09:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16217149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 09:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16217149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 09:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16217149', 'tblTempUsageDetail_20' ) start [2025-11-17 09:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16217149', 'tblTempUsageDetail_20' ) end [2025-11-17 09:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-17 09:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-17 09:00:30] Production.INFO: ==18313== Releasing lock... [2025-11-17 09:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 09:00:30] Production.INFO: 37.75 MB #Memory Used# [2025-11-17 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 07:00:06 [end_date_ymd] => 2025-11-17 10:00:06 [RateCDR] => 1 ) [2025-11-17 10:00: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-11-17 07:00:06' and `end` < '2025-11-17 10:00: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-11-17 10:00:23] Production.INFO: count ==3153 [2025-11-17 10:00:24] Production.ERROR: pbx CDR StartTime 2025-11-17 07:00:06 - End Time 2025-11-17 10:00:06 [2025-11-17 10:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 10:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16217396', 'tblTempUsageDetail_20' ) start [2025-11-17 10:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16217396', 'tblTempUsageDetail_20' ) end [2025-11-17 10:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16217396', 'tblTempVendorCDR_20' ) start [2025-11-17 10:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16217396', 'tblTempVendorCDR_20' ) end [2025-11-17 10:00:24] Production.INFO: ProcessCDR(1,16217396,1,1,2) [2025-11-17 10:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16217396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 10:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16217396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 10:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16217396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 10:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16217396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 10:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16217396', 'tblTempUsageDetail_20' ) start [2025-11-17 10:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16217396', 'tblTempUsageDetail_20' ) end [2025-11-17 10:00:36] Production.ERROR: pbx prc_insertCDR start [2025-11-17 10:00:38] Production.ERROR: pbx prc_insertCDR end [2025-11-17 10:00:38] Production.INFO: ==22600== Releasing lock... [2025-11-17 10:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 10:00:38] Production.INFO: 51.75 MB #Memory Used# [2025-11-17 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 08:00:06 [end_date_ymd] => 2025-11-17 11:00:06 [RateCDR] => 1 ) [2025-11-17 11:00: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-11-17 08:00:06' and `end` < '2025-11-17 11:00: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-11-17 11:00:20] Production.INFO: count ==5048 [2025-11-17 11:00:22] Production.ERROR: pbx CDR StartTime 2025-11-17 08:00:06 - End Time 2025-11-17 11:00:06 [2025-11-17 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16217643', 'tblTempUsageDetail_20' ) start [2025-11-17 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16217643', 'tblTempUsageDetail_20' ) end [2025-11-17 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16217643', 'tblTempVendorCDR_20' ) start [2025-11-17 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16217643', 'tblTempVendorCDR_20' ) end [2025-11-17 11:00:23] Production.INFO: ProcessCDR(1,16217643,1,1,2) [2025-11-17 11:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16217643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 11:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16217643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 11:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16217643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 11:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16217643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16217643', 'tblTempUsageDetail_20' ) start [2025-11-17 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16217643', 'tblTempUsageDetail_20' ) end [2025-11-17 11:00:34] Production.ERROR: pbx prc_insertCDR start [2025-11-17 11:00:37] Production.ERROR: pbx prc_insertCDR end [2025-11-17 11:00:37] Production.INFO: ==27143== Releasing lock... [2025-11-17 11:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 11:00:37] Production.INFO: 66 MB #Memory Used# [2025-11-17 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 09:00:06 [end_date_ymd] => 2025-11-17 12:00:06 [RateCDR] => 1 ) [2025-11-17 12:00: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-11-17 09:00:06' and `end` < '2025-11-17 12:00: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-11-17 12:00:22] Production.INFO: count ==6303 [2025-11-17 12:00:25] Production.ERROR: pbx CDR StartTime 2025-11-17 09:00:06 - End Time 2025-11-17 12:00:06 [2025-11-17 12:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16217890', 'tblTempUsageDetail_20' ) start [2025-11-17 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16217890', 'tblTempUsageDetail_20' ) end [2025-11-17 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16217890', 'tblTempVendorCDR_20' ) start [2025-11-17 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16217890', 'tblTempVendorCDR_20' ) end [2025-11-17 12:00:25] Production.INFO: ProcessCDR(1,16217890,1,1,2) [2025-11-17 12:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16217890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 12:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16217890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 12:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16217890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 12:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16217890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16217890', 'tblTempUsageDetail_20' ) start [2025-11-17 12:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16217890', 'tblTempUsageDetail_20' ) end [2025-11-17 12:00:37] Production.ERROR: pbx prc_insertCDR start [2025-11-17 12:00:40] Production.ERROR: pbx prc_insertCDR end [2025-11-17 12:00:40] Production.INFO: ==31420== Releasing lock... [2025-11-17 12:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 12:00:40] Production.INFO: 75.5 MB #Memory Used# [2025-11-17 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 10:00:05 [end_date_ymd] => 2025-11-17 13:00:05 [RateCDR] => 1 ) [2025-11-17 13:00: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-11-17 10:00:05' and `end` < '2025-11-17 13:00: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-11-17 13:00:20] Production.INFO: count ==6328 [2025-11-17 13:00:23] Production.ERROR: pbx CDR StartTime 2025-11-17 10:00:05 - End Time 2025-11-17 13:00:05 [2025-11-17 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16218136', 'tblTempUsageDetail_20' ) start [2025-11-17 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16218136', 'tblTempUsageDetail_20' ) end [2025-11-17 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16218136', 'tblTempVendorCDR_20' ) start [2025-11-17 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16218136', 'tblTempVendorCDR_20' ) end [2025-11-17 13:00:24] Production.INFO: ProcessCDR(1,16218136,1,1,2) [2025-11-17 13:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16218136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 13:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16218136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 13:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16218136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 13:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16218136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 13:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16218136', 'tblTempUsageDetail_20' ) start [2025-11-17 13:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16218136', 'tblTempUsageDetail_20' ) end [2025-11-17 13:00:36] Production.ERROR: pbx prc_insertCDR start [2025-11-17 13:00:39] Production.ERROR: pbx prc_insertCDR end [2025-11-17 13:00:39] Production.INFO: ==3708== Releasing lock... [2025-11-17 13:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 13:00:39] Production.INFO: 75.75 MB #Memory Used# [2025-11-17 14:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 11:00:07 [end_date_ymd] => 2025-11-17 14:00:07 [RateCDR] => 1 ) [2025-11-17 14:00:07] 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-11-17 11:00:07' and `end` < '2025-11-17 14:00:07' 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-11-17 14:00:25] Production.INFO: count ==5937 [2025-11-17 14:00:28] Production.ERROR: pbx CDR StartTime 2025-11-17 11:00:07 - End Time 2025-11-17 14:00:07 [2025-11-17 14:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 14:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16218383', 'tblTempUsageDetail_20' ) start [2025-11-17 14:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16218383', 'tblTempUsageDetail_20' ) end [2025-11-17 14:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16218383', 'tblTempVendorCDR_20' ) start [2025-11-17 14:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16218383', 'tblTempVendorCDR_20' ) end [2025-11-17 14:00:29] Production.INFO: ProcessCDR(1,16218383,1,1,2) [2025-11-17 14:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16218383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 14:00:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16218383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 14:00:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16218383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 14:00:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16218383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 14:00:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16218383', 'tblTempUsageDetail_20' ) start [2025-11-17 14:00:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16218383', 'tblTempUsageDetail_20' ) end [2025-11-17 14:00:41] Production.ERROR: pbx prc_insertCDR start [2025-11-17 14:00:43] Production.ERROR: pbx prc_insertCDR end [2025-11-17 14:00:43] Production.INFO: ==8504== Releasing lock... [2025-11-17 14:00:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 14:00:43] Production.INFO: 72.75 MB #Memory Used# [2025-11-17 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 12:00:06 [end_date_ymd] => 2025-11-17 15:00:06 [RateCDR] => 1 ) [2025-11-17 15:00: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-11-17 12:00:06' and `end` < '2025-11-17 15:00: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-11-17 15:00:20] Production.INFO: count ==5591 [2025-11-17 15:00:23] Production.ERROR: pbx CDR StartTime 2025-11-17 12:00:06 - End Time 2025-11-17 15:00:06 [2025-11-17 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16218631', 'tblTempUsageDetail_20' ) start [2025-11-17 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16218631', 'tblTempUsageDetail_20' ) end [2025-11-17 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16218631', 'tblTempVendorCDR_20' ) start [2025-11-17 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16218631', 'tblTempVendorCDR_20' ) end [2025-11-17 15:00:23] Production.INFO: ProcessCDR(1,16218631,1,1,2) [2025-11-17 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16218631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 15:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16218631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 15:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16218631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 15:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16218631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 15:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16218631', 'tblTempUsageDetail_20' ) start [2025-11-17 15:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16218631', 'tblTempUsageDetail_20' ) end [2025-11-17 15:00:36] Production.ERROR: pbx prc_insertCDR start [2025-11-17 15:00:38] Production.ERROR: pbx prc_insertCDR end [2025-11-17 15:00:39] Production.INFO: ==14323== Releasing lock... [2025-11-17 15:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 15:00:39] Production.INFO: 70 MB #Memory Used# [2025-11-17 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 13:00:06 [end_date_ymd] => 2025-11-17 16:00:06 [RateCDR] => 1 ) [2025-11-17 16:00: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-11-17 13:00:06' and `end` < '2025-11-17 16:00: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-11-17 16:00:21] Production.INFO: count ==5509 [2025-11-17 16:00:24] Production.ERROR: pbx CDR StartTime 2025-11-17 13:00:06 - End Time 2025-11-17 16:00:06 [2025-11-17 16:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 16:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16218878', 'tblTempUsageDetail_20' ) start [2025-11-17 16:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16218878', 'tblTempUsageDetail_20' ) end [2025-11-17 16:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16218878', 'tblTempVendorCDR_20' ) start [2025-11-17 16:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16218878', 'tblTempVendorCDR_20' ) end [2025-11-17 16:00:25] Production.INFO: ProcessCDR(1,16218878,1,1,2) [2025-11-17 16:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16218878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 16:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16218878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 16:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16218878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 16:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16218878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 16:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16218878', 'tblTempUsageDetail_20' ) start [2025-11-17 16:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16218878', 'tblTempUsageDetail_20' ) end [2025-11-17 16:00:37] Production.ERROR: pbx prc_insertCDR start [2025-11-17 16:00:40] Production.ERROR: pbx prc_insertCDR end [2025-11-17 16:00:40] Production.INFO: ==18736== Releasing lock... [2025-11-17 16:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 16:00:40] Production.INFO: 69.5 MB #Memory Used# [2025-11-17 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 14:00:06 [end_date_ymd] => 2025-11-17 17:00:06 [RateCDR] => 1 ) [2025-11-17 17:00: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-11-17 14:00:06' and `end` < '2025-11-17 17:00: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-11-17 17:00:20] Production.INFO: count ==5671 [2025-11-17 17:00:23] Production.ERROR: pbx CDR StartTime 2025-11-17 14:00:06 - End Time 2025-11-17 17:00:06 [2025-11-17 17:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16219125', 'tblTempUsageDetail_20' ) start [2025-11-17 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16219125', 'tblTempUsageDetail_20' ) end [2025-11-17 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16219125', 'tblTempVendorCDR_20' ) start [2025-11-17 17:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16219125', 'tblTempVendorCDR_20' ) end [2025-11-17 17:00:23] Production.INFO: ProcessCDR(1,16219125,1,1,2) [2025-11-17 17:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16219125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 17:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16219125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 17:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16219125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 17:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16219125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 17:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16219125', 'tblTempUsageDetail_20' ) start [2025-11-17 17:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16219125', 'tblTempUsageDetail_20' ) end [2025-11-17 17:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-17 17:00:37] Production.ERROR: pbx prc_insertCDR end [2025-11-17 17:00:37] Production.INFO: ==23120== Releasing lock... [2025-11-17 17:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 17:00:37] Production.INFO: 70.75 MB #Memory Used# [2025-11-17 18:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 15:00:07 [end_date_ymd] => 2025-11-17 18:00:07 [RateCDR] => 1 ) [2025-11-17 18:00:07] 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-11-17 15:00:07' and `end` < '2025-11-17 18:00:07' 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-11-17 18:00:20] Production.INFO: count ==4826 [2025-11-17 18:00:22] Production.ERROR: pbx CDR StartTime 2025-11-17 15:00:07 - End Time 2025-11-17 18:00:07 [2025-11-17 18:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16219371', 'tblTempUsageDetail_20' ) start [2025-11-17 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16219371', 'tblTempUsageDetail_20' ) end [2025-11-17 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16219371', 'tblTempVendorCDR_20' ) start [2025-11-17 18:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16219371', 'tblTempVendorCDR_20' ) end [2025-11-17 18:00:22] Production.INFO: ProcessCDR(1,16219371,1,1,2) [2025-11-17 18:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16219371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 18:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16219371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 18:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16219371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 18:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16219371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 18:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16219371', 'tblTempUsageDetail_20' ) start [2025-11-17 18:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16219371', 'tblTempUsageDetail_20' ) end [2025-11-17 18:00:34] Production.ERROR: pbx prc_insertCDR start [2025-11-17 18:00:35] Production.ERROR: pbx prc_insertCDR end [2025-11-17 18:00:35] Production.INFO: ==27796== Releasing lock... [2025-11-17 18:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 18:00:35] Production.INFO: 64.25 MB #Memory Used# [2025-11-17 19:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 16:00:07 [end_date_ymd] => 2025-11-17 19:00:07 [RateCDR] => 1 ) [2025-11-17 19:00:07] 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-11-17 16:00:07' and `end` < '2025-11-17 19:00:07' 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-11-17 19:00:20] Production.INFO: count ==3631 [2025-11-17 19:00:21] Production.ERROR: pbx CDR StartTime 2025-11-17 16:00:07 - End Time 2025-11-17 19:00:07 [2025-11-17 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16219618', 'tblTempUsageDetail_20' ) start [2025-11-17 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16219618', 'tblTempUsageDetail_20' ) end [2025-11-17 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16219618', 'tblTempVendorCDR_20' ) start [2025-11-17 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16219618', 'tblTempVendorCDR_20' ) end [2025-11-17 19:00:21] Production.INFO: ProcessCDR(1,16219618,1,1,2) [2025-11-17 19:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16219618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 19:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16219618,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 19:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16219618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 19:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16219618,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 19:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16219618', 'tblTempUsageDetail_20' ) start [2025-11-17 19:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16219618', 'tblTempUsageDetail_20' ) end [2025-11-17 19:00:32] Production.ERROR: pbx prc_insertCDR start [2025-11-17 19:00:33] Production.ERROR: pbx prc_insertCDR end [2025-11-17 19:00:33] Production.INFO: ==32591== Releasing lock... [2025-11-17 19:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 19:00:33] Production.INFO: 55.25 MB #Memory Used# [2025-11-17 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 17:00:06 [end_date_ymd] => 2025-11-17 20:00:06 [RateCDR] => 1 ) [2025-11-17 20:00: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-11-17 17:00:06' and `end` < '2025-11-17 20:00: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-11-17 20:00:18] Production.INFO: count ==2273 [2025-11-17 20:00:19] Production.ERROR: pbx CDR StartTime 2025-11-17 17:00:06 - End Time 2025-11-17 20:00:06 [2025-11-17 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16219865', 'tblTempUsageDetail_20' ) start [2025-11-17 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16219865', 'tblTempUsageDetail_20' ) end [2025-11-17 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16219865', 'tblTempVendorCDR_20' ) start [2025-11-17 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16219865', 'tblTempVendorCDR_20' ) end [2025-11-17 20:00:19] Production.INFO: ProcessCDR(1,16219865,1,1,2) [2025-11-17 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16219865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 20:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16219865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 20:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16219865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 20:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16219865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 20:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16219865', 'tblTempUsageDetail_20' ) start [2025-11-17 20:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16219865', 'tblTempUsageDetail_20' ) end [2025-11-17 20:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-17 20:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-17 20:00:29] Production.INFO: ==5087== Releasing lock... [2025-11-17 20:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 20:00:29] Production.INFO: 45.25 MB #Memory Used# [2025-11-17 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 18:00:06 [end_date_ymd] => 2025-11-17 21:00:06 [RateCDR] => 1 ) [2025-11-17 21:00: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-11-17 18:00:06' and `end` < '2025-11-17 21:00: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-11-17 21:00:19] Production.INFO: count ==1685 [2025-11-17 21:00:19] Production.ERROR: pbx CDR StartTime 2025-11-17 18:00:06 - End Time 2025-11-17 21:00:06 [2025-11-17 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16220112', 'tblTempUsageDetail_20' ) start [2025-11-17 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16220112', 'tblTempUsageDetail_20' ) end [2025-11-17 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16220112', 'tblTempVendorCDR_20' ) start [2025-11-17 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16220112', 'tblTempVendorCDR_20' ) end [2025-11-17 21:00:19] Production.INFO: ProcessCDR(1,16220112,1,1,2) [2025-11-17 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16220112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 21:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16220112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 21:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16220112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 21:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16220112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 21:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16220112', 'tblTempUsageDetail_20' ) start [2025-11-17 21:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16220112', 'tblTempUsageDetail_20' ) end [2025-11-17 21:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-17 21:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-17 21:00:30] Production.INFO: ==9501== Releasing lock... [2025-11-17 21:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 21:00:30] Production.INFO: 40.75 MB #Memory Used# [2025-11-17 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 19:00:07 [end_date_ymd] => 2025-11-17 22:00:07 [RateCDR] => 1 ) [2025-11-17 22:00:07] 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-11-17 19:00:07' and `end` < '2025-11-17 22:00:07' 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-11-17 22:00:19] Production.INFO: count ==1201 [2025-11-17 22:00:19] Production.ERROR: pbx CDR StartTime 2025-11-17 19:00:07 - End Time 2025-11-17 22:00:07 [2025-11-17 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16220359', 'tblTempUsageDetail_20' ) start [2025-11-17 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16220359', 'tblTempUsageDetail_20' ) end [2025-11-17 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16220359', 'tblTempVendorCDR_20' ) start [2025-11-17 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16220359', 'tblTempVendorCDR_20' ) end [2025-11-17 22:00:19] Production.INFO: ProcessCDR(1,16220359,1,1,2) [2025-11-17 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16220359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 22:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16220359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 22:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16220359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 22:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16220359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 22:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16220359', 'tblTempUsageDetail_20' ) start [2025-11-17 22:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16220359', 'tblTempUsageDetail_20' ) end [2025-11-17 22:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-17 22:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-17 22:00:30] Production.INFO: ==14029== Releasing lock... [2025-11-17 22:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 22:00:30] Production.INFO: 37.25 MB #Memory Used# [2025-11-17 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-17 20:00:06 [end_date_ymd] => 2025-11-17 23:00:06 [RateCDR] => 1 ) [2025-11-17 23:00: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-11-17 20:00:06' and `end` < '2025-11-17 23:00: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-11-17 23:00:18] Production.INFO: count ==965 [2025-11-17 23:00:19] Production.ERROR: pbx CDR StartTime 2025-11-17 20:00:06 - End Time 2025-11-17 23:00:06 [2025-11-17 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-17 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16220606', 'tblTempUsageDetail_20' ) start [2025-11-17 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16220606', 'tblTempUsageDetail_20' ) end [2025-11-17 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16220606', 'tblTempVendorCDR_20' ) start [2025-11-17 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16220606', 'tblTempVendorCDR_20' ) end [2025-11-17 23:00:19] Production.INFO: ProcessCDR(1,16220606,1,1,2) [2025-11-17 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16220606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 23:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16220606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-17 23:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16220606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 23:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16220606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-17 23:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16220606', 'tblTempUsageDetail_20' ) start [2025-11-17 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16220606', 'tblTempUsageDetail_20' ) end [2025-11-17 23:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-17 23:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-17 23:00:29] Production.INFO: ==18536== Releasing lock... [2025-11-17 23:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-17 23:00:29] Production.INFO: 35.75 MB #Memory Used#