[2025-09-05 00:25:04] Production.INFO: next invoice date [2025-09-05 00:25:04] Production.INFO: 2025-10-05 [2025-09-05 00:25:04] Production.INFO: getdaysdiff [2025-09-05 00:25:04] Production.INFO: +30 [2025-09-05 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (182,11,1,30,30,'RMScheduler',2025-09-05 00:25:04,0,0,,,0) [2025-09-05 00:25:04] Production.INFO: next invoice date [2025-09-05 00:25:04] Production.INFO: 2025-10-05 [2025-09-05 00:25:04] Production.INFO: getdaysdiff [2025-09-05 00:25:04] Production.INFO: +30 [2025-09-05 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (182,13,2,30,30,'RMScheduler',2025-09-05 00:25:04,0,0,,,0) [2025-09-05 00:25:04] Production.INFO: next invoice date [2025-09-05 00:25:04] Production.INFO: 2025-10-05 [2025-09-05 00:25:04] Production.INFO: getdaysdiff [2025-09-05 00:25:04] Production.INFO: +30 [2025-09-05 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (188,16,1,30,30,'RMScheduler',2025-09-05 00:25:04,0,0,,,0) [2025-09-05 00:25:04] Production.INFO: next invoice date [2025-09-05 00:25:04] Production.INFO: 2025-10-05 [2025-09-05 00:25:04] Production.INFO: getdaysdiff [2025-09-05 00:25:04] Production.INFO: +30 [2025-09-05 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (188,13,2,30,30,'RMScheduler',2025-09-05 00:25:04,0,0,,,0) [2025-09-05 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 21:25:05 [end_date_ymd] => 2025-09-05 00:25:05 [RateCDR] => 1 ) [2025-09-05 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-09-04 21:25:05' and `end` < '2025-09-05 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-09-05 00:25:21] Production.INFO: count ==522 [2025-09-05 00:25:21] Production.ERROR: pbx CDR StartTime 2025-09-04 21:25:05 - End Time 2025-09-05 00:25:05 [2025-09-05 00:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15782040', 'tblTempUsageDetail_20' ) start [2025-09-05 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15782040', 'tblTempUsageDetail_20' ) end [2025-09-05 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15782040', 'tblTempVendorCDR_20' ) start [2025-09-05 00:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15782040', 'tblTempVendorCDR_20' ) end [2025-09-05 00:25:21] Production.INFO: ProcessCDR(1,15782040,1,1,2) [2025-09-05 00:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15782040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 00:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15782040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 00:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15782040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 00:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15782040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 00:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15782040', 'tblTempUsageDetail_20' ) start [2025-09-05 00:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15782040', 'tblTempUsageDetail_20' ) end [2025-09-05 00:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-05 00:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-05 00:25:30] Production.INFO: ==1866== Releasing lock... [2025-09-05 00:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 00:25:30] Production.INFO: 36 MB #Memory Used# [2025-09-05 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 22:25:05 [end_date_ymd] => 2025-09-05 01:25:05 [RateCDR] => 1 ) [2025-09-05 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-09-04 22:25:05' and `end` < '2025-09-05 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-09-05 01:25:18] Production.INFO: count ==496 [2025-09-05 01:25:18] Production.ERROR: pbx CDR StartTime 2025-09-04 22:25:05 - End Time 2025-09-05 01:25:05 [2025-09-05 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15782287', 'tblTempUsageDetail_20' ) start [2025-09-05 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15782287', 'tblTempUsageDetail_20' ) end [2025-09-05 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15782287', 'tblTempVendorCDR_20' ) start [2025-09-05 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15782287', 'tblTempVendorCDR_20' ) end [2025-09-05 01:25:18] Production.INFO: ProcessCDR(1,15782287,1,1,2) [2025-09-05 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15782287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15782287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15782287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15782287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15782287', 'tblTempUsageDetail_20' ) start [2025-09-05 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15782287', 'tblTempUsageDetail_20' ) end [2025-09-05 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-05 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-05 01:25:26] Production.INFO: ==6374== Releasing lock... [2025-09-05 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 01:25:26] Production.INFO: 32.5 MB #Memory Used# [2025-09-05 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-04 23:25:06 [end_date_ymd] => 2025-09-05 02:25:06 [RateCDR] => 1 ) [2025-09-05 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-09-04 23:25:06' and `end` < '2025-09-05 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-09-05 02:25:18] Production.INFO: count ==460 [2025-09-05 02:25:18] Production.ERROR: pbx CDR StartTime 2025-09-04 23:25:06 - End Time 2025-09-05 02:25:06 [2025-09-05 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15782534', 'tblTempUsageDetail_20' ) start [2025-09-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15782534', 'tblTempUsageDetail_20' ) end [2025-09-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15782534', 'tblTempVendorCDR_20' ) start [2025-09-05 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15782534', 'tblTempVendorCDR_20' ) end [2025-09-05 02:25:18] Production.INFO: ProcessCDR(1,15782534,1,1,2) [2025-09-05 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15782534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15782534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15782534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15782534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15782534', 'tblTempUsageDetail_20' ) start [2025-09-05 02:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15782534', 'tblTempUsageDetail_20' ) end [2025-09-05 02:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-05 02:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-05 02:25:27] Production.INFO: ==10760== Releasing lock... [2025-09-05 02:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 02:25:27] Production.INFO: 32.25 MB #Memory Used# [2025-09-05 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 00:25:05 [end_date_ymd] => 2025-09-05 03:25:05 [RateCDR] => 1 ) [2025-09-05 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-09-05 00:25:05' and `end` < '2025-09-05 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-09-05 03:25:17] Production.INFO: count ==362 [2025-09-05 03:25:17] Production.ERROR: pbx CDR StartTime 2025-09-05 00:25:05 - End Time 2025-09-05 03:25:05 [2025-09-05 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15782781', 'tblTempUsageDetail_20' ) start [2025-09-05 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15782781', 'tblTempUsageDetail_20' ) end [2025-09-05 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15782781', 'tblTempVendorCDR_20' ) start [2025-09-05 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15782781', 'tblTempVendorCDR_20' ) end [2025-09-05 03:25:17] Production.INFO: ProcessCDR(1,15782781,1,1,2) [2025-09-05 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15782781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15782781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15782781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15782781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15782781', 'tblTempUsageDetail_20' ) start [2025-09-05 03:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15782781', 'tblTempUsageDetail_20' ) end [2025-09-05 03:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-05 03:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-05 03:25:26] Production.INFO: ==15036== Releasing lock... [2025-09-05 03:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 03:25:26] Production.INFO: 30.75 MB #Memory Used# [2025-09-05 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 01:25:05 [end_date_ymd] => 2025-09-05 04:25:05 [RateCDR] => 1 ) [2025-09-05 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-09-05 01:25:05' and `end` < '2025-09-05 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-09-05 04:25:18] Production.INFO: count ==246 [2025-09-05 04:25:18] Production.ERROR: pbx CDR StartTime 2025-09-05 01:25:05 - End Time 2025-09-05 04:25:05 [2025-09-05 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15783029', 'tblTempUsageDetail_20' ) start [2025-09-05 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15783029', 'tblTempUsageDetail_20' ) end [2025-09-05 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15783029', 'tblTempVendorCDR_20' ) start [2025-09-05 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15783029', 'tblTempVendorCDR_20' ) end [2025-09-05 04:25:18] Production.INFO: ProcessCDR(1,15783029,1,1,2) [2025-09-05 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15783029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15783029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15783029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 04:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15783029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15783029', 'tblTempUsageDetail_20' ) start [2025-09-05 04:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15783029', 'tblTempUsageDetail_20' ) end [2025-09-05 04:25:23] Production.ERROR: pbx prc_insertCDR start [2025-09-05 04:25:23] Production.ERROR: pbx prc_insertCDR end [2025-09-05 04:25:23] Production.INFO: ==19355== Releasing lock... [2025-09-05 04:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 04:25:23] Production.INFO: 30.25 MB #Memory Used# [2025-09-05 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 02:25:05 [end_date_ymd] => 2025-09-05 05:25:05 [RateCDR] => 1 ) [2025-09-05 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-09-05 02:25:05' and `end` < '2025-09-05 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-09-05 05:25:18] Production.INFO: count ==155 [2025-09-05 05:25:18] Production.ERROR: pbx CDR StartTime 2025-09-05 02:25:05 - End Time 2025-09-05 05:25:05 [2025-09-05 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15783277', 'tblTempUsageDetail_20' ) start [2025-09-05 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15783277', 'tblTempUsageDetail_20' ) end [2025-09-05 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15783277', 'tblTempVendorCDR_20' ) start [2025-09-05 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15783277', 'tblTempVendorCDR_20' ) end [2025-09-05 05:25:18] Production.INFO: ProcessCDR(1,15783277,1,1,2) [2025-09-05 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15783277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15783277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15783277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15783277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15783277', 'tblTempUsageDetail_20' ) start [2025-09-05 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15783277', 'tblTempUsageDetail_20' ) end [2025-09-05 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-05 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-05 05:25:25] Production.INFO: ==24140== Releasing lock... [2025-09-05 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 05:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-09-05 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 03:25:05 [end_date_ymd] => 2025-09-05 06:25:05 [RateCDR] => 1 ) [2025-09-05 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-09-05 03:25:05' and `end` < '2025-09-05 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-09-05 06:25:17] Production.INFO: count ==131 [2025-09-05 06:25:17] Production.ERROR: pbx CDR StartTime 2025-09-05 03:25:05 - End Time 2025-09-05 06:25:05 [2025-09-05 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15783524', 'tblTempUsageDetail_20' ) start [2025-09-05 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15783524', 'tblTempUsageDetail_20' ) end [2025-09-05 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15783524', 'tblTempVendorCDR_20' ) start [2025-09-05 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15783524', 'tblTempVendorCDR_20' ) end [2025-09-05 06:25:17] Production.INFO: ProcessCDR(1,15783524,1,1,2) [2025-09-05 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15783524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15783524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15783524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 06:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15783524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15783524', 'tblTempUsageDetail_20' ) start [2025-09-05 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15783524', 'tblTempUsageDetail_20' ) end [2025-09-05 06:25:22] Production.ERROR: pbx prc_insertCDR start [2025-09-05 06:25:22] Production.ERROR: pbx prc_insertCDR end [2025-09-05 06:25:22] Production.INFO: ==28511== Releasing lock... [2025-09-05 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 06:25:22] Production.INFO: 29 MB #Memory Used# [2025-09-05 07:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 04:25:06 [end_date_ymd] => 2025-09-05 07:25:06 [RateCDR] => 1 ) [2025-09-05 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-09-05 04:25:06' and `end` < '2025-09-05 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-09-05 07:25:18] Production.INFO: count ==136 [2025-09-05 07:25:18] Production.ERROR: pbx CDR StartTime 2025-09-05 04:25:06 - End Time 2025-09-05 07:25:06 [2025-09-05 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15783771', 'tblTempUsageDetail_20' ) start [2025-09-05 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15783771', 'tblTempUsageDetail_20' ) end [2025-09-05 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15783771', 'tblTempVendorCDR_20' ) start [2025-09-05 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15783771', 'tblTempVendorCDR_20' ) end [2025-09-05 07:25:18] Production.INFO: ProcessCDR(1,15783771,1,1,2) [2025-09-05 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15783771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 07:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15783771,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 07:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15783771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 07:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15783771,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15783771', 'tblTempUsageDetail_20' ) start [2025-09-05 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15783771', 'tblTempUsageDetail_20' ) end [2025-09-05 07:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-05 07:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-05 07:25:26] Production.INFO: ==383== Releasing lock... [2025-09-05 07:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 07:25:26] Production.INFO: 29.25 MB #Memory Used# [2025-09-05 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 05:25:06 [end_date_ymd] => 2025-09-05 08:25:06 [RateCDR] => 1 ) [2025-09-05 08:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-05 05:25:06' and `end` < '2025-09-05 08:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-05 08:25:18] Production.INFO: count ==312 [2025-09-05 08:25:18] Production.ERROR: pbx CDR StartTime 2025-09-05 05:25:06 - End Time 2025-09-05 08:25:06 [2025-09-05 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15784018', 'tblTempUsageDetail_20' ) start [2025-09-05 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15784018', 'tblTempUsageDetail_20' ) end [2025-09-05 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15784018', 'tblTempVendorCDR_20' ) start [2025-09-05 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15784018', 'tblTempVendorCDR_20' ) end [2025-09-05 08:25:18] Production.INFO: ProcessCDR(1,15784018,1,1,2) [2025-09-05 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15784018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15784018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15784018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15784018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15784018', 'tblTempUsageDetail_20' ) start [2025-09-05 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15784018', 'tblTempUsageDetail_20' ) end [2025-09-05 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-05 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-05 08:25:26] Production.INFO: ==4811== Releasing lock... [2025-09-05 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 08:25:26] Production.INFO: 30.75 MB #Memory Used# [2025-09-05 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 06:25:05 [end_date_ymd] => 2025-09-05 09:25:05 [RateCDR] => 1 ) [2025-09-05 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-09-05 06:25:05' and `end` < '2025-09-05 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-09-05 09:25:18] Production.INFO: count ==1307 [2025-09-05 09:25:19] Production.ERROR: pbx CDR StartTime 2025-09-05 06:25:05 - End Time 2025-09-05 09:25:05 [2025-09-05 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15784265', 'tblTempUsageDetail_20' ) start [2025-09-05 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15784265', 'tblTempUsageDetail_20' ) end [2025-09-05 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15784265', 'tblTempVendorCDR_20' ) start [2025-09-05 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15784265', 'tblTempVendorCDR_20' ) end [2025-09-05 09:25:19] Production.INFO: ProcessCDR(1,15784265,1,1,2) [2025-09-05 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15784265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 09:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15784265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 09:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15784265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15784265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15784265', 'tblTempUsageDetail_20' ) start [2025-09-05 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15784265', 'tblTempUsageDetail_20' ) end [2025-09-05 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-05 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-05 09:25:28] Production.INFO: ==9195== Releasing lock... [2025-09-05 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 09:25:28] Production.INFO: 38.25 MB #Memory Used# [2025-09-05 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 07:25:05 [end_date_ymd] => 2025-09-05 10:25:05 [RateCDR] => 1 ) [2025-09-05 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-09-05 07:25:05' and `end` < '2025-09-05 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-09-05 10:25:21] Production.INFO: count ==3090 [2025-09-05 10:25:23] Production.ERROR: pbx CDR StartTime 2025-09-05 07:25:05 - End Time 2025-09-05 10:25:05 [2025-09-05 10:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15784512', 'tblTempUsageDetail_20' ) start [2025-09-05 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15784512', 'tblTempUsageDetail_20' ) end [2025-09-05 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15784512', 'tblTempVendorCDR_20' ) start [2025-09-05 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15784512', 'tblTempVendorCDR_20' ) end [2025-09-05 10:25:23] Production.INFO: ProcessCDR(1,15784512,1,1,2) [2025-09-05 10:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15784512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 10:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15784512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 10:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15784512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 10:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15784512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 10:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15784512', 'tblTempUsageDetail_20' ) start [2025-09-05 10:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15784512', 'tblTempUsageDetail_20' ) end [2025-09-05 10:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-05 10:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-05 10:25:34] Production.INFO: ==13527== Releasing lock... [2025-09-05 10:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 10:25:34] Production.INFO: 51.25 MB #Memory Used# [2025-09-05 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 08:25:05 [end_date_ymd] => 2025-09-05 11:25:05 [RateCDR] => 1 ) [2025-09-05 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-09-05 08:25:05' and `end` < '2025-09-05 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-09-05 11:25:18] Production.INFO: count ==4794 [2025-09-05 11:25:21] Production.ERROR: pbx CDR StartTime 2025-09-05 08:25:05 - End Time 2025-09-05 11:25:05 [2025-09-05 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15784759', 'tblTempUsageDetail_20' ) start [2025-09-05 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15784759', 'tblTempUsageDetail_20' ) end [2025-09-05 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15784759', 'tblTempVendorCDR_20' ) start [2025-09-05 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15784759', 'tblTempVendorCDR_20' ) end [2025-09-05 11:25:21] Production.INFO: ProcessCDR(1,15784759,1,1,2) [2025-09-05 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15784759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15784759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15784759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15784759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15784759', 'tblTempUsageDetail_20' ) start [2025-09-05 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15784759', 'tblTempUsageDetail_20' ) end [2025-09-05 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-05 11:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-05 11:25:34] Production.INFO: ==17923== Releasing lock... [2025-09-05 11:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 11:25:34] Production.INFO: 64 MB #Memory Used# [2025-09-05 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 09:25:05 [end_date_ymd] => 2025-09-05 12:25:05 [RateCDR] => 1 ) [2025-09-05 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-09-05 09:25:05' and `end` < '2025-09-05 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-09-05 12:25:19] Production.INFO: count ==5533 [2025-09-05 12:25:22] Production.ERROR: pbx CDR StartTime 2025-09-05 09:25:05 - End Time 2025-09-05 12:25:05 [2025-09-05 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15785006', 'tblTempUsageDetail_20' ) start [2025-09-05 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15785006', 'tblTempUsageDetail_20' ) end [2025-09-05 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15785006', 'tblTempVendorCDR_20' ) start [2025-09-05 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15785006', 'tblTempVendorCDR_20' ) end [2025-09-05 12:25:22] Production.INFO: ProcessCDR(1,15785006,1,1,2) [2025-09-05 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15785006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15785006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15785006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 12:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15785006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15785006', 'tblTempUsageDetail_20' ) start [2025-09-05 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15785006', 'tblTempUsageDetail_20' ) end [2025-09-05 12:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-05 12:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-05 12:25:35] Production.INFO: ==22270== Releasing lock... [2025-09-05 12:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 12:25:35] Production.INFO: 69.75 MB #Memory Used# [2025-09-05 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 10:25:05 [end_date_ymd] => 2025-09-05 13:25:05 [RateCDR] => 1 ) [2025-09-05 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-09-05 10:25:05' and `end` < '2025-09-05 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-09-05 13:25:19] Production.INFO: count ==5146 [2025-09-05 13:25:21] Production.ERROR: pbx CDR StartTime 2025-09-05 10:25:05 - End Time 2025-09-05 13:25:05 [2025-09-05 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15785253', 'tblTempUsageDetail_20' ) start [2025-09-05 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15785253', 'tblTempUsageDetail_20' ) end [2025-09-05 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15785253', 'tblTempVendorCDR_20' ) start [2025-09-05 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15785253', 'tblTempVendorCDR_20' ) end [2025-09-05 13:25:22] Production.INFO: ProcessCDR(1,15785253,1,1,2) [2025-09-05 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15785253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 13:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15785253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 13:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15785253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 13:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15785253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 13:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15785253', 'tblTempUsageDetail_20' ) start [2025-09-05 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15785253', 'tblTempUsageDetail_20' ) end [2025-09-05 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-05 13:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-05 13:25:32] Production.INFO: ==26618== Releasing lock... [2025-09-05 13:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 13:25:32] Production.INFO: 66.75 MB #Memory Used# [2025-09-05 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 11:25:05 [end_date_ymd] => 2025-09-05 14:25:05 [RateCDR] => 1 ) [2025-09-05 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-09-05 11:25:05' and `end` < '2025-09-05 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-09-05 14:25:20] Production.INFO: count ==4927 [2025-09-05 14:25:23] Production.ERROR: pbx CDR StartTime 2025-09-05 11:25:05 - End Time 2025-09-05 14:25:05 [2025-09-05 14:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15785500', 'tblTempUsageDetail_20' ) start [2025-09-05 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15785500', 'tblTempUsageDetail_20' ) end [2025-09-05 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15785500', 'tblTempVendorCDR_20' ) start [2025-09-05 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15785500', 'tblTempVendorCDR_20' ) end [2025-09-05 14:25:23] Production.INFO: ProcessCDR(1,15785500,1,1,2) [2025-09-05 14:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15785500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 14:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15785500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 14:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15785500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 14:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15785500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15785500', 'tblTempUsageDetail_20' ) start [2025-09-05 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15785500', 'tblTempUsageDetail_20' ) end [2025-09-05 14:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-05 14:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-05 14:25:35] Production.INFO: ==31558== Releasing lock... [2025-09-05 14:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 14:25:35] Production.INFO: 65 MB #Memory Used# [2025-09-05 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 12:25:05 [end_date_ymd] => 2025-09-05 15:25:05 [RateCDR] => 1 ) [2025-09-05 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-09-05 12:25:05' and `end` < '2025-09-05 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-09-05 15:25:19] Production.INFO: count ==5067 [2025-09-05 15:25:22] Production.ERROR: pbx CDR StartTime 2025-09-05 12:25:05 - End Time 2025-09-05 15:25:05 [2025-09-05 15:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15785747', 'tblTempUsageDetail_20' ) start [2025-09-05 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15785747', 'tblTempUsageDetail_20' ) end [2025-09-05 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15785747', 'tblTempVendorCDR_20' ) start [2025-09-05 15:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15785747', 'tblTempVendorCDR_20' ) end [2025-09-05 15:25:22] Production.INFO: ProcessCDR(1,15785747,1,1,2) [2025-09-05 15:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15785747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 15:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15785747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 15:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15785747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15785747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15785747', 'tblTempUsageDetail_20' ) start [2025-09-05 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15785747', 'tblTempUsageDetail_20' ) end [2025-09-05 15:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-05 15:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-05 15:25:34] Production.INFO: ==4651== Releasing lock... [2025-09-05 15:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 15:25:34] Production.INFO: 66.5 MB #Memory Used# [2025-09-05 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 13:25:05 [end_date_ymd] => 2025-09-05 16:25:05 [RateCDR] => 1 ) [2025-09-05 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-09-05 13:25:05' and `end` < '2025-09-05 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-09-05 16:25:20] Production.INFO: count ==5915 [2025-09-05 16:25:22] Production.ERROR: pbx CDR StartTime 2025-09-05 13:25:05 - End Time 2025-09-05 16:25:05 [2025-09-05 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15785994', 'tblTempUsageDetail_20' ) start [2025-09-05 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15785994', 'tblTempUsageDetail_20' ) end [2025-09-05 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15785994', 'tblTempVendorCDR_20' ) start [2025-09-05 16:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15785994', 'tblTempVendorCDR_20' ) end [2025-09-05 16:25:23] Production.INFO: ProcessCDR(1,15785994,1,1,2) [2025-09-05 16:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15785994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 16:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15785994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 16:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15785994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 16:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15785994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15785994', 'tblTempUsageDetail_20' ) start [2025-09-05 16:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15785994', 'tblTempUsageDetail_20' ) end [2025-09-05 16:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-05 16:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-05 16:25:36] Production.INFO: ==10147== Releasing lock... [2025-09-05 16:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 16:25:36] Production.INFO: 72.5 MB #Memory Used# [2025-09-05 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 14:25:05 [end_date_ymd] => 2025-09-05 17:25:05 [RateCDR] => 1 ) [2025-09-05 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-09-05 14:25:05' and `end` < '2025-09-05 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-09-05 17:25:19] Production.INFO: count ==6092 [2025-09-05 17:25:22] Production.ERROR: pbx CDR StartTime 2025-09-05 14:25:05 - End Time 2025-09-05 17:25:05 [2025-09-05 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15786241', 'tblTempUsageDetail_20' ) start [2025-09-05 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15786241', 'tblTempUsageDetail_20' ) end [2025-09-05 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15786241', 'tblTempVendorCDR_20' ) start [2025-09-05 17:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15786241', 'tblTempVendorCDR_20' ) end [2025-09-05 17:25:23] Production.INFO: ProcessCDR(1,15786241,1,1,2) [2025-09-05 17:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15786241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15786241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15786241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 17:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15786241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15786241', 'tblTempUsageDetail_20' ) start [2025-09-05 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15786241', 'tblTempUsageDetail_20' ) end [2025-09-05 17:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-05 17:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-05 17:25:34] Production.INFO: ==15249== Releasing lock... [2025-09-05 17:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 17:25:34] Production.INFO: 73.75 MB #Memory Used# [2025-09-05 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 15:25:06 [end_date_ymd] => 2025-09-05 18:25:06 [RateCDR] => 1 ) [2025-09-05 18:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-05 15:25:06' and `end` < '2025-09-05 18:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-05 18:25:19] Production.INFO: count ==5723 [2025-09-05 18:25:22] Production.ERROR: pbx CDR StartTime 2025-09-05 15:25:06 - End Time 2025-09-05 18:25:06 [2025-09-05 18:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15786488', 'tblTempUsageDetail_20' ) start [2025-09-05 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15786488', 'tblTempUsageDetail_20' ) end [2025-09-05 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15786488', 'tblTempVendorCDR_20' ) start [2025-09-05 18:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15786488', 'tblTempVendorCDR_20' ) end [2025-09-05 18:25:22] Production.INFO: ProcessCDR(1,15786488,1,1,2) [2025-09-05 18:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15786488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 18:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15786488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 18:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15786488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 18:26:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15786488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 18:26:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15786488', 'tblTempUsageDetail_20' ) start [2025-09-05 18:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15786488', 'tblTempUsageDetail_20' ) end [2025-09-05 18:26:25] Production.ERROR: pbx prc_insertCDR start [2025-09-05 18:26:27] Production.ERROR: pbx prc_insertCDR end [2025-09-05 18:26:30] Production.INFO: ==20521== Releasing lock... [2025-09-05 18:26:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 18:26:30] Production.INFO: 71 MB #Memory Used# [2025-09-05 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 16:25:05 [end_date_ymd] => 2025-09-05 19:25:05 [RateCDR] => 1 ) [2025-09-05 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-09-05 16:25:05' and `end` < '2025-09-05 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-09-05 19:25:18] Production.INFO: count ==4668 [2025-09-05 19:25:20] Production.ERROR: pbx CDR StartTime 2025-09-05 16:25:05 - End Time 2025-09-05 19:25:05 [2025-09-05 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15786732', 'tblTempUsageDetail_20' ) start [2025-09-05 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15786732', 'tblTempUsageDetail_20' ) end [2025-09-05 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15786732', 'tblTempVendorCDR_20' ) start [2025-09-05 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15786732', 'tblTempVendorCDR_20' ) end [2025-09-05 19:25:20] Production.INFO: ProcessCDR(1,15786732,1,1,2) [2025-09-05 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15786732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15786732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15786732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 19:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15786732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15786732', 'tblTempUsageDetail_20' ) start [2025-09-05 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15786732', 'tblTempUsageDetail_20' ) end [2025-09-05 19:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-05 19:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-05 19:25:30] Production.INFO: ==25725== Releasing lock... [2025-09-05 19:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 19:25:30] Production.INFO: 63 MB #Memory Used# [2025-09-05 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 17:25:06 [end_date_ymd] => 2025-09-05 20:25:06 [RateCDR] => 1 ) [2025-09-05 20: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-09-05 17:25:06' and `end` < '2025-09-05 20: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-09-05 20:25:18] Production.INFO: count ==3306 [2025-09-05 20:25:19] Production.ERROR: pbx CDR StartTime 2025-09-05 17:25:06 - End Time 2025-09-05 20:25:06 [2025-09-05 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15786979', 'tblTempUsageDetail_20' ) start [2025-09-05 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15786979', 'tblTempUsageDetail_20' ) end [2025-09-05 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15786979', 'tblTempVendorCDR_20' ) start [2025-09-05 20:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15786979', 'tblTempVendorCDR_20' ) end [2025-09-05 20:25:20] Production.INFO: ProcessCDR(1,15786979,1,1,2) [2025-09-05 20:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15786979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15786979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15786979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 20:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15786979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15786979', 'tblTempUsageDetail_20' ) start [2025-09-05 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15786979', 'tblTempUsageDetail_20' ) end [2025-09-05 20:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-05 20:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-05 20:25:29] Production.INFO: ==31280== Releasing lock... [2025-09-05 20:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 20:25:29] Production.INFO: 52.75 MB #Memory Used# [2025-09-05 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 18:25:05 [end_date_ymd] => 2025-09-05 21:25:05 [RateCDR] => 1 ) [2025-09-05 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-09-05 18:25:05' and `end` < '2025-09-05 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-09-05 21:25:18] Production.INFO: count ==2255 [2025-09-05 21:25:19] Production.ERROR: pbx CDR StartTime 2025-09-05 18:25:05 - End Time 2025-09-05 21:25:05 [2025-09-05 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15787226', 'tblTempUsageDetail_20' ) start [2025-09-05 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15787226', 'tblTempUsageDetail_20' ) end [2025-09-05 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15787226', 'tblTempVendorCDR_20' ) start [2025-09-05 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15787226', 'tblTempVendorCDR_20' ) end [2025-09-05 21:25:19] Production.INFO: ProcessCDR(1,15787226,1,1,2) [2025-09-05 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15787226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15787226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15787226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15787226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15787226', 'tblTempUsageDetail_20' ) start [2025-09-05 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15787226', 'tblTempUsageDetail_20' ) end [2025-09-05 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-05 21:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-05 21:25:28] Production.INFO: ==4182== Releasing lock... [2025-09-05 21:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 21:25:28] Production.INFO: 45 MB #Memory Used# [2025-09-05 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 19:25:05 [end_date_ymd] => 2025-09-05 22:25:05 [RateCDR] => 1 ) [2025-09-05 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-09-05 19:25:05' and `end` < '2025-09-05 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-09-05 22:25:17] Production.INFO: count ==1430 [2025-09-05 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-05 19:25:05 - End Time 2025-09-05 22:25:05 [2025-09-05 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15787473', 'tblTempUsageDetail_20' ) start [2025-09-05 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15787473', 'tblTempUsageDetail_20' ) end [2025-09-05 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15787473', 'tblTempVendorCDR_20' ) start [2025-09-05 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15787473', 'tblTempVendorCDR_20' ) end [2025-09-05 22:25:18] Production.INFO: ProcessCDR(1,15787473,1,1,2) [2025-09-05 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15787473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15787473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15787473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15787473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15787473', 'tblTempUsageDetail_20' ) start [2025-09-05 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15787473', 'tblTempUsageDetail_20' ) end [2025-09-05 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-05 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-05 22:25:26] Production.INFO: ==8718== Releasing lock... [2025-09-05 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 22:25:26] Production.INFO: 39 MB #Memory Used# [2025-09-05 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-05 20:25:05 [end_date_ymd] => 2025-09-05 23:25:05 [RateCDR] => 1 ) [2025-09-05 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-09-05 20:25:05' and `end` < '2025-09-05 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-09-05 23:25:18] Production.INFO: count ==1146 [2025-09-05 23:25:18] Production.ERROR: pbx CDR StartTime 2025-09-05 20:25:05 - End Time 2025-09-05 23:25:05 [2025-09-05 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-05 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15787720', 'tblTempUsageDetail_20' ) start [2025-09-05 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15787720', 'tblTempUsageDetail_20' ) end [2025-09-05 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15787720', 'tblTempVendorCDR_20' ) start [2025-09-05 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15787720', 'tblTempVendorCDR_20' ) end [2025-09-05 23:25:18] Production.INFO: ProcessCDR(1,15787720,1,1,2) [2025-09-05 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15787720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15787720,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-05 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15787720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15787720,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-05 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15787720', 'tblTempUsageDetail_20' ) start [2025-09-05 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15787720', 'tblTempUsageDetail_20' ) end [2025-09-05 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-05 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-05 23:25:26] Production.INFO: ==13124== Releasing lock... [2025-09-05 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-05 23:25:26] Production.INFO: 36.75 MB #Memory Used#