[2025-10-16 00:25:04] Production.INFO: next invoice date [2025-10-16 00:25:04] Production.INFO: 2025-11-16 [2025-10-16 00:25:04] Production.INFO: getdaysdiff [2025-10-16 00:25:04] Production.INFO: +31 [2025-10-16 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (107,16,1,31,31,'RMScheduler',2025-10-16 00:25:04,1,0,,,0) [2025-10-16 00:25:04] Production.INFO: next invoice date [2025-10-16 00:25:04] Production.INFO: 2025-11-16 [2025-10-16 00:25:04] Production.INFO: getdaysdiff [2025-10-16 00:25:04] Production.INFO: +31 [2025-10-16 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (140,16,1,31,31,'RMScheduler',2025-10-16 00:25:04,1,0,,,0) [2025-10-16 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 21:25:05 [end_date_ymd] => 2025-10-16 00:25:05 [RateCDR] => 1 ) [2025-10-16 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-10-15 21:25:05' and `end` < '2025-10-16 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-16 00:25:18] Production.INFO: count ==572 [2025-10-16 00:25:18] Production.ERROR: pbx CDR StartTime 2025-10-15 21:25:05 - End Time 2025-10-16 00:25:05 [2025-10-16 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16025059', 'tblTempUsageDetail_20' ) start [2025-10-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16025059', 'tblTempUsageDetail_20' ) end [2025-10-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16025059', 'tblTempVendorCDR_20' ) start [2025-10-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16025059', 'tblTempVendorCDR_20' ) end [2025-10-16 00:25:18] Production.INFO: ProcessCDR(1,16025059,1,1,2) [2025-10-16 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16025059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16025059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16025059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 00:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16025059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 00:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16025059', 'tblTempUsageDetail_20' ) start [2025-10-16 00:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16025059', 'tblTempUsageDetail_20' ) end [2025-10-16 00:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-16 00:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-16 00:25:30] Production.INFO: ==30348== Releasing lock... [2025-10-16 00:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 00:25:30] Production.INFO: 36.5 MB #Memory Used# [2025-10-16 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 22:25:05 [end_date_ymd] => 2025-10-16 01:25:05 [RateCDR] => 1 ) [2025-10-16 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-10-15 22:25:05' and `end` < '2025-10-16 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-10-16 01:25:17] Production.INFO: count ==627 [2025-10-16 01:25:17] Production.ERROR: pbx CDR StartTime 2025-10-15 22:25:05 - End Time 2025-10-16 01:25:05 [2025-10-16 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16025306', 'tblTempUsageDetail_20' ) start [2025-10-16 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16025306', 'tblTempUsageDetail_20' ) end [2025-10-16 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16025306', 'tblTempVendorCDR_20' ) start [2025-10-16 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16025306', 'tblTempVendorCDR_20' ) end [2025-10-16 01:25:17] Production.INFO: ProcessCDR(1,16025306,1,1,2) [2025-10-16 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16025306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16025306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16025306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16025306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16025306', 'tblTempUsageDetail_20' ) start [2025-10-16 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16025306', 'tblTempUsageDetail_20' ) end [2025-10-16 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-16 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-16 01:25:26] Production.INFO: ==2469== Releasing lock... [2025-10-16 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 01:25:26] Production.INFO: 33.5 MB #Memory Used# [2025-10-16 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-15 23:25:05 [end_date_ymd] => 2025-10-16 02:25:05 [RateCDR] => 1 ) [2025-10-16 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-10-15 23:25:05' and `end` < '2025-10-16 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-10-16 02:25:18] Production.INFO: count ==596 [2025-10-16 02:25:18] Production.ERROR: pbx CDR StartTime 2025-10-15 23:25:05 - End Time 2025-10-16 02:25:05 [2025-10-16 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16025553', 'tblTempUsageDetail_20' ) start [2025-10-16 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16025553', 'tblTempUsageDetail_20' ) end [2025-10-16 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16025553', 'tblTempVendorCDR_20' ) start [2025-10-16 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16025553', 'tblTempVendorCDR_20' ) end [2025-10-16 02:25:18] Production.INFO: ProcessCDR(1,16025553,1,1,2) [2025-10-16 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16025553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16025553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16025553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 02:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16025553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16025553', 'tblTempUsageDetail_20' ) start [2025-10-16 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16025553', 'tblTempUsageDetail_20' ) end [2025-10-16 02:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-16 02:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-16 02:25:27] Production.INFO: ==7030== Releasing lock... [2025-10-16 02:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 02:25:27] Production.INFO: 33.25 MB #Memory Used# [2025-10-16 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 00:25:05 [end_date_ymd] => 2025-10-16 03:25:05 [RateCDR] => 1 ) [2025-10-16 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-16 00:25:05' and `end` < '2025-10-16 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-16 03:25:17] Production.INFO: count ==380 [2025-10-16 03:25:17] Production.ERROR: pbx CDR StartTime 2025-10-16 00:25:05 - End Time 2025-10-16 03:25:05 [2025-10-16 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16025800', 'tblTempUsageDetail_20' ) start [2025-10-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16025800', 'tblTempUsageDetail_20' ) end [2025-10-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16025800', 'tblTempVendorCDR_20' ) start [2025-10-16 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16025800', 'tblTempVendorCDR_20' ) end [2025-10-16 03:25:17] Production.INFO: ProcessCDR(1,16025800,1,1,2) [2025-10-16 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16025800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16025800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16025800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16025800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16025800', 'tblTempUsageDetail_20' ) start [2025-10-16 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16025800', 'tblTempUsageDetail_20' ) end [2025-10-16 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-10-16 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-10-16 03:25:23] Production.INFO: ==11785== Releasing lock... [2025-10-16 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 03:25:23] Production.INFO: 31.75 MB #Memory Used# [2025-10-16 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 01:25:05 [end_date_ymd] => 2025-10-16 04:25:05 [RateCDR] => 1 ) [2025-10-16 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-10-16 01:25:05' and `end` < '2025-10-16 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-10-16 04:25:17] Production.INFO: count ==188 [2025-10-16 04:25:17] Production.ERROR: pbx CDR StartTime 2025-10-16 01:25:05 - End Time 2025-10-16 04:25:05 [2025-10-16 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16026048', 'tblTempUsageDetail_20' ) start [2025-10-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16026048', 'tblTempUsageDetail_20' ) end [2025-10-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16026048', 'tblTempVendorCDR_20' ) start [2025-10-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16026048', 'tblTempVendorCDR_20' ) end [2025-10-16 04:25:17] Production.INFO: ProcessCDR(1,16026048,1,1,2) [2025-10-16 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16026048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16026048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16026048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16026048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16026048', 'tblTempUsageDetail_20' ) start [2025-10-16 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16026048', 'tblTempUsageDetail_20' ) end [2025-10-16 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-16 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-16 04:25:25] Production.INFO: ==16290== Releasing lock... [2025-10-16 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 04:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-10-16 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 02:25:06 [end_date_ymd] => 2025-10-16 05:25:06 [RateCDR] => 1 ) [2025-10-16 05: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-10-16 02:25:06' and `end` < '2025-10-16 05: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-10-16 05:25:19] Production.INFO: count ==119 [2025-10-16 05:25:19] Production.ERROR: pbx CDR StartTime 2025-10-16 02:25:06 - End Time 2025-10-16 05:25:06 [2025-10-16 05:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16026296', 'tblTempUsageDetail_20' ) start [2025-10-16 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16026296', 'tblTempUsageDetail_20' ) end [2025-10-16 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16026296', 'tblTempVendorCDR_20' ) start [2025-10-16 05:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16026296', 'tblTempVendorCDR_20' ) end [2025-10-16 05:25:19] Production.INFO: ProcessCDR(1,16026296,1,1,2) [2025-10-16 05:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16026296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 05:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16026296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 05:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16026296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 05:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16026296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 05:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16026296', 'tblTempUsageDetail_20' ) start [2025-10-16 05:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16026296', 'tblTempUsageDetail_20' ) end [2025-10-16 05:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-16 05:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-16 05:25:27] Production.INFO: ==20891== Releasing lock... [2025-10-16 05:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 05:25:27] Production.INFO: 28.75 MB #Memory Used# [2025-10-16 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 03:25:05 [end_date_ymd] => 2025-10-16 06:25:05 [RateCDR] => 1 ) [2025-10-16 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-10-16 03:25:05' and `end` < '2025-10-16 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-10-16 06:25:17] Production.INFO: count ==109 [2025-10-16 06:25:17] Production.ERROR: pbx CDR StartTime 2025-10-16 03:25:05 - End Time 2025-10-16 06:25:05 [2025-10-16 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16026543', 'tblTempUsageDetail_20' ) start [2025-10-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16026543', 'tblTempUsageDetail_20' ) end [2025-10-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16026543', 'tblTempVendorCDR_20' ) start [2025-10-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16026543', 'tblTempVendorCDR_20' ) end [2025-10-16 06:25:17] Production.INFO: ProcessCDR(1,16026543,1,1,2) [2025-10-16 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16026543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16026543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16026543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16026543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16026543', 'tblTempUsageDetail_20' ) start [2025-10-16 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16026543', 'tblTempUsageDetail_20' ) end [2025-10-16 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-10-16 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-10-16 06:25:23] Production.INFO: ==25352== Releasing lock... [2025-10-16 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 06:25:23] Production.INFO: 28.75 MB #Memory Used# [2025-10-16 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 04:25:05 [end_date_ymd] => 2025-10-16 07:25:05 [RateCDR] => 1 ) [2025-10-16 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-16 04:25:05' and `end` < '2025-10-16 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-16 07:25:17] Production.INFO: count ==115 [2025-10-16 07:25:17] Production.ERROR: pbx CDR StartTime 2025-10-16 04:25:05 - End Time 2025-10-16 07:25:05 [2025-10-16 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16026790', 'tblTempUsageDetail_20' ) start [2025-10-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16026790', 'tblTempUsageDetail_20' ) end [2025-10-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16026790', 'tblTempVendorCDR_20' ) start [2025-10-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16026790', 'tblTempVendorCDR_20' ) end [2025-10-16 07:25:17] Production.INFO: ProcessCDR(1,16026790,1,1,2) [2025-10-16 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16026790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16026790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16026790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 07:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16026790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16026790', 'tblTempUsageDetail_20' ) start [2025-10-16 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16026790', 'tblTempUsageDetail_20' ) end [2025-10-16 07:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-16 07:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-16 07:25:26] Production.INFO: ==29801== Releasing lock... [2025-10-16 07:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 07:25:26] Production.INFO: 28.75 MB #Memory Used# [2025-10-16 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 05:25:05 [end_date_ymd] => 2025-10-16 08:25:05 [RateCDR] => 1 ) [2025-10-16 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-16 05:25:05' and `end` < '2025-10-16 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-16 08:25:18] Production.INFO: count ==399 [2025-10-16 08:25:18] Production.ERROR: pbx CDR StartTime 2025-10-16 05:25:05 - End Time 2025-10-16 08:25:05 [2025-10-16 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16027037', 'tblTempUsageDetail_20' ) start [2025-10-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16027037', 'tblTempUsageDetail_20' ) end [2025-10-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16027037', 'tblTempVendorCDR_20' ) start [2025-10-16 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16027037', 'tblTempVendorCDR_20' ) end [2025-10-16 08:25:18] Production.INFO: ProcessCDR(1,16027037,1,1,2) [2025-10-16 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16027037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16027037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16027037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 08:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16027037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 08:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16027037', 'tblTempUsageDetail_20' ) start [2025-10-16 08:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16027037', 'tblTempUsageDetail_20' ) end [2025-10-16 08:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-16 08:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-16 08:25:28] Production.INFO: ==1794== Releasing lock... [2025-10-16 08:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 08:25:28] Production.INFO: 31.75 MB #Memory Used# [2025-10-16 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 06:25:05 [end_date_ymd] => 2025-10-16 09:25:05 [RateCDR] => 1 ) [2025-10-16 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-10-16 06:25:05' and `end` < '2025-10-16 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-10-16 09:25:20] Production.INFO: count ==1408 [2025-10-16 09:25:20] Production.ERROR: pbx CDR StartTime 2025-10-16 06:25:05 - End Time 2025-10-16 09:25:05 [2025-10-16 09:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16027284', 'tblTempUsageDetail_20' ) start [2025-10-16 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16027284', 'tblTempUsageDetail_20' ) end [2025-10-16 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16027284', 'tblTempVendorCDR_20' ) start [2025-10-16 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16027284', 'tblTempVendorCDR_20' ) end [2025-10-16 09:25:20] Production.INFO: ProcessCDR(1,16027284,1,1,2) [2025-10-16 09:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16027284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 09:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16027284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 09:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16027284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 09:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16027284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 09:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16027284', 'tblTempUsageDetail_20' ) start [2025-10-16 09:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16027284', 'tblTempUsageDetail_20' ) end [2025-10-16 09:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-16 09:25:30] Production.ERROR: pbx prc_insertCDR end [2025-10-16 09:25:30] Production.INFO: ==6222== Releasing lock... [2025-10-16 09:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 09:25:30] Production.INFO: 38.75 MB #Memory Used# [2025-10-16 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 07:25:06 [end_date_ymd] => 2025-10-16 10:25:06 [RateCDR] => 1 ) [2025-10-16 10: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-10-16 07:25:06' and `end` < '2025-10-16 10: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-10-16 10:25:19] Production.INFO: count ==3182 [2025-10-16 10:25:21] Production.ERROR: pbx CDR StartTime 2025-10-16 07:25:06 - End Time 2025-10-16 10:25:06 [2025-10-16 10:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16027531', 'tblTempUsageDetail_20' ) start [2025-10-16 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16027531', 'tblTempUsageDetail_20' ) end [2025-10-16 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16027531', 'tblTempVendorCDR_20' ) start [2025-10-16 10:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16027531', 'tblTempVendorCDR_20' ) end [2025-10-16 10:25:21] Production.INFO: ProcessCDR(1,16027531,1,1,2) [2025-10-16 10:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16027531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 10:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16027531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 10:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16027531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 10:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16027531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16027531', 'tblTempUsageDetail_20' ) start [2025-10-16 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16027531', 'tblTempUsageDetail_20' ) end [2025-10-16 10:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-16 10:25:33] Production.ERROR: pbx prc_insertCDR end [2025-10-16 10:25:33] Production.INFO: ==11157== Releasing lock... [2025-10-16 10:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 10:25:33] Production.INFO: 52.25 MB #Memory Used# [2025-10-16 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 08:25:06 [end_date_ymd] => 2025-10-16 11:25:06 [RateCDR] => 1 ) [2025-10-16 11:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-16 08:25:06' and `end` < '2025-10-16 11:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-16 11:25:23] Production.INFO: count ==4698 [2025-10-16 11:25:25] Production.ERROR: pbx CDR StartTime 2025-10-16 08:25:06 - End Time 2025-10-16 11:25:06 [2025-10-16 11:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 11:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16027778', 'tblTempUsageDetail_20' ) start [2025-10-16 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16027778', 'tblTempUsageDetail_20' ) end [2025-10-16 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16027778', 'tblTempVendorCDR_20' ) start [2025-10-16 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16027778', 'tblTempVendorCDR_20' ) end [2025-10-16 11:25:26] Production.INFO: ProcessCDR(1,16027778,1,1,2) [2025-10-16 11:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16027778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 11:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16027778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 11:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16027778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 11:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16027778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 11:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16027778', 'tblTempUsageDetail_20' ) start [2025-10-16 11:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16027778', 'tblTempUsageDetail_20' ) end [2025-10-16 11:25:36] Production.ERROR: pbx prc_insertCDR start [2025-10-16 11:25:39] Production.ERROR: pbx prc_insertCDR end [2025-10-16 11:25:39] Production.INFO: ==16459== Releasing lock... [2025-10-16 11:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 11:25:39] Production.INFO: 63.25 MB #Memory Used# [2025-10-16 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 09:25:05 [end_date_ymd] => 2025-10-16 12:25:05 [RateCDR] => 1 ) [2025-10-16 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-10-16 09:25:05' and `end` < '2025-10-16 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-10-16 12:25:18] Production.INFO: count ==5377 [2025-10-16 12:25:21] Production.ERROR: pbx CDR StartTime 2025-10-16 09:25:05 - End Time 2025-10-16 12:25:05 [2025-10-16 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16028025', 'tblTempUsageDetail_20' ) start [2025-10-16 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16028025', 'tblTempUsageDetail_20' ) end [2025-10-16 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16028025', 'tblTempVendorCDR_20' ) start [2025-10-16 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16028025', 'tblTempVendorCDR_20' ) end [2025-10-16 12:25:21] Production.INFO: ProcessCDR(1,16028025,1,1,2) [2025-10-16 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16028025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16028025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16028025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 12:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16028025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16028025', 'tblTempUsageDetail_20' ) start [2025-10-16 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16028025', 'tblTempUsageDetail_20' ) end [2025-10-16 12:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-16 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-10-16 12:25:34] Production.INFO: ==21180== Releasing lock... [2025-10-16 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 12:25:34] Production.INFO: 68.5 MB #Memory Used# [2025-10-16 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 10:25:05 [end_date_ymd] => 2025-10-16 13:25:05 [RateCDR] => 1 ) [2025-10-16 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-10-16 10:25:05' and `end` < '2025-10-16 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-10-16 13:25:18] Production.INFO: count ==5389 [2025-10-16 13:25:21] Production.ERROR: pbx CDR StartTime 2025-10-16 10:25:05 - End Time 2025-10-16 13:25:05 [2025-10-16 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16028272', 'tblTempUsageDetail_20' ) start [2025-10-16 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16028272', 'tblTempUsageDetail_20' ) end [2025-10-16 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16028272', 'tblTempVendorCDR_20' ) start [2025-10-16 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16028272', 'tblTempVendorCDR_20' ) end [2025-10-16 13:25:21] Production.INFO: ProcessCDR(1,16028272,1,1,2) [2025-10-16 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16028272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16028272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16028272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16028272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16028272', 'tblTempUsageDetail_20' ) start [2025-10-16 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16028272', 'tblTempUsageDetail_20' ) end [2025-10-16 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-16 13:25:33] Production.ERROR: pbx prc_insertCDR end [2025-10-16 13:25:33] Production.INFO: ==26298== Releasing lock... [2025-10-16 13:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 13:25:33] Production.INFO: 68.5 MB #Memory Used# [2025-10-16 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 11:25:05 [end_date_ymd] => 2025-10-16 14:25:05 [RateCDR] => 1 ) [2025-10-16 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-16 11:25:05' and `end` < '2025-10-16 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-16 14:25:19] Production.INFO: count ==5133 [2025-10-16 14:25:22] Production.ERROR: pbx CDR StartTime 2025-10-16 11:25:05 - End Time 2025-10-16 14:25:05 [2025-10-16 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16028519', 'tblTempUsageDetail_20' ) start [2025-10-16 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16028519', 'tblTempUsageDetail_20' ) end [2025-10-16 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16028519', 'tblTempVendorCDR_20' ) start [2025-10-16 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16028519', 'tblTempVendorCDR_20' ) end [2025-10-16 14:25:22] Production.INFO: ProcessCDR(1,16028519,1,1,2) [2025-10-16 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16028519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 14:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16028519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 14:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16028519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 14:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16028519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16028519', 'tblTempUsageDetail_20' ) start [2025-10-16 14:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16028519', 'tblTempUsageDetail_20' ) end [2025-10-16 14:25:34] Production.ERROR: pbx prc_insertCDR start [2025-10-16 14:25:36] Production.ERROR: pbx prc_insertCDR end [2025-10-16 14:25:36] Production.INFO: ==32262== Releasing lock... [2025-10-16 14:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 14:25:36] Production.INFO: 66.75 MB #Memory Used# [2025-10-16 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 12:25:05 [end_date_ymd] => 2025-10-16 15:25:05 [RateCDR] => 1 ) [2025-10-16 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-16 12:25:05' and `end` < '2025-10-16 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-16 15:25:22] Production.INFO: count ==5269 [2025-10-16 15:25:24] Production.ERROR: pbx CDR StartTime 2025-10-16 12:25:05 - End Time 2025-10-16 15:25:05 [2025-10-16 15:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16028766', 'tblTempUsageDetail_20' ) start [2025-10-16 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16028766', 'tblTempUsageDetail_20' ) end [2025-10-16 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16028766', 'tblTempVendorCDR_20' ) start [2025-10-16 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16028766', 'tblTempVendorCDR_20' ) end [2025-10-16 15:25:25] Production.INFO: ProcessCDR(1,16028766,1,1,2) [2025-10-16 15:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16028766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 15:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16028766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 15:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16028766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 15:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16028766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 15:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16028766', 'tblTempUsageDetail_20' ) start [2025-10-16 15:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16028766', 'tblTempUsageDetail_20' ) end [2025-10-16 15:25:35] Production.ERROR: pbx prc_insertCDR start [2025-10-16 15:25:38] Production.ERROR: pbx prc_insertCDR end [2025-10-16 15:25:38] Production.INFO: ==4358== Releasing lock... [2025-10-16 15:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 15:25:38] Production.INFO: 67.75 MB #Memory Used# [2025-10-16 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 13:25:06 [end_date_ymd] => 2025-10-16 16:25:06 [RateCDR] => 1 ) [2025-10-16 16: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-10-16 13:25:06' and `end` < '2025-10-16 16: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-10-16 16:25:19] Production.INFO: count ==5179 [2025-10-16 16:25:22] Production.ERROR: pbx CDR StartTime 2025-10-16 13:25:06 - End Time 2025-10-16 16:25:06 [2025-10-16 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16029013', 'tblTempUsageDetail_20' ) start [2025-10-16 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16029013', 'tblTempUsageDetail_20' ) end [2025-10-16 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16029013', 'tblTempVendorCDR_20' ) start [2025-10-16 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16029013', 'tblTempVendorCDR_20' ) end [2025-10-16 16:25:22] Production.INFO: ProcessCDR(1,16029013,1,1,2) [2025-10-16 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16029013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 16:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16029013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 16:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16029013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 16:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16029013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16029013', 'tblTempUsageDetail_20' ) start [2025-10-16 16:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16029013', 'tblTempUsageDetail_20' ) end [2025-10-16 16:25:34] Production.ERROR: pbx prc_insertCDR start [2025-10-16 16:25:36] Production.ERROR: pbx prc_insertCDR end [2025-10-16 16:25:36] Production.INFO: ==10029== Releasing lock... [2025-10-16 16:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 16:25:36] Production.INFO: 67 MB #Memory Used# [2025-10-16 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 14:25:05 [end_date_ymd] => 2025-10-16 17:25:05 [RateCDR] => 1 ) [2025-10-16 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-10-16 14:25:05' and `end` < '2025-10-16 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-10-16 17:25:18] Production.INFO: count ==5244 [2025-10-16 17:25:21] Production.ERROR: pbx CDR StartTime 2025-10-16 14:25:05 - End Time 2025-10-16 17:25:05 [2025-10-16 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16029260', 'tblTempUsageDetail_20' ) start [2025-10-16 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16029260', 'tblTempUsageDetail_20' ) end [2025-10-16 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16029260', 'tblTempVendorCDR_20' ) start [2025-10-16 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16029260', 'tblTempVendorCDR_20' ) end [2025-10-16 17:25:21] Production.INFO: ProcessCDR(1,16029260,1,1,2) [2025-10-16 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16029260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16029260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16029260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 17:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16029260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16029260', 'tblTempUsageDetail_20' ) start [2025-10-16 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16029260', 'tblTempUsageDetail_20' ) end [2025-10-16 17:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-16 17:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-16 17:25:35] Production.INFO: ==16817== Releasing lock... [2025-10-16 17:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 17:25:35] Production.INFO: 67.5 MB #Memory Used# [2025-10-16 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 15:25:05 [end_date_ymd] => 2025-10-16 18:25:05 [RateCDR] => 1 ) [2025-10-16 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-16 15:25:05' and `end` < '2025-10-16 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-16 18:25:19] Production.INFO: count ==4570 [2025-10-16 18:25:21] Production.ERROR: pbx CDR StartTime 2025-10-16 15:25:05 - End Time 2025-10-16 18:25:05 [2025-10-16 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16029507', 'tblTempUsageDetail_20' ) start [2025-10-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16029507', 'tblTempUsageDetail_20' ) end [2025-10-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16029507', 'tblTempVendorCDR_20' ) start [2025-10-16 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16029507', 'tblTempVendorCDR_20' ) end [2025-10-16 18:25:21] Production.INFO: ProcessCDR(1,16029507,1,1,2) [2025-10-16 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16029507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 18:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16029507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 18:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16029507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 18:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16029507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 18:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16029507', 'tblTempUsageDetail_20' ) start [2025-10-16 18:27:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16029507', 'tblTempUsageDetail_20' ) end [2025-10-16 18:27:34] Production.ERROR: pbx prc_insertCDR start [2025-10-16 18:27:37] Production.ERROR: pbx prc_insertCDR end [2025-10-16 18:27:41] Production.INFO: ==23377== Releasing lock... [2025-10-16 18:27:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 18:27:41] Production.INFO: 62.5 MB #Memory Used# [2025-10-16 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 16:25:05 [end_date_ymd] => 2025-10-16 19:25:05 [RateCDR] => 1 ) [2025-10-16 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-10-16 16:25:05' and `end` < '2025-10-16 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-10-16 19:25:18] Production.INFO: count ==3557 [2025-10-16 19:25:19] Production.ERROR: pbx CDR StartTime 2025-10-16 16:25:05 - End Time 2025-10-16 19:25:05 [2025-10-16 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16029751', 'tblTempUsageDetail_20' ) start [2025-10-16 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16029751', 'tblTempUsageDetail_20' ) end [2025-10-16 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16029751', 'tblTempVendorCDR_20' ) start [2025-10-16 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16029751', 'tblTempVendorCDR_20' ) end [2025-10-16 19:25:20] Production.INFO: ProcessCDR(1,16029751,1,1,2) [2025-10-16 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16029751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16029751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16029751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 19:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16029751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16029751', 'tblTempUsageDetail_20' ) start [2025-10-16 19:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16029751', 'tblTempUsageDetail_20' ) end [2025-10-16 19:25:30] Production.ERROR: pbx prc_insertCDR start [2025-10-16 19:25:31] Production.ERROR: pbx prc_insertCDR end [2025-10-16 19:25:31] Production.INFO: ==29817== Releasing lock... [2025-10-16 19:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 19:25:31] Production.INFO: 54.75 MB #Memory Used# [2025-10-16 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 17:25:05 [end_date_ymd] => 2025-10-16 20:25:05 [RateCDR] => 1 ) [2025-10-16 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-10-16 17:25:05' and `end` < '2025-10-16 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-10-16 20:25:17] Production.INFO: count ==2431 [2025-10-16 20:25:18] Production.ERROR: pbx CDR StartTime 2025-10-16 17:25:05 - End Time 2025-10-16 20:25:05 [2025-10-16 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16029998', 'tblTempUsageDetail_20' ) start [2025-10-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16029998', 'tblTempUsageDetail_20' ) end [2025-10-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16029998', 'tblTempVendorCDR_20' ) start [2025-10-16 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16029998', 'tblTempVendorCDR_20' ) end [2025-10-16 20:25:18] Production.INFO: ProcessCDR(1,16029998,1,1,2) [2025-10-16 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16029998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16029998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16029998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16029998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16029998', 'tblTempUsageDetail_20' ) start [2025-10-16 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16029998', 'tblTempUsageDetail_20' ) end [2025-10-16 20:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-16 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-16 20:25:28] Production.INFO: ==5114== Releasing lock... [2025-10-16 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 20:25:28] Production.INFO: 46.5 MB #Memory Used# [2025-10-16 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 18:25:05 [end_date_ymd] => 2025-10-16 21:25:05 [RateCDR] => 1 ) [2025-10-16 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-10-16 18:25:05' and `end` < '2025-10-16 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-10-16 21:25:17] Production.INFO: count ==1697 [2025-10-16 21:25:18] Production.ERROR: pbx CDR StartTime 2025-10-16 18:25:05 - End Time 2025-10-16 21:25:05 [2025-10-16 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16030245', 'tblTempUsageDetail_20' ) start [2025-10-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16030245', 'tblTempUsageDetail_20' ) end [2025-10-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16030245', 'tblTempVendorCDR_20' ) start [2025-10-16 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16030245', 'tblTempVendorCDR_20' ) end [2025-10-16 21:25:18] Production.INFO: ProcessCDR(1,16030245,1,1,2) [2025-10-16 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16030245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16030245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16030245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16030245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16030245', 'tblTempUsageDetail_20' ) start [2025-10-16 21:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16030245', 'tblTempUsageDetail_20' ) end [2025-10-16 21:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-16 21:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-16 21:25:28] Production.INFO: ==11700== Releasing lock... [2025-10-16 21:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 21:25:28] Production.INFO: 40.75 MB #Memory Used# [2025-10-16 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 19:25:05 [end_date_ymd] => 2025-10-16 22:25:05 [RateCDR] => 1 ) [2025-10-16 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-10-16 19:25:05' and `end` < '2025-10-16 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-10-16 22:25:18] Production.INFO: count ==1211 [2025-10-16 22:25:18] Production.ERROR: pbx CDR StartTime 2025-10-16 19:25:05 - End Time 2025-10-16 22:25:05 [2025-10-16 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16030492', 'tblTempUsageDetail_20' ) start [2025-10-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16030492', 'tblTempUsageDetail_20' ) end [2025-10-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16030492', 'tblTempVendorCDR_20' ) start [2025-10-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16030492', 'tblTempVendorCDR_20' ) end [2025-10-16 22:25:18] Production.INFO: ProcessCDR(1,16030492,1,1,2) [2025-10-16 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16030492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16030492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16030492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 22:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16030492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16030492', 'tblTempUsageDetail_20' ) start [2025-10-16 22:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16030492', 'tblTempUsageDetail_20' ) end [2025-10-16 22:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-16 22:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-16 22:25:28] Production.INFO: ==17899== Releasing lock... [2025-10-16 22:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 22:25:28] Production.INFO: 37.5 MB #Memory Used# [2025-10-16 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-16 20:25:05 [end_date_ymd] => 2025-10-16 23:25:05 [RateCDR] => 1 ) [2025-10-16 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-10-16 20:25:05' and `end` < '2025-10-16 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-10-16 23:25:17] Production.INFO: count ==967 [2025-10-16 23:25:18] Production.ERROR: pbx CDR StartTime 2025-10-16 20:25:05 - End Time 2025-10-16 23:25:05 [2025-10-16 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-16 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16030739', 'tblTempUsageDetail_20' ) start [2025-10-16 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16030739', 'tblTempUsageDetail_20' ) end [2025-10-16 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16030739', 'tblTempVendorCDR_20' ) start [2025-10-16 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16030739', 'tblTempVendorCDR_20' ) end [2025-10-16 23:25:18] Production.INFO: ProcessCDR(1,16030739,1,1,2) [2025-10-16 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16030739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16030739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-16 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16030739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16030739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-16 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16030739', 'tblTempUsageDetail_20' ) start [2025-10-16 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16030739', 'tblTempUsageDetail_20' ) end [2025-10-16 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-16 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-16 23:25:27] Production.INFO: ==25116== Releasing lock... [2025-10-16 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-16 23:25:27] Production.INFO: 35.75 MB #Memory Used#