[2025-10-21 00:25:04] Production.INFO: next invoice date [2025-10-21 00:25:04] Production.INFO: 2025-11-21 [2025-10-21 00:25:04] Production.INFO: getdaysdiff [2025-10-21 00:25:04] Production.INFO: +31 [2025-10-21 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (18,19,1,31,31,'RMScheduler',2025-10-21 00:25:04,1,0,,,0) [2025-10-21 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-20 21:25:05 [end_date_ymd] => 2025-10-21 00:25:05 [RateCDR] => 1 ) [2025-10-21 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-10-20 21:25:05' and `end` < '2025-10-21 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-21 00:25:17] Production.INFO: count ==723 [2025-10-21 00:25:17] Production.ERROR: pbx CDR StartTime 2025-10-20 21:25:05 - End Time 2025-10-21 00:25:05 [2025-10-21 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16054698', 'tblTempUsageDetail_20' ) start [2025-10-21 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16054698', 'tblTempUsageDetail_20' ) end [2025-10-21 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16054698', 'tblTempVendorCDR_20' ) start [2025-10-21 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16054698', 'tblTempVendorCDR_20' ) end [2025-10-21 00:25:17] Production.INFO: ProcessCDR(1,16054698,1,1,2) [2025-10-21 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16054698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16054698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16054698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16054698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16054698', 'tblTempUsageDetail_20' ) start [2025-10-21 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16054698', 'tblTempUsageDetail_20' ) end [2025-10-21 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-21 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-21 00:25:32] Production.INFO: ==17114== Releasing lock... [2025-10-21 00:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 00:25:32] Production.INFO: 38 MB #Memory Used# [2025-10-21 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-20 22:25:05 [end_date_ymd] => 2025-10-21 01:25:05 [RateCDR] => 1 ) [2025-10-21 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-20 22:25:05' and `end` < '2025-10-21 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-21 01:25:17] Production.INFO: count ==559 [2025-10-21 01:25:17] Production.ERROR: pbx CDR StartTime 2025-10-20 22:25:05 - End Time 2025-10-21 01:25:05 [2025-10-21 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16054945', 'tblTempUsageDetail_20' ) start [2025-10-21 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16054945', 'tblTempUsageDetail_20' ) end [2025-10-21 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16054945', 'tblTempVendorCDR_20' ) start [2025-10-21 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16054945', 'tblTempVendorCDR_20' ) end [2025-10-21 01:25:17] Production.INFO: ProcessCDR(1,16054945,1,1,2) [2025-10-21 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16054945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16054945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16054945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 01:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16054945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16054945', 'tblTempUsageDetail_20' ) start [2025-10-21 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16054945', 'tblTempUsageDetail_20' ) end [2025-10-21 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-21 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-21 01:25:26] Production.INFO: ==21917== Releasing lock... [2025-10-21 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 01:25:26] Production.INFO: 33 MB #Memory Used# [2025-10-21 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-20 23:25:06 [end_date_ymd] => 2025-10-21 02:25:06 [RateCDR] => 1 ) [2025-10-21 02: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-20 23:25:06' and `end` < '2025-10-21 02: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-21 02:25:18] Production.INFO: count ==439 [2025-10-21 02:25:18] Production.ERROR: pbx CDR StartTime 2025-10-20 23:25:06 - End Time 2025-10-21 02:25:06 [2025-10-21 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16055192', 'tblTempUsageDetail_20' ) start [2025-10-21 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16055192', 'tblTempUsageDetail_20' ) end [2025-10-21 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16055192', 'tblTempVendorCDR_20' ) start [2025-10-21 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16055192', 'tblTempVendorCDR_20' ) end [2025-10-21 02:25:18] Production.INFO: ProcessCDR(1,16055192,1,1,2) [2025-10-21 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16055192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16055192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16055192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 02:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16055192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16055192', 'tblTempUsageDetail_20' ) start [2025-10-21 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16055192', 'tblTempUsageDetail_20' ) end [2025-10-21 02:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-21 02:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-21 02:25:27] Production.INFO: ==26237== Releasing lock... [2025-10-21 02:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 02:25:27] Production.INFO: 32.25 MB #Memory Used# [2025-10-21 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-21 00:25:05 [end_date_ymd] => 2025-10-21 03:25:05 [RateCDR] => 1 ) [2025-10-21 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-21 00:25:05' and `end` < '2025-10-21 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-21 03:25:17] Production.INFO: count ==375 [2025-10-21 03:25:17] Production.ERROR: pbx CDR StartTime 2025-10-21 00:25:05 - End Time 2025-10-21 03:25:05 [2025-10-21 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16055439', 'tblTempUsageDetail_20' ) start [2025-10-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16055439', 'tblTempUsageDetail_20' ) end [2025-10-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16055439', 'tblTempVendorCDR_20' ) start [2025-10-21 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16055439', 'tblTempVendorCDR_20' ) end [2025-10-21 03:25:17] Production.INFO: ProcessCDR(1,16055439,1,1,2) [2025-10-21 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16055439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16055439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16055439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16055439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16055439', 'tblTempUsageDetail_20' ) start [2025-10-21 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16055439', 'tblTempUsageDetail_20' ) end [2025-10-21 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-21 03:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-21 03:25:26] Production.INFO: ==30531== Releasing lock... [2025-10-21 03:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 03:25:26] Production.INFO: 31 MB #Memory Used# [2025-10-21 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-21 01:25:05 [end_date_ymd] => 2025-10-21 04:25:05 [RateCDR] => 1 ) [2025-10-21 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-21 01:25:05' and `end` < '2025-10-21 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-21 04:25:17] Production.INFO: count ==219 [2025-10-21 04:25:17] Production.ERROR: pbx CDR StartTime 2025-10-21 01:25:05 - End Time 2025-10-21 04:25:05 [2025-10-21 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16055687', 'tblTempUsageDetail_20' ) start [2025-10-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16055687', 'tblTempUsageDetail_20' ) end [2025-10-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16055687', 'tblTempVendorCDR_20' ) start [2025-10-21 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16055687', 'tblTempVendorCDR_20' ) end [2025-10-21 04:25:17] Production.INFO: ProcessCDR(1,16055687,1,1,2) [2025-10-21 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16055687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16055687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16055687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 04:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16055687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16055687', 'tblTempUsageDetail_20' ) start [2025-10-21 04:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16055687', 'tblTempUsageDetail_20' ) end [2025-10-21 04:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-21 04:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-21 04:25:26] Production.INFO: ==2970== Releasing lock... [2025-10-21 04:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 04:25:26] Production.INFO: 30.25 MB #Memory Used# [2025-10-21 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-21 02:25:05 [end_date_ymd] => 2025-10-21 05:25:05 [RateCDR] => 1 ) [2025-10-21 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-10-21 02:25:05' and `end` < '2025-10-21 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-10-21 05:25:17] Production.INFO: count ==141 [2025-10-21 05:25:17] Production.ERROR: pbx CDR StartTime 2025-10-21 02:25:05 - End Time 2025-10-21 05:25:05 [2025-10-21 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16055935', 'tblTempUsageDetail_20' ) start [2025-10-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16055935', 'tblTempUsageDetail_20' ) end [2025-10-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16055935', 'tblTempVendorCDR_20' ) start [2025-10-21 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16055935', 'tblTempVendorCDR_20' ) end [2025-10-21 05:25:17] Production.INFO: ProcessCDR(1,16055935,1,1,2) [2025-10-21 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16055935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16055935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16055935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 05:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16055935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16055935', 'tblTempUsageDetail_20' ) start [2025-10-21 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16055935', 'tblTempUsageDetail_20' ) end [2025-10-21 05:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-21 05:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-21 05:25:26] Production.INFO: ==7677== Releasing lock... [2025-10-21 05:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 05:25:26] Production.INFO: 29.5 MB #Memory Used# [2025-10-21 06:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-10-21 03:25:06 [end_date_ymd] => 2025-10-21 06:25:06 [RateCDR] => 1 ) [2025-10-21 06: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-21 03:25:06' and `end` < '2025-10-21 06: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-21 06:25:18] Production.INFO: count ==61 [2025-10-21 06:25:18] Production.ERROR: pbx CDR StartTime 2025-10-21 03:25:06 - End Time 2025-10-21 06:25:06 [2025-10-21 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16056182', 'tblTempUsageDetail_20' ) start [2025-10-21 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16056182', 'tblTempUsageDetail_20' ) end [2025-10-21 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16056182', 'tblTempVendorCDR_20' ) start [2025-10-21 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16056182', 'tblTempVendorCDR_20' ) end [2025-10-21 06:25:18] Production.INFO: ProcessCDR(1,16056182,1,1,2) [2025-10-21 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16056182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 06:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16056182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 06:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16056182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 06:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16056182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16056182', 'tblTempUsageDetail_20' ) start [2025-10-21 06:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16056182', 'tblTempUsageDetail_20' ) end [2025-10-21 06:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-21 06:25:26] Production.ERROR: pbx prc_insertCDR end [2025-10-21 06:25:26] Production.INFO: ==12126== Releasing lock... [2025-10-21 06:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 06:25:26] Production.INFO: 28.5 MB #Memory Used# [2025-10-21 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-21 04:25:05 [end_date_ymd] => 2025-10-21 07:25:05 [RateCDR] => 1 ) [2025-10-21 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-21 04:25:05' and `end` < '2025-10-21 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-21 07:25:17] Production.INFO: count ==93 [2025-10-21 07:25:17] Production.ERROR: pbx CDR StartTime 2025-10-21 04:25:05 - End Time 2025-10-21 07:25:05 [2025-10-21 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16056429', 'tblTempUsageDetail_20' ) start [2025-10-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16056429', 'tblTempUsageDetail_20' ) end [2025-10-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16056429', 'tblTempVendorCDR_20' ) start [2025-10-21 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16056429', 'tblTempVendorCDR_20' ) end [2025-10-21 07:25:17] Production.INFO: ProcessCDR(1,16056429,1,1,2) [2025-10-21 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16056429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16056429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16056429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16056429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16056429', 'tblTempUsageDetail_20' ) start [2025-10-21 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16056429', 'tblTempUsageDetail_20' ) end [2025-10-21 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-10-21 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-10-21 07:25:25] Production.INFO: ==16483== Releasing lock... [2025-10-21 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 07:25:25] Production.INFO: 29 MB #Memory Used# [2025-10-21 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-21 05:25:05 [end_date_ymd] => 2025-10-21 08:25:05 [RateCDR] => 1 ) [2025-10-21 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-21 05:25:05' and `end` < '2025-10-21 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-21 08:25:17] Production.INFO: count ==340 [2025-10-21 08:25:17] Production.ERROR: pbx CDR StartTime 2025-10-21 05:25:05 - End Time 2025-10-21 08:25:05 [2025-10-21 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16056676', 'tblTempUsageDetail_20' ) start [2025-10-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16056676', 'tblTempUsageDetail_20' ) end [2025-10-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16056676', 'tblTempVendorCDR_20' ) start [2025-10-21 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16056676', 'tblTempVendorCDR_20' ) end [2025-10-21 08:25:17] Production.INFO: ProcessCDR(1,16056676,1,1,2) [2025-10-21 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16056676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16056676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16056676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16056676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16056676', 'tblTempUsageDetail_20' ) start [2025-10-21 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16056676', 'tblTempUsageDetail_20' ) end [2025-10-21 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-10-21 08:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-21 08:25:27] Production.INFO: ==21073== Releasing lock... [2025-10-21 08:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 08:25:27] Production.INFO: 31 MB #Memory Used# [2025-10-21 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-21 06:25:05 [end_date_ymd] => 2025-10-21 09:25:05 [RateCDR] => 1 ) [2025-10-21 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-21 06:25:05' and `end` < '2025-10-21 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-21 09:25:20] Production.INFO: count ==1363 [2025-10-21 09:25:20] Production.ERROR: pbx CDR StartTime 2025-10-21 06:25:05 - End Time 2025-10-21 09:25:05 [2025-10-21 09:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16056923', 'tblTempUsageDetail_20' ) start [2025-10-21 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16056923', 'tblTempUsageDetail_20' ) end [2025-10-21 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16056923', 'tblTempVendorCDR_20' ) start [2025-10-21 09:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16056923', 'tblTempVendorCDR_20' ) end [2025-10-21 09:25:20] Production.INFO: ProcessCDR(1,16056923,1,1,2) [2025-10-21 09:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16056923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 09:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16056923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 09:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16056923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 09:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16056923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 09:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16056923', 'tblTempUsageDetail_20' ) start [2025-10-21 09:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16056923', 'tblTempUsageDetail_20' ) end [2025-10-21 09:25:30] Production.ERROR: pbx prc_insertCDR start [2025-10-21 09:25:31] Production.ERROR: pbx prc_insertCDR end [2025-10-21 09:25:31] Production.INFO: ==25394== Releasing lock... [2025-10-21 09:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 09:25:31] Production.INFO: 38.25 MB #Memory Used# [2025-10-21 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-21 07:25:05 [end_date_ymd] => 2025-10-21 10:25:05 [RateCDR] => 1 ) [2025-10-21 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-10-21 07:25:05' and `end` < '2025-10-21 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-10-21 10:25:18] Production.INFO: count ==2970 [2025-10-21 10:25:19] Production.ERROR: pbx CDR StartTime 2025-10-21 07:25:05 - End Time 2025-10-21 10:25:05 [2025-10-21 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16057170', 'tblTempUsageDetail_20' ) start [2025-10-21 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16057170', 'tblTempUsageDetail_20' ) end [2025-10-21 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16057170', 'tblTempVendorCDR_20' ) start [2025-10-21 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16057170', 'tblTempVendorCDR_20' ) end [2025-10-21 10:25:19] Production.INFO: ProcessCDR(1,16057170,1,1,2) [2025-10-21 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16057170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16057170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16057170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 10:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16057170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16057170', 'tblTempUsageDetail_20' ) start [2025-10-21 10:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16057170', 'tblTempUsageDetail_20' ) end [2025-10-21 10:25:30] Production.ERROR: pbx prc_insertCDR start [2025-10-21 10:25:32] Production.ERROR: pbx prc_insertCDR end [2025-10-21 10:25:32] Production.INFO: ==29788== Releasing lock... [2025-10-21 10:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 10:25:32] Production.INFO: 50.25 MB #Memory Used# [2025-10-21 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-21 08:25:05 [end_date_ymd] => 2025-10-21 11:25:05 [RateCDR] => 1 ) [2025-10-21 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-10-21 08:25:05' and `end` < '2025-10-21 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-10-21 11:25:21] Production.INFO: count ==4469 [2025-10-21 11:25:23] Production.ERROR: pbx CDR StartTime 2025-10-21 08:25:05 - End Time 2025-10-21 11:25:05 [2025-10-21 11:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16057417', 'tblTempUsageDetail_20' ) start [2025-10-21 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16057417', 'tblTempUsageDetail_20' ) end [2025-10-21 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16057417', 'tblTempVendorCDR_20' ) start [2025-10-21 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16057417', 'tblTempVendorCDR_20' ) end [2025-10-21 11:25:23] Production.INFO: ProcessCDR(1,16057417,1,1,2) [2025-10-21 11:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16057417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 11:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16057417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 11:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16057417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 11:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16057417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 11:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16057417', 'tblTempUsageDetail_20' ) start [2025-10-21 11:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16057417', 'tblTempUsageDetail_20' ) end [2025-10-21 11:25:34] Production.ERROR: pbx prc_insertCDR start [2025-10-21 11:25:37] Production.ERROR: pbx prc_insertCDR end [2025-10-21 11:25:37] Production.INFO: ==2228== Releasing lock... [2025-10-21 11:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 11:25:37] Production.INFO: 61.5 MB #Memory Used# [2025-10-21 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-21 09:25:05 [end_date_ymd] => 2025-10-21 12:25:05 [RateCDR] => 1 ) [2025-10-21 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-21 09:25:05' and `end` < '2025-10-21 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-21 12:25:19] Production.INFO: count ==5302 [2025-10-21 12:25:21] Production.ERROR: pbx CDR StartTime 2025-10-21 09:25:05 - End Time 2025-10-21 12:25:05 [2025-10-21 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16057664', 'tblTempUsageDetail_20' ) start [2025-10-21 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16057664', 'tblTempUsageDetail_20' ) end [2025-10-21 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16057664', 'tblTempVendorCDR_20' ) start [2025-10-21 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16057664', 'tblTempVendorCDR_20' ) end [2025-10-21 12:25:22] Production.INFO: ProcessCDR(1,16057664,1,1,2) [2025-10-21 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16057664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 12:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16057664,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 12:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16057664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 12:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16057664,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16057664', 'tblTempUsageDetail_20' ) start [2025-10-21 12:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16057664', 'tblTempUsageDetail_20' ) end [2025-10-21 12:25:33] Production.ERROR: pbx prc_insertCDR start [2025-10-21 12:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-21 12:25:35] Production.INFO: ==6945== Releasing lock... [2025-10-21 12:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 12:25:35] Production.INFO: 68 MB #Memory Used# [2025-10-21 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-21 10:25:05 [end_date_ymd] => 2025-10-21 13:25:05 [RateCDR] => 1 ) [2025-10-21 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-21 10:25:05' and `end` < '2025-10-21 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-21 13:25:21] Production.INFO: count ==5176 [2025-10-21 13:25:24] Production.ERROR: pbx CDR StartTime 2025-10-21 10:25:05 - End Time 2025-10-21 13:25:05 [2025-10-21 13:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16057911', 'tblTempUsageDetail_20' ) start [2025-10-21 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16057911', 'tblTempUsageDetail_20' ) end [2025-10-21 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16057911', 'tblTempVendorCDR_20' ) start [2025-10-21 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16057911', 'tblTempVendorCDR_20' ) end [2025-10-21 13:25:24] Production.INFO: ProcessCDR(1,16057911,1,1,2) [2025-10-21 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16057911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 13:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16057911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 13:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16057911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 13:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16057911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 13:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16057911', 'tblTempUsageDetail_20' ) start [2025-10-21 13:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16057911', 'tblTempUsageDetail_20' ) end [2025-10-21 13:25:34] Production.ERROR: pbx prc_insertCDR start [2025-10-21 13:25:36] Production.ERROR: pbx prc_insertCDR end [2025-10-21 13:25:36] Production.INFO: ==11410== Releasing lock... [2025-10-21 13:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 13:25:36] Production.INFO: 67 MB #Memory Used# [2025-10-21 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-21 11:25:05 [end_date_ymd] => 2025-10-21 14:25:05 [RateCDR] => 1 ) [2025-10-21 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-21 11:25:05' and `end` < '2025-10-21 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-21 14:25:19] Production.INFO: count ==5303 [2025-10-21 14:25:22] Production.ERROR: pbx CDR StartTime 2025-10-21 11:25:05 - End Time 2025-10-21 14:25:05 [2025-10-21 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16058158', 'tblTempUsageDetail_20' ) start [2025-10-21 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16058158', 'tblTempUsageDetail_20' ) end [2025-10-21 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16058158', 'tblTempVendorCDR_20' ) start [2025-10-21 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16058158', 'tblTempVendorCDR_20' ) end [2025-10-21 14:25:22] Production.INFO: ProcessCDR(1,16058158,1,1,2) [2025-10-21 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16058158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 14:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16058158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 14:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16058158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 14:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16058158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16058158', 'tblTempUsageDetail_20' ) start [2025-10-21 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16058158', 'tblTempUsageDetail_20' ) end [2025-10-21 14:25:33] Production.ERROR: pbx prc_insertCDR start [2025-10-21 14:25:35] Production.ERROR: pbx prc_insertCDR end [2025-10-21 14:25:35] Production.INFO: ==15702== Releasing lock... [2025-10-21 14:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 14:25:35] Production.INFO: 68 MB #Memory Used# [2025-10-21 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-21 12:25:05 [end_date_ymd] => 2025-10-21 15:25:05 [RateCDR] => 1 ) [2025-10-21 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-21 12:25:05' and `end` < '2025-10-21 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-21 15:25:21] Production.INFO: count ==5278 [2025-10-21 15:25:23] Production.ERROR: pbx CDR StartTime 2025-10-21 12:25:05 - End Time 2025-10-21 15:25:05 [2025-10-21 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16058405', 'tblTempUsageDetail_20' ) start [2025-10-21 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16058405', 'tblTempUsageDetail_20' ) end [2025-10-21 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16058405', 'tblTempVendorCDR_20' ) start [2025-10-21 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16058405', 'tblTempVendorCDR_20' ) end [2025-10-21 15:25:23] Production.INFO: ProcessCDR(1,16058405,1,1,2) [2025-10-21 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16058405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 15:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16058405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 15:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16058405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 15:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16058405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 15:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16058405', 'tblTempUsageDetail_20' ) start [2025-10-21 15:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16058405', 'tblTempUsageDetail_20' ) end [2025-10-21 15:25:34] Production.ERROR: pbx prc_insertCDR start [2025-10-21 15:25:37] Production.ERROR: pbx prc_insertCDR end [2025-10-21 15:25:37] Production.INFO: ==20274== Releasing lock... [2025-10-21 15:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 15:25:37] Production.INFO: 67.75 MB #Memory Used# [2025-10-21 16:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-10-21 13:25:04 [end_date_ymd] => 2025-10-21 16:25:04 [RateCDR] => 1 ) [2025-10-21 16: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-10-21 13:25:04' and `end` < '2025-10-21 16: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-10-21 16:25:18] Production.INFO: count ==5345 [2025-10-21 16:25:20] Production.ERROR: pbx CDR StartTime 2025-10-21 13:25:04 - End Time 2025-10-21 16:25:04 [2025-10-21 16:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 16:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16058652', 'tblTempUsageDetail_20' ) start [2025-10-21 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16058652', 'tblTempUsageDetail_20' ) end [2025-10-21 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16058652', 'tblTempVendorCDR_20' ) start [2025-10-21 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16058652', 'tblTempVendorCDR_20' ) end [2025-10-21 16:25:21] Production.INFO: ProcessCDR(1,16058652,1,1,2) [2025-10-21 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16058652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16058652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16058652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16058652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16058652', 'tblTempUsageDetail_20' ) start [2025-10-21 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16058652', 'tblTempUsageDetail_20' ) end [2025-10-21 16:25:31] Production.ERROR: pbx prc_insertCDR start [2025-10-21 16:25:33] Production.ERROR: pbx prc_insertCDR end [2025-10-21 16:25:33] Production.INFO: ==24864== Releasing lock... [2025-10-21 16:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 16:25:33] Production.INFO: 68.25 MB #Memory Used# [2025-10-21 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-21 14:25:05 [end_date_ymd] => 2025-10-21 17:25:05 [RateCDR] => 1 ) [2025-10-21 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-21 14:25:05' and `end` < '2025-10-21 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-21 17:25:18] Production.INFO: count ==4845 [2025-10-21 17:25:21] Production.ERROR: pbx CDR StartTime 2025-10-21 14:25:05 - End Time 2025-10-21 17:25:05 [2025-10-21 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16058899', 'tblTempUsageDetail_20' ) start [2025-10-21 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16058899', 'tblTempUsageDetail_20' ) end [2025-10-21 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16058899', 'tblTempVendorCDR_20' ) start [2025-10-21 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16058899', 'tblTempVendorCDR_20' ) end [2025-10-21 17:25:21] Production.INFO: ProcessCDR(1,16058899,1,1,2) [2025-10-21 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16058899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16058899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16058899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16058899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16058899', 'tblTempUsageDetail_20' ) start [2025-10-21 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16058899', 'tblTempUsageDetail_20' ) end [2025-10-21 17:25:32] Production.ERROR: pbx prc_insertCDR start [2025-10-21 17:25:33] Production.ERROR: pbx prc_insertCDR end [2025-10-21 17:25:33] Production.INFO: ==29198== Releasing lock... [2025-10-21 17:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 17:25:33] Production.INFO: 64.5 MB #Memory Used# [2025-10-21 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-21 15:25:05 [end_date_ymd] => 2025-10-21 18:25:05 [RateCDR] => 1 ) [2025-10-21 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-21 15:25:05' and `end` < '2025-10-21 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-21 18:25:18] Production.INFO: count ==3883 [2025-10-21 18:25:20] Production.ERROR: pbx CDR StartTime 2025-10-21 15:25:05 - End Time 2025-10-21 18:25:05 [2025-10-21 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16059146', 'tblTempUsageDetail_20' ) start [2025-10-21 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16059146', 'tblTempUsageDetail_20' ) end [2025-10-21 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16059146', 'tblTempVendorCDR_20' ) start [2025-10-21 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16059146', 'tblTempVendorCDR_20' ) end [2025-10-21 18:25:20] Production.INFO: ProcessCDR(1,16059146,1,1,2) [2025-10-21 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16059146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16059146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16059146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 18:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16059146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 18:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16059146', 'tblTempUsageDetail_20' ) start [2025-10-21 18:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16059146', 'tblTempUsageDetail_20' ) end [2025-10-21 18:25:30] Production.ERROR: pbx prc_insertCDR start [2025-10-21 18:25:31] Production.ERROR: pbx prc_insertCDR end [2025-10-21 18:25:31] Production.INFO: ==1301== Releasing lock... [2025-10-21 18:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 18:25:31] Production.INFO: 58 MB #Memory Used# [2025-10-21 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-21 16:25:05 [end_date_ymd] => 2025-10-21 19:25:05 [RateCDR] => 1 ) [2025-10-21 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-21 16:25:05' and `end` < '2025-10-21 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-21 19:25:17] Production.INFO: count ==2796 [2025-10-21 19:25:19] Production.ERROR: pbx CDR StartTime 2025-10-21 16:25:05 - End Time 2025-10-21 19:25:05 [2025-10-21 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16059390', 'tblTempUsageDetail_20' ) start [2025-10-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16059390', 'tblTempUsageDetail_20' ) end [2025-10-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16059390', 'tblTempVendorCDR_20' ) start [2025-10-21 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16059390', 'tblTempVendorCDR_20' ) end [2025-10-21 19:25:19] Production.INFO: ProcessCDR(1,16059390,1,1,2) [2025-10-21 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16059390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16059390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16059390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16059390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16059390', 'tblTempUsageDetail_20' ) start [2025-10-21 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16059390', 'tblTempUsageDetail_20' ) end [2025-10-21 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-10-21 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-10-21 19:25:28] Production.INFO: ==5647== Releasing lock... [2025-10-21 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 19:25:28] Production.INFO: 49.75 MB #Memory Used# [2025-10-21 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-21 17:25:05 [end_date_ymd] => 2025-10-21 20:25:05 [RateCDR] => 1 ) [2025-10-21 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-21 17:25:05' and `end` < '2025-10-21 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-21 20:25:18] Production.INFO: count ==1960 [2025-10-21 20:25:18] Production.ERROR: pbx CDR StartTime 2025-10-21 17:25:05 - End Time 2025-10-21 20:25:05 [2025-10-21 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16059637', 'tblTempUsageDetail_20' ) start [2025-10-21 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16059637', 'tblTempUsageDetail_20' ) end [2025-10-21 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16059637', 'tblTempVendorCDR_20' ) start [2025-10-21 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16059637', 'tblTempVendorCDR_20' ) end [2025-10-21 20:25:19] Production.INFO: ProcessCDR(1,16059637,1,1,2) [2025-10-21 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16059637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16059637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16059637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 20:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16059637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16059637', 'tblTempUsageDetail_20' ) start [2025-10-21 20:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16059637', 'tblTempUsageDetail_20' ) end [2025-10-21 20:25:29] Production.ERROR: pbx prc_insertCDR start [2025-10-21 20:25:30] Production.ERROR: pbx prc_insertCDR end [2025-10-21 20:25:30] Production.INFO: ==10905== Releasing lock... [2025-10-21 20:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 20:25:30] Production.INFO: 42.75 MB #Memory Used# [2025-10-21 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-10-21 18:25:05 [end_date_ymd] => 2025-10-21 21:25:05 [RateCDR] => 1 ) [2025-10-21 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-21 18:25:05' and `end` < '2025-10-21 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-21 21:25:17] Production.INFO: count ==1459 [2025-10-21 21:25:18] Production.ERROR: pbx CDR StartTime 2025-10-21 18:25:05 - End Time 2025-10-21 21:25:05 [2025-10-21 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-10-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16059884', 'tblTempUsageDetail_20' ) start [2025-10-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16059884', 'tblTempUsageDetail_20' ) end [2025-10-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16059884', 'tblTempVendorCDR_20' ) start [2025-10-21 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16059884', 'tblTempVendorCDR_20' ) end [2025-10-21 21:25:18] Production.INFO: ProcessCDR(1,16059884,1,1,2) [2025-10-21 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16059884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16059884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-10-21 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16059884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16059884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-10-21 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16059884', 'tblTempUsageDetail_20' ) start [2025-10-21 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16059884', 'tblTempUsageDetail_20' ) end [2025-10-21 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-10-21 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-10-21 21:25:27] Production.INFO: ==15996== Releasing lock... [2025-10-21 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-10-21 21:25:27] Production.INFO: 39 MB #Memory Used#