[2025-08-30 00:25:04] Production.INFO: next invoice date [2025-08-30 00:25:04] Production.INFO: 2025-09-30 [2025-08-30 00:25:04] Production.INFO: getdaysdiff [2025-08-30 00:25:04] Production.INFO: +31 [2025-08-30 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (205,11,1,31,31,'RMScheduler',2025-08-30 00:25:04,0,0,,,0) [2025-08-30 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 21:25:05 [end_date_ymd] => 2025-08-30 00:25:05 [RateCDR] => 1 ) [2025-08-30 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-29 21:25:05' and `end` < '2025-08-30 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-08-30 00:25:19] Production.INFO: count ==728 [2025-08-30 00:25:20] Production.ERROR: pbx CDR StartTime 2025-08-29 21:25:05 - End Time 2025-08-30 00:25:05 [2025-08-30 00:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15746475', 'tblTempUsageDetail_20' ) start [2025-08-30 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15746475', 'tblTempUsageDetail_20' ) end [2025-08-30 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15746475', 'tblTempVendorCDR_20' ) start [2025-08-30 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15746475', 'tblTempVendorCDR_20' ) end [2025-08-30 00:25:20] Production.INFO: ProcessCDR(1,15746475,1,1,2) [2025-08-30 00:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15746475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 00:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15746475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 00:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15746475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 00:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15746475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 00:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15746475', 'tblTempUsageDetail_20' ) start [2025-08-30 00:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15746475', 'tblTempUsageDetail_20' ) end [2025-08-30 00:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-30 00:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-30 00:25:29] Production.INFO: ==20937== Releasing lock... [2025-08-30 00:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 00:25:29] Production.INFO: 37.75 MB #Memory Used# [2025-08-30 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 22:25:05 [end_date_ymd] => 2025-08-30 01:25:05 [RateCDR] => 1 ) [2025-08-30 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-29 22:25:05' and `end` < '2025-08-30 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-30 01:25:18] Production.INFO: count ==657 [2025-08-30 01:25:18] Production.ERROR: pbx CDR StartTime 2025-08-29 22:25:05 - End Time 2025-08-30 01:25:05 [2025-08-30 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15746722', 'tblTempUsageDetail_20' ) start [2025-08-30 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15746722', 'tblTempUsageDetail_20' ) end [2025-08-30 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15746722', 'tblTempVendorCDR_20' ) start [2025-08-30 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15746722', 'tblTempVendorCDR_20' ) end [2025-08-30 01:25:18] Production.INFO: ProcessCDR(1,15746722,1,1,2) [2025-08-30 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15746722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15746722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15746722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15746722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15746722', 'tblTempUsageDetail_20' ) start [2025-08-30 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15746722', 'tblTempUsageDetail_20' ) end [2025-08-30 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-30 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-30 01:25:26] Production.INFO: ==25926== Releasing lock... [2025-08-30 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 01:25:26] Production.INFO: 33.75 MB #Memory Used# [2025-08-30 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-29 23:25:05 [end_date_ymd] => 2025-08-30 02:25:05 [RateCDR] => 1 ) [2025-08-30 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-29 23:25:05' and `end` < '2025-08-30 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-30 02:25:18] Production.INFO: count ==632 [2025-08-30 02:25:18] Production.ERROR: pbx CDR StartTime 2025-08-29 23:25:05 - End Time 2025-08-30 02:25:05 [2025-08-30 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15746969', 'tblTempUsageDetail_20' ) start [2025-08-30 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15746969', 'tblTempUsageDetail_20' ) end [2025-08-30 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15746969', 'tblTempVendorCDR_20' ) start [2025-08-30 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15746969', 'tblTempVendorCDR_20' ) end [2025-08-30 02:25:18] Production.INFO: ProcessCDR(1,15746969,1,1,2) [2025-08-30 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15746969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15746969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15746969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15746969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15746969', 'tblTempUsageDetail_20' ) start [2025-08-30 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15746969', 'tblTempUsageDetail_20' ) end [2025-08-30 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-30 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-30 02:25:26] Production.INFO: ==31060== Releasing lock... [2025-08-30 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 02:25:26] Production.INFO: 33.5 MB #Memory Used# [2025-08-30 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 00:25:05 [end_date_ymd] => 2025-08-30 03:25:05 [RateCDR] => 1 ) [2025-08-30 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-08-30 00:25:05' and `end` < '2025-08-30 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-08-30 03:25:17] Production.INFO: count ==564 [2025-08-30 03:25:17] Production.ERROR: pbx CDR StartTime 2025-08-30 00:25:05 - End Time 2025-08-30 03:25:05 [2025-08-30 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15747216', 'tblTempUsageDetail_20' ) start [2025-08-30 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15747216', 'tblTempUsageDetail_20' ) end [2025-08-30 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15747216', 'tblTempVendorCDR_20' ) start [2025-08-30 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15747216', 'tblTempVendorCDR_20' ) end [2025-08-30 03:25:17] Production.INFO: ProcessCDR(1,15747216,1,1,2) [2025-08-30 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15747216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15747216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15747216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15747216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15747216', 'tblTempUsageDetail_20' ) start [2025-08-30 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15747216', 'tblTempUsageDetail_20' ) end [2025-08-30 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-30 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-30 03:25:25] Production.INFO: ==3876== Releasing lock... [2025-08-30 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 03:25:25] Production.INFO: 33 MB #Memory Used# [2025-08-30 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 01:25:05 [end_date_ymd] => 2025-08-30 04:25:05 [RateCDR] => 1 ) [2025-08-30 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-30 01:25:05' and `end` < '2025-08-30 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-30 04:25:17] Production.INFO: count ==452 [2025-08-30 04:25:17] Production.ERROR: pbx CDR StartTime 2025-08-30 01:25:05 - End Time 2025-08-30 04:25:05 [2025-08-30 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15747464', 'tblTempUsageDetail_20' ) start [2025-08-30 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15747464', 'tblTempUsageDetail_20' ) end [2025-08-30 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15747464', 'tblTempVendorCDR_20' ) start [2025-08-30 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15747464', 'tblTempVendorCDR_20' ) end [2025-08-30 04:25:17] Production.INFO: ProcessCDR(1,15747464,1,1,2) [2025-08-30 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15747464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15747464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15747464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15747464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15747464', 'tblTempUsageDetail_20' ) start [2025-08-30 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15747464', 'tblTempUsageDetail_20' ) end [2025-08-30 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-30 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-30 04:25:24] Production.INFO: ==9013== Releasing lock... [2025-08-30 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 04:25:24] Production.INFO: 32.5 MB #Memory Used# [2025-08-30 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 02:25:05 [end_date_ymd] => 2025-08-30 05:25:05 [RateCDR] => 1 ) [2025-08-30 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-30 02:25:05' and `end` < '2025-08-30 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-30 05:25:17] Production.INFO: count ==351 [2025-08-30 05:25:17] Production.ERROR: pbx CDR StartTime 2025-08-30 02:25:05 - End Time 2025-08-30 05:25:05 [2025-08-30 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15747712', 'tblTempUsageDetail_20' ) start [2025-08-30 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15747712', 'tblTempUsageDetail_20' ) end [2025-08-30 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15747712', 'tblTempVendorCDR_20' ) start [2025-08-30 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15747712', 'tblTempVendorCDR_20' ) end [2025-08-30 05:25:17] Production.INFO: ProcessCDR(1,15747712,1,1,2) [2025-08-30 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15747712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15747712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15747712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15747712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15747712', 'tblTempUsageDetail_20' ) start [2025-08-30 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15747712', 'tblTempUsageDetail_20' ) end [2025-08-30 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-30 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-30 05:25:25] Production.INFO: ==14581== Releasing lock... [2025-08-30 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 05:25:25] Production.INFO: 30.75 MB #Memory Used# [2025-08-30 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 03:25:05 [end_date_ymd] => 2025-08-30 06:25:05 [RateCDR] => 1 ) [2025-08-30 06:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-30 03:25:05' and `end` < '2025-08-30 06:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-30 06:25:17] Production.INFO: count ==202 [2025-08-30 06:25:17] Production.ERROR: pbx CDR StartTime 2025-08-30 03:25:05 - End Time 2025-08-30 06:25:05 [2025-08-30 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15747959', 'tblTempUsageDetail_20' ) start [2025-08-30 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15747959', 'tblTempUsageDetail_20' ) end [2025-08-30 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15747959', 'tblTempVendorCDR_20' ) start [2025-08-30 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15747959', 'tblTempVendorCDR_20' ) end [2025-08-30 06:25:17] Production.INFO: ProcessCDR(1,15747959,1,1,2) [2025-08-30 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15747959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15747959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15747959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 06:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15747959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15747959', 'tblTempUsageDetail_20' ) start [2025-08-30 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15747959', 'tblTempUsageDetail_20' ) end [2025-08-30 06:25:22] Production.ERROR: pbx prc_insertCDR start [2025-08-30 06:25:22] Production.ERROR: pbx prc_insertCDR end [2025-08-30 06:25:22] Production.INFO: ==19558== Releasing lock... [2025-08-30 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 06:25:22] Production.INFO: 29.75 MB #Memory Used# [2025-08-30 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 04:25:06 [end_date_ymd] => 2025-08-30 07:25:06 [RateCDR] => 1 ) [2025-08-30 07:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-30 04:25:06' and `end` < '2025-08-30 07:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-30 07:25:18] Production.INFO: count ==124 [2025-08-30 07:25:18] Production.ERROR: pbx CDR StartTime 2025-08-30 04:25:06 - End Time 2025-08-30 07:25:06 [2025-08-30 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15748206', 'tblTempUsageDetail_20' ) start [2025-08-30 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15748206', 'tblTempUsageDetail_20' ) end [2025-08-30 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15748206', 'tblTempVendorCDR_20' ) start [2025-08-30 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15748206', 'tblTempVendorCDR_20' ) end [2025-08-30 07:25:18] Production.INFO: ProcessCDR(1,15748206,1,1,2) [2025-08-30 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15748206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15748206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15748206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15748206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15748206', 'tblTempUsageDetail_20' ) start [2025-08-30 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15748206', 'tblTempUsageDetail_20' ) end [2025-08-30 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-30 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-30 07:25:25] Production.INFO: ==24576== Releasing lock... [2025-08-30 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 07:25:25] Production.INFO: 28.75 MB #Memory Used# [2025-08-30 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 05:25:05 [end_date_ymd] => 2025-08-30 08:25:05 [RateCDR] => 1 ) [2025-08-30 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-08-30 05:25:05' and `end` < '2025-08-30 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-08-30 08:25:17] Production.INFO: count ==150 [2025-08-30 08:25:17] Production.ERROR: pbx CDR StartTime 2025-08-30 05:25:05 - End Time 2025-08-30 08:25:05 [2025-08-30 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15748453', 'tblTempUsageDetail_20' ) start [2025-08-30 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15748453', 'tblTempUsageDetail_20' ) end [2025-08-30 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15748453', 'tblTempVendorCDR_20' ) start [2025-08-30 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15748453', 'tblTempVendorCDR_20' ) end [2025-08-30 08:25:17] Production.INFO: ProcessCDR(1,15748453,1,1,2) [2025-08-30 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15748453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15748453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15748453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15748453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15748453', 'tblTempUsageDetail_20' ) start [2025-08-30 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15748453', 'tblTempUsageDetail_20' ) end [2025-08-30 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-30 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-30 08:25:25] Production.INFO: ==29675== Releasing lock... [2025-08-30 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 08:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-08-30 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 06:25:05 [end_date_ymd] => 2025-08-30 09:25:05 [RateCDR] => 1 ) [2025-08-30 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-30 06:25:05' and `end` < '2025-08-30 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-30 09:25:17] Production.INFO: count ==669 [2025-08-30 09:25:17] Production.ERROR: pbx CDR StartTime 2025-08-30 06:25:05 - End Time 2025-08-30 09:25:05 [2025-08-30 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15748700', 'tblTempUsageDetail_20' ) start [2025-08-30 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15748700', 'tblTempUsageDetail_20' ) end [2025-08-30 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15748700', 'tblTempVendorCDR_20' ) start [2025-08-30 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15748700', 'tblTempVendorCDR_20' ) end [2025-08-30 09:25:17] Production.INFO: ProcessCDR(1,15748700,1,1,2) [2025-08-30 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15748700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15748700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15748700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15748700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15748700', 'tblTempUsageDetail_20' ) start [2025-08-30 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15748700', 'tblTempUsageDetail_20' ) end [2025-08-30 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-30 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-30 09:25:25] Production.INFO: ==2285== Releasing lock... [2025-08-30 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 09:25:25] Production.INFO: 33.25 MB #Memory Used# [2025-08-30 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 07:25:05 [end_date_ymd] => 2025-08-30 10:25:05 [RateCDR] => 1 ) [2025-08-30 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-30 07:25:05' and `end` < '2025-08-30 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-30 10:25:17] Production.INFO: count ==1185 [2025-08-30 10:25:18] Production.ERROR: pbx CDR StartTime 2025-08-30 07:25:05 - End Time 2025-08-30 10:25:05 [2025-08-30 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15748947', 'tblTempUsageDetail_20' ) start [2025-08-30 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15748947', 'tblTempUsageDetail_20' ) end [2025-08-30 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15748947', 'tblTempVendorCDR_20' ) start [2025-08-30 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15748947', 'tblTempVendorCDR_20' ) end [2025-08-30 10:25:18] Production.INFO: ProcessCDR(1,15748947,1,1,2) [2025-08-30 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15748947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15748947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15748947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15748947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15748947', 'tblTempUsageDetail_20' ) start [2025-08-30 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15748947', 'tblTempUsageDetail_20' ) end [2025-08-30 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-30 10:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-30 10:25:26] Production.INFO: ==7744== Releasing lock... [2025-08-30 10:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 10:25:26] Production.INFO: 37.75 MB #Memory Used# [2025-08-30 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 08:25:06 [end_date_ymd] => 2025-08-30 11:25:06 [RateCDR] => 1 ) [2025-08-30 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-08-30 08:25:06' and `end` < '2025-08-30 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-08-30 11:25:18] Production.INFO: count ==1679 [2025-08-30 11:25:19] Production.ERROR: pbx CDR StartTime 2025-08-30 08:25:06 - End Time 2025-08-30 11:25:06 [2025-08-30 11:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15749194', 'tblTempUsageDetail_20' ) start [2025-08-30 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15749194', 'tblTempUsageDetail_20' ) end [2025-08-30 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15749194', 'tblTempVendorCDR_20' ) start [2025-08-30 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15749194', 'tblTempVendorCDR_20' ) end [2025-08-30 11:25:19] Production.INFO: ProcessCDR(1,15749194,1,1,2) [2025-08-30 11:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15749194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15749194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15749194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 11:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15749194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15749194', 'tblTempUsageDetail_20' ) start [2025-08-30 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15749194', 'tblTempUsageDetail_20' ) end [2025-08-30 11:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-30 11:25:28] Production.ERROR: pbx prc_insertCDR end [2025-08-30 11:25:28] Production.INFO: ==12772== Releasing lock... [2025-08-30 11:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 11:25:28] Production.INFO: 40.75 MB #Memory Used# [2025-08-30 12:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 09:25:04 [end_date_ymd] => 2025-08-30 12:25:04 [RateCDR] => 1 ) [2025-08-30 12:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-30 09:25:04' and `end` < '2025-08-30 12:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-30 12:25:19] Production.INFO: count ==1745 [2025-08-30 12:25:20] Production.ERROR: pbx CDR StartTime 2025-08-30 09:25:04 - End Time 2025-08-30 12:25:04 [2025-08-30 12:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15749441', 'tblTempUsageDetail_20' ) start [2025-08-30 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15749441', 'tblTempUsageDetail_20' ) end [2025-08-30 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15749441', 'tblTempVendorCDR_20' ) start [2025-08-30 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15749441', 'tblTempVendorCDR_20' ) end [2025-08-30 12:25:20] Production.INFO: ProcessCDR(1,15749441,1,1,2) [2025-08-30 12:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15749441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15749441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15749441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 12:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15749441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15749441', 'tblTempUsageDetail_20' ) start [2025-08-30 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15749441', 'tblTempUsageDetail_20' ) end [2025-08-30 12:25:28] Production.ERROR: pbx prc_insertCDR start [2025-08-30 12:25:29] Production.ERROR: pbx prc_insertCDR end [2025-08-30 12:25:29] Production.INFO: ==17788== Releasing lock... [2025-08-30 12:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 12:25:29] Production.INFO: 41.25 MB #Memory Used# [2025-08-30 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 10:25:05 [end_date_ymd] => 2025-08-30 13:25:05 [RateCDR] => 1 ) [2025-08-30 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-30 10:25:05' and `end` < '2025-08-30 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-30 13:25:18] Production.INFO: count ==1742 [2025-08-30 13:25:18] Production.ERROR: pbx CDR StartTime 2025-08-30 10:25:05 - End Time 2025-08-30 13:25:05 [2025-08-30 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15749688', 'tblTempUsageDetail_20' ) start [2025-08-30 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15749688', 'tblTempUsageDetail_20' ) end [2025-08-30 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15749688', 'tblTempVendorCDR_20' ) start [2025-08-30 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15749688', 'tblTempVendorCDR_20' ) end [2025-08-30 13:25:18] Production.INFO: ProcessCDR(1,15749688,1,1,2) [2025-08-30 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15749688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 13:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15749688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 13:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15749688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15749688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15749688', 'tblTempUsageDetail_20' ) start [2025-08-30 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15749688', 'tblTempUsageDetail_20' ) end [2025-08-30 13:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-30 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-30 13:25:27] Production.INFO: ==22299== Releasing lock... [2025-08-30 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 13:25:27] Production.INFO: 41.5 MB #Memory Used# [2025-08-30 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 11:25:05 [end_date_ymd] => 2025-08-30 14:25:05 [RateCDR] => 1 ) [2025-08-30 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-08-30 11:25:05' and `end` < '2025-08-30 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-08-30 14:25:18] Production.INFO: count ==1772 [2025-08-30 14:25:19] Production.ERROR: pbx CDR StartTime 2025-08-30 11:25:05 - End Time 2025-08-30 14:25:05 [2025-08-30 14:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15749935', 'tblTempUsageDetail_20' ) start [2025-08-30 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15749935', 'tblTempUsageDetail_20' ) end [2025-08-30 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15749935', 'tblTempVendorCDR_20' ) start [2025-08-30 14:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15749935', 'tblTempVendorCDR_20' ) end [2025-08-30 14:25:19] Production.INFO: ProcessCDR(1,15749935,1,1,2) [2025-08-30 14:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15749935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15749935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15749935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15749935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15749935', 'tblTempUsageDetail_20' ) start [2025-08-30 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15749935', 'tblTempUsageDetail_20' ) end [2025-08-30 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-30 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-30 14:25:27] Production.INFO: ==26513== Releasing lock... [2025-08-30 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 14:25:27] Production.INFO: 41.75 MB #Memory Used# [2025-08-30 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 12:25:05 [end_date_ymd] => 2025-08-30 15:25:05 [RateCDR] => 1 ) [2025-08-30 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-08-30 12:25:05' and `end` < '2025-08-30 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-08-30 15:25:18] Production.INFO: count ==1654 [2025-08-30 15:25:18] Production.ERROR: pbx CDR StartTime 2025-08-30 12:25:05 - End Time 2025-08-30 15:25:05 [2025-08-30 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15750182', 'tblTempUsageDetail_20' ) start [2025-08-30 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15750182', 'tblTempUsageDetail_20' ) end [2025-08-30 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15750182', 'tblTempVendorCDR_20' ) start [2025-08-30 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15750182', 'tblTempVendorCDR_20' ) end [2025-08-30 15:25:18] Production.INFO: ProcessCDR(1,15750182,1,1,2) [2025-08-30 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15750182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15750182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15750182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15750182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15750182', 'tblTempUsageDetail_20' ) start [2025-08-30 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15750182', 'tblTempUsageDetail_20' ) end [2025-08-30 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-30 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-30 15:25:27] Production.INFO: ==30836== Releasing lock... [2025-08-30 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 15:25:27] Production.INFO: 40.5 MB #Memory Used# [2025-08-30 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 13:25:05 [end_date_ymd] => 2025-08-30 16:25:05 [RateCDR] => 1 ) [2025-08-30 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-30 13:25:05' and `end` < '2025-08-30 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-30 16:25:17] Production.INFO: count ==1710 [2025-08-30 16:25:18] Production.ERROR: pbx CDR StartTime 2025-08-30 13:25:05 - End Time 2025-08-30 16:25:05 [2025-08-30 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15750429', 'tblTempUsageDetail_20' ) start [2025-08-30 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15750429', 'tblTempUsageDetail_20' ) end [2025-08-30 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15750429', 'tblTempVendorCDR_20' ) start [2025-08-30 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15750429', 'tblTempVendorCDR_20' ) end [2025-08-30 16:25:18] Production.INFO: ProcessCDR(1,15750429,1,1,2) [2025-08-30 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15750429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15750429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15750429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15750429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15750429', 'tblTempUsageDetail_20' ) start [2025-08-30 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15750429', 'tblTempUsageDetail_20' ) end [2025-08-30 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-30 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-30 16:25:27] Production.INFO: ==3248== Releasing lock... [2025-08-30 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 16:25:27] Production.INFO: 41 MB #Memory Used# [2025-08-30 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 14:25:06 [end_date_ymd] => 2025-08-30 17:25:06 [RateCDR] => 1 ) [2025-08-30 17:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-30 14:25:06' and `end` < '2025-08-30 17:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-30 17:25:18] Production.INFO: count ==1789 [2025-08-30 17:25:19] Production.ERROR: pbx CDR StartTime 2025-08-30 14:25:06 - End Time 2025-08-30 17:25:06 [2025-08-30 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15750676', 'tblTempUsageDetail_20' ) start [2025-08-30 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15750676', 'tblTempUsageDetail_20' ) end [2025-08-30 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15750676', 'tblTempVendorCDR_20' ) start [2025-08-30 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15750676', 'tblTempVendorCDR_20' ) end [2025-08-30 17:25:19] Production.INFO: ProcessCDR(1,15750676,1,1,2) [2025-08-30 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15750676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15750676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15750676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15750676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15750676', 'tblTempUsageDetail_20' ) start [2025-08-30 17:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15750676', 'tblTempUsageDetail_20' ) end [2025-08-30 17:25:28] Production.ERROR: pbx prc_insertCDR start [2025-08-30 17:25:30] Production.ERROR: pbx prc_insertCDR end [2025-08-30 17:25:30] Production.INFO: ==7566== Releasing lock... [2025-08-30 17:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 17:25:30] Production.INFO: 41.5 MB #Memory Used# [2025-08-30 18:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 15:25:04 [end_date_ymd] => 2025-08-30 18:25:04 [RateCDR] => 1 ) [2025-08-30 18:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-30 15:25:04' and `end` < '2025-08-30 18:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-30 18:25:17] Production.INFO: count ==1892 [2025-08-30 18:25:18] Production.ERROR: pbx CDR StartTime 2025-08-30 15:25:04 - End Time 2025-08-30 18:25:04 [2025-08-30 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15750923', 'tblTempUsageDetail_20' ) start [2025-08-30 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15750923', 'tblTempUsageDetail_20' ) end [2025-08-30 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15750923', 'tblTempVendorCDR_20' ) start [2025-08-30 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15750923', 'tblTempVendorCDR_20' ) end [2025-08-30 18:25:18] Production.INFO: ProcessCDR(1,15750923,1,1,2) [2025-08-30 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15750923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15750923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15750923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 18:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15750923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15750923', 'tblTempUsageDetail_20' ) start [2025-08-30 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15750923', 'tblTempUsageDetail_20' ) end [2025-08-30 18:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-30 18:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-30 18:25:26] Production.INFO: ==11904== Releasing lock... [2025-08-30 18:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 18:25:26] Production.INFO: 42.25 MB #Memory Used# [2025-08-30 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 16:25:05 [end_date_ymd] => 2025-08-30 19:25:05 [RateCDR] => 1 ) [2025-08-30 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-30 16:25:05' and `end` < '2025-08-30 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-30 19:25:17] Production.INFO: count ==1809 [2025-08-30 19:25:18] Production.ERROR: pbx CDR StartTime 2025-08-30 16:25:05 - End Time 2025-08-30 19:25:05 [2025-08-30 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15751168', 'tblTempUsageDetail_20' ) start [2025-08-30 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15751168', 'tblTempUsageDetail_20' ) end [2025-08-30 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15751168', 'tblTempVendorCDR_20' ) start [2025-08-30 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15751168', 'tblTempVendorCDR_20' ) end [2025-08-30 19:25:18] Production.INFO: ProcessCDR(1,15751168,1,1,2) [2025-08-30 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15751168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15751168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15751168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15751168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15751168', 'tblTempUsageDetail_20' ) start [2025-08-30 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15751168', 'tblTempUsageDetail_20' ) end [2025-08-30 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-30 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-30 19:25:26] Production.INFO: ==16272== Releasing lock... [2025-08-30 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 19:25:26] Production.INFO: 42.25 MB #Memory Used# [2025-08-30 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 17:25:05 [end_date_ymd] => 2025-08-30 20:25:05 [RateCDR] => 1 ) [2025-08-30 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-30 17:25:05' and `end` < '2025-08-30 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-30 20:25:17] Production.INFO: count ==1622 [2025-08-30 20:25:18] Production.ERROR: pbx CDR StartTime 2025-08-30 17:25:05 - End Time 2025-08-30 20:25:05 [2025-08-30 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15751415', 'tblTempUsageDetail_20' ) start [2025-08-30 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15751415', 'tblTempUsageDetail_20' ) end [2025-08-30 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15751415', 'tblTempVendorCDR_20' ) start [2025-08-30 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15751415', 'tblTempVendorCDR_20' ) end [2025-08-30 20:25:18] Production.INFO: ProcessCDR(1,15751415,1,1,2) [2025-08-30 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15751415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15751415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15751415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15751415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15751415', 'tblTempUsageDetail_20' ) start [2025-08-30 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15751415', 'tblTempUsageDetail_20' ) end [2025-08-30 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-30 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-08-30 20:25:28] Production.INFO: ==20690== Releasing lock... [2025-08-30 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 20:25:28] Production.INFO: 40.25 MB #Memory Used# [2025-08-30 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 18:25:05 [end_date_ymd] => 2025-08-30 21:25:05 [RateCDR] => 1 ) [2025-08-30 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-30 18:25:05' and `end` < '2025-08-30 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-30 21:25:18] Production.INFO: count ==1485 [2025-08-30 21:25:18] Production.ERROR: pbx CDR StartTime 2025-08-30 18:25:05 - End Time 2025-08-30 21:25:05 [2025-08-30 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15751662', 'tblTempUsageDetail_20' ) start [2025-08-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15751662', 'tblTempUsageDetail_20' ) end [2025-08-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15751662', 'tblTempVendorCDR_20' ) start [2025-08-30 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15751662', 'tblTempVendorCDR_20' ) end [2025-08-30 21:25:18] Production.INFO: ProcessCDR(1,15751662,1,1,2) [2025-08-30 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15751662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15751662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15751662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15751662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15751662', 'tblTempUsageDetail_20' ) start [2025-08-30 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15751662', 'tblTempUsageDetail_20' ) end [2025-08-30 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-30 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-30 21:25:27] Production.INFO: ==25267== Releasing lock... [2025-08-30 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 21:25:27] Production.INFO: 39.25 MB #Memory Used# [2025-08-30 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 19:25:05 [end_date_ymd] => 2025-08-30 22:25:05 [RateCDR] => 1 ) [2025-08-30 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-30 19:25:05' and `end` < '2025-08-30 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-30 22:25:17] Production.INFO: count ==1289 [2025-08-30 22:25:18] Production.ERROR: pbx CDR StartTime 2025-08-30 19:25:05 - End Time 2025-08-30 22:25:05 [2025-08-30 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15751909', 'tblTempUsageDetail_20' ) start [2025-08-30 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15751909', 'tblTempUsageDetail_20' ) end [2025-08-30 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15751909', 'tblTempVendorCDR_20' ) start [2025-08-30 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15751909', 'tblTempVendorCDR_20' ) end [2025-08-30 22:25:18] Production.INFO: ProcessCDR(1,15751909,1,1,2) [2025-08-30 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15751909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15751909,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15751909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15751909,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15751909', 'tblTempUsageDetail_20' ) start [2025-08-30 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15751909', 'tblTempUsageDetail_20' ) end [2025-08-30 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-30 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-30 22:25:26] Production.INFO: ==29936== Releasing lock... [2025-08-30 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 22:25:26] Production.INFO: 38 MB #Memory Used# [2025-08-30 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-30 20:25:05 [end_date_ymd] => 2025-08-30 23:25:05 [RateCDR] => 1 ) [2025-08-30 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-30 20:25:05' and `end` < '2025-08-30 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-30 23:25:18] Production.INFO: count ==1077 [2025-08-30 23:25:18] Production.ERROR: pbx CDR StartTime 2025-08-30 20:25:05 - End Time 2025-08-30 23:25:05 [2025-08-30 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-30 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15752156', 'tblTempUsageDetail_20' ) start [2025-08-30 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15752156', 'tblTempUsageDetail_20' ) end [2025-08-30 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15752156', 'tblTempVendorCDR_20' ) start [2025-08-30 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15752156', 'tblTempVendorCDR_20' ) end [2025-08-30 23:25:18] Production.INFO: ProcessCDR(1,15752156,1,1,2) [2025-08-30 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15752156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15752156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-30 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15752156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15752156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-30 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15752156', 'tblTempUsageDetail_20' ) start [2025-08-30 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15752156', 'tblTempUsageDetail_20' ) end [2025-08-30 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-30 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-30 23:25:27] Production.INFO: ==2095== Releasing lock... [2025-08-30 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-30 23:25:27] Production.INFO: 36.75 MB #Memory Used#