[2025-09-23 00:25:04] Production.INFO: next invoice date [2025-09-23 00:25:04] Production.INFO: 2025-10-23 [2025-09-23 00:25:04] Production.INFO: getdaysdiff [2025-09-23 00:25:04] Production.INFO: +30 [2025-09-23 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (226,11,1,30,30,'RMScheduler',2025-09-23 00:25:04,1,0,,,0) [2025-09-23 00:25:04] Production.INFO: next invoice date [2025-09-23 00:25:04] Production.INFO: 2025-10-23 [2025-09-23 00:25:04] Production.INFO: getdaysdiff [2025-09-23 00:25:04] Production.INFO: +30 [2025-09-23 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (226,13,2,30,30,'RMScheduler',2025-09-23 00:25:04,1,0,,,0) [2025-09-23 00:25:04] Production.INFO: next invoice date [2025-09-23 00:25:04] Production.INFO: 2025-10-23 [2025-09-23 00:25:04] Production.INFO: getdaysdiff [2025-09-23 00:25:04] Production.INFO: +30 [2025-09-23 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (252,16,1,30,30,'RMScheduler',2025-09-23 00:25:04,1,0,,,0) [2025-09-23 00:25:04] Production.INFO: next invoice date [2025-09-23 00:25:04] Production.INFO: 2025-10-23 [2025-09-23 00:25:04] Production.INFO: getdaysdiff [2025-09-23 00:25:04] Production.INFO: +30 [2025-09-23 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (252,13,2,30,30,'RMScheduler',2025-09-23 00:25:04,1,0,,,0) [2025-09-23 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 21:25:05 [end_date_ymd] => 2025-09-23 00:25:05 [RateCDR] => 1 ) [2025-09-23 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-22 21:25:05' and `end` < '2025-09-23 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-23 00:25:17] Production.INFO: count ==435 [2025-09-23 00:25:18] Production.ERROR: pbx CDR StartTime 2025-09-22 21:25:05 - End Time 2025-09-23 00:25:05 [2025-09-23 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15888733', 'tblTempUsageDetail_20' ) start [2025-09-23 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15888733', 'tblTempUsageDetail_20' ) end [2025-09-23 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15888733', 'tblTempVendorCDR_20' ) start [2025-09-23 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15888733', 'tblTempVendorCDR_20' ) end [2025-09-23 00:25:18] Production.INFO: ProcessCDR(1,15888733,1,1,2) [2025-09-23 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15888733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 00:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15888733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 00:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15888733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15888733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15888733', 'tblTempUsageDetail_20' ) start [2025-09-23 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15888733', 'tblTempUsageDetail_20' ) end [2025-09-23 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-23 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-23 00:25:28] Production.INFO: ==10528== Releasing lock... [2025-09-23 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 00:25:28] Production.INFO: 35.25 MB #Memory Used# [2025-09-23 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 22:25:05 [end_date_ymd] => 2025-09-23 01:25:05 [RateCDR] => 1 ) [2025-09-23 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-22 22:25:05' and `end` < '2025-09-23 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-23 01:25:17] Production.INFO: count ==408 [2025-09-23 01:25:17] Production.ERROR: pbx CDR StartTime 2025-09-22 22:25:05 - End Time 2025-09-23 01:25:05 [2025-09-23 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15888980', 'tblTempUsageDetail_20' ) start [2025-09-23 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15888980', 'tblTempUsageDetail_20' ) end [2025-09-23 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15888980', 'tblTempVendorCDR_20' ) start [2025-09-23 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15888980', 'tblTempVendorCDR_20' ) end [2025-09-23 01:25:17] Production.INFO: ProcessCDR(1,15888980,1,1,2) [2025-09-23 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15888980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15888980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15888980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15888980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15888980', 'tblTempUsageDetail_20' ) start [2025-09-23 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15888980', 'tblTempUsageDetail_20' ) end [2025-09-23 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-23 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-23 01:25:26] Production.INFO: ==14942== Releasing lock... [2025-09-23 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 01:25:26] Production.INFO: 31.5 MB #Memory Used# [2025-09-23 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-22 23:25:05 [end_date_ymd] => 2025-09-23 02:25:05 [RateCDR] => 1 ) [2025-09-23 02:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-22 23:25:05' and `end` < '2025-09-23 02:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-23 02:25:18] Production.INFO: count ==370 [2025-09-23 02:25:18] Production.ERROR: pbx CDR StartTime 2025-09-22 23:25:05 - End Time 2025-09-23 02:25:05 [2025-09-23 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15889227', 'tblTempUsageDetail_20' ) start [2025-09-23 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15889227', 'tblTempUsageDetail_20' ) end [2025-09-23 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15889227', 'tblTempVendorCDR_20' ) start [2025-09-23 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15889227', 'tblTempVendorCDR_20' ) end [2025-09-23 02:25:18] Production.INFO: ProcessCDR(1,15889227,1,1,2) [2025-09-23 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15889227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 02:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15889227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 02:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15889227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 02:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15889227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15889227', 'tblTempUsageDetail_20' ) start [2025-09-23 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15889227', 'tblTempUsageDetail_20' ) end [2025-09-23 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-23 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-23 02:25:26] Production.INFO: ==19276== Releasing lock... [2025-09-23 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 02:25:26] Production.INFO: 31 MB #Memory Used# [2025-09-23 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 00:25:05 [end_date_ymd] => 2025-09-23 03:25:05 [RateCDR] => 1 ) [2025-09-23 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-23 00:25:05' and `end` < '2025-09-23 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-23 03:25:17] Production.INFO: count ==249 [2025-09-23 03:25:17] Production.ERROR: pbx CDR StartTime 2025-09-23 00:25:05 - End Time 2025-09-23 03:25:05 [2025-09-23 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15889474', 'tblTempUsageDetail_20' ) start [2025-09-23 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15889474', 'tblTempUsageDetail_20' ) end [2025-09-23 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15889474', 'tblTempVendorCDR_20' ) start [2025-09-23 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15889474', 'tblTempVendorCDR_20' ) end [2025-09-23 03:25:17] Production.INFO: ProcessCDR(1,15889474,1,1,2) [2025-09-23 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15889474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15889474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15889474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15889474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15889474', 'tblTempUsageDetail_20' ) start [2025-09-23 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15889474', 'tblTempUsageDetail_20' ) end [2025-09-23 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-23 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-23 03:25:24] Production.INFO: ==23527== Releasing lock... [2025-09-23 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 03:25:24] Production.INFO: 30.25 MB #Memory Used# [2025-09-23 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 01:25:05 [end_date_ymd] => 2025-09-23 04:25:05 [RateCDR] => 1 ) [2025-09-23 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-23 01:25:05' and `end` < '2025-09-23 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-23 04:25:17] Production.INFO: count ==160 [2025-09-23 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-23 01:25:05 - End Time 2025-09-23 04:25:05 [2025-09-23 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15889722', 'tblTempUsageDetail_20' ) start [2025-09-23 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15889722', 'tblTempUsageDetail_20' ) end [2025-09-23 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15889722', 'tblTempVendorCDR_20' ) start [2025-09-23 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15889722', 'tblTempVendorCDR_20' ) end [2025-09-23 04:25:17] Production.INFO: ProcessCDR(1,15889722,1,1,2) [2025-09-23 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15889722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15889722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15889722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15889722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15889722', 'tblTempUsageDetail_20' ) start [2025-09-23 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15889722', 'tblTempUsageDetail_20' ) end [2025-09-23 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-23 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-23 04:25:25] Production.INFO: ==28212== Releasing lock... [2025-09-23 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 04:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-09-23 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 02:25:05 [end_date_ymd] => 2025-09-23 05:25:05 [RateCDR] => 1 ) [2025-09-23 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-23 02:25:05' and `end` < '2025-09-23 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-23 05:25:17] Production.INFO: count ==125 [2025-09-23 05:25:17] Production.ERROR: pbx CDR StartTime 2025-09-23 02:25:05 - End Time 2025-09-23 05:25:05 [2025-09-23 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15889970', 'tblTempUsageDetail_20' ) start [2025-09-23 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15889970', 'tblTempUsageDetail_20' ) end [2025-09-23 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15889970', 'tblTempVendorCDR_20' ) start [2025-09-23 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15889970', 'tblTempVendorCDR_20' ) end [2025-09-23 05:25:17] Production.INFO: ProcessCDR(1,15889970,1,1,2) [2025-09-23 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15889970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 05:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15889970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 05:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15889970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15889970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15889970', 'tblTempUsageDetail_20' ) start [2025-09-23 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15889970', 'tblTempUsageDetail_20' ) end [2025-09-23 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-23 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-23 05:25:25] Production.INFO: ==446== Releasing lock... [2025-09-23 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 05:25:25] Production.INFO: 29.25 MB #Memory Used# [2025-09-23 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 03:25:05 [end_date_ymd] => 2025-09-23 06:25:05 [RateCDR] => 1 ) [2025-09-23 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-23 03:25:05' and `end` < '2025-09-23 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-23 06:25:17] Production.INFO: count ==105 [2025-09-23 06:25:17] Production.ERROR: pbx CDR StartTime 2025-09-23 03:25:05 - End Time 2025-09-23 06:25:05 [2025-09-23 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15890217', 'tblTempUsageDetail_20' ) start [2025-09-23 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15890217', 'tblTempUsageDetail_20' ) end [2025-09-23 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15890217', 'tblTempVendorCDR_20' ) start [2025-09-23 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15890217', 'tblTempVendorCDR_20' ) end [2025-09-23 06:25:17] Production.INFO: ProcessCDR(1,15890217,1,1,2) [2025-09-23 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15890217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15890217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15890217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15890217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15890217', 'tblTempUsageDetail_20' ) start [2025-09-23 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15890217', 'tblTempUsageDetail_20' ) end [2025-09-23 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-23 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-23 06:25:25] Production.INFO: ==4787== Releasing lock... [2025-09-23 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 06:25:25] Production.INFO: 28.75 MB #Memory Used# [2025-09-23 07:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 04:25:04 [end_date_ymd] => 2025-09-23 07:25:04 [RateCDR] => 1 ) [2025-09-23 07: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-09-23 04:25:04' and `end` < '2025-09-23 07: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-09-23 07:25:16] Production.INFO: count ==121 [2025-09-23 07:25:16] Production.ERROR: pbx CDR StartTime 2025-09-23 04:25:04 - End Time 2025-09-23 07:25:04 [2025-09-23 07:25:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15890461', 'tblTempUsageDetail_20' ) start [2025-09-23 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15890461', 'tblTempUsageDetail_20' ) end [2025-09-23 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15890461', 'tblTempVendorCDR_20' ) start [2025-09-23 07:25:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15890461', 'tblTempVendorCDR_20' ) end [2025-09-23 07:25:16] Production.INFO: ProcessCDR(1,15890461,1,1,2) [2025-09-23 07:25:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15890461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15890461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15890461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15890461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15890461', 'tblTempUsageDetail_20' ) start [2025-09-23 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15890461', 'tblTempUsageDetail_20' ) end [2025-09-23 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-23 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-23 07:25:24] Production.INFO: ==9433== Releasing lock... [2025-09-23 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 07:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-09-23 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 05:25:06 [end_date_ymd] => 2025-09-23 08:25:06 [RateCDR] => 1 ) [2025-09-23 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-23 05:25:06' and `end` < '2025-09-23 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-23 08:25:18] Production.INFO: count ==383 [2025-09-23 08:25:18] Production.ERROR: pbx CDR StartTime 2025-09-23 05:25:06 - End Time 2025-09-23 08:25:06 [2025-09-23 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15890711', 'tblTempUsageDetail_20' ) start [2025-09-23 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15890711', 'tblTempUsageDetail_20' ) end [2025-09-23 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15890711', 'tblTempVendorCDR_20' ) start [2025-09-23 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15890711', 'tblTempVendorCDR_20' ) end [2025-09-23 08:25:18] Production.INFO: ProcessCDR(1,15890711,1,1,2) [2025-09-23 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15890711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15890711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15890711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15890711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15890711', 'tblTempUsageDetail_20' ) start [2025-09-23 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15890711', 'tblTempUsageDetail_20' ) end [2025-09-23 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-23 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-23 08:25:26] Production.INFO: ==14301== Releasing lock... [2025-09-23 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 08:25:26] Production.INFO: 32 MB #Memory Used# [2025-09-23 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 06:25:05 [end_date_ymd] => 2025-09-23 09:25:05 [RateCDR] => 1 ) [2025-09-23 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-23 06:25:05' and `end` < '2025-09-23 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-23 09:25:17] Production.INFO: count ==1489 [2025-09-23 09:25:18] Production.ERROR: pbx CDR StartTime 2025-09-23 06:25:05 - End Time 2025-09-23 09:25:05 [2025-09-23 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15890958', 'tblTempUsageDetail_20' ) start [2025-09-23 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15890958', 'tblTempUsageDetail_20' ) end [2025-09-23 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15890958', 'tblTempVendorCDR_20' ) start [2025-09-23 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15890958', 'tblTempVendorCDR_20' ) end [2025-09-23 09:25:18] Production.INFO: ProcessCDR(1,15890958,1,1,2) [2025-09-23 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15890958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15890958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15890958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15890958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15890958', 'tblTempUsageDetail_20' ) start [2025-09-23 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15890958', 'tblTempUsageDetail_20' ) end [2025-09-23 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-23 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-23 09:25:28] Production.INFO: ==18796== Releasing lock... [2025-09-23 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 09:25:28] Production.INFO: 39.25 MB #Memory Used# [2025-09-23 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 07:25:05 [end_date_ymd] => 2025-09-23 10:25:05 [RateCDR] => 1 ) [2025-09-23 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-23 07:25:05' and `end` < '2025-09-23 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-23 10:25:18] Production.INFO: count ==2947 [2025-09-23 10:25:19] Production.ERROR: pbx CDR StartTime 2025-09-23 07:25:05 - End Time 2025-09-23 10:25:05 [2025-09-23 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15891205', 'tblTempUsageDetail_20' ) start [2025-09-23 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15891205', 'tblTempUsageDetail_20' ) end [2025-09-23 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15891205', 'tblTempVendorCDR_20' ) start [2025-09-23 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15891205', 'tblTempVendorCDR_20' ) end [2025-09-23 10:25:19] Production.INFO: ProcessCDR(1,15891205,1,1,2) [2025-09-23 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15891205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15891205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15891205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 10:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15891205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 10:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15891205', 'tblTempUsageDetail_20' ) start [2025-09-23 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15891205', 'tblTempUsageDetail_20' ) end [2025-09-23 10:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-23 10:25:31] Production.ERROR: pbx prc_insertCDR end [2025-09-23 10:25:31] Production.INFO: ==24023== Releasing lock... [2025-09-23 10:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 10:25:31] Production.INFO: 49.75 MB #Memory Used# [2025-09-23 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 08:25:06 [end_date_ymd] => 2025-09-23 11:25:06 [RateCDR] => 1 ) [2025-09-23 11:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-23 08:25:06' and `end` < '2025-09-23 11:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-23 11:25:23] Production.INFO: count ==4881 [2025-09-23 11:25:26] Production.ERROR: pbx CDR StartTime 2025-09-23 08:25:06 - End Time 2025-09-23 11:25:06 [2025-09-23 11:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15891452', 'tblTempUsageDetail_20' ) start [2025-09-23 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15891452', 'tblTempUsageDetail_20' ) end [2025-09-23 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15891452', 'tblTempVendorCDR_20' ) start [2025-09-23 11:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15891452', 'tblTempVendorCDR_20' ) end [2025-09-23 11:25:26] Production.INFO: ProcessCDR(1,15891452,1,1,2) [2025-09-23 11:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15891452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 11:25:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15891452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 11:25:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15891452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 11:25:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15891452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 11:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15891452', 'tblTempUsageDetail_20' ) start [2025-09-23 11:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15891452', 'tblTempUsageDetail_20' ) end [2025-09-23 11:25:37] Production.ERROR: pbx prc_insertCDR start [2025-09-23 11:25:39] Production.ERROR: pbx prc_insertCDR end [2025-09-23 11:25:39] Production.INFO: ==28398== Releasing lock... [2025-09-23 11:25:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 11:25:39] Production.INFO: 64.75 MB #Memory Used# [2025-09-23 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 09:25:05 [end_date_ymd] => 2025-09-23 12:25:05 [RateCDR] => 1 ) [2025-09-23 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-23 09:25:05' and `end` < '2025-09-23 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-23 12:25:18] Production.INFO: count ==5608 [2025-09-23 12:25:21] Production.ERROR: pbx CDR StartTime 2025-09-23 09:25:05 - End Time 2025-09-23 12:25:05 [2025-09-23 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15891699', 'tblTempUsageDetail_20' ) start [2025-09-23 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15891699', 'tblTempUsageDetail_20' ) end [2025-09-23 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15891699', 'tblTempVendorCDR_20' ) start [2025-09-23 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15891699', 'tblTempVendorCDR_20' ) end [2025-09-23 12:25:22] Production.INFO: ProcessCDR(1,15891699,1,1,2) [2025-09-23 12:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15891699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15891699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15891699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 12:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15891699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15891699', 'tblTempUsageDetail_20' ) start [2025-09-23 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15891699', 'tblTempUsageDetail_20' ) end [2025-09-23 12:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-23 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-23 12:25:34] Production.INFO: ==607== Releasing lock... [2025-09-23 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 12:25:34] Production.INFO: 70.25 MB #Memory Used# [2025-09-23 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 10:25:05 [end_date_ymd] => 2025-09-23 13:25:05 [RateCDR] => 1 ) [2025-09-23 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-23 10:25:05' and `end` < '2025-09-23 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-23 13:25:21] Production.INFO: count ==5686 [2025-09-23 13:25:24] Production.ERROR: pbx CDR StartTime 2025-09-23 10:25:05 - End Time 2025-09-23 13:25:05 [2025-09-23 13:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15891946', 'tblTempUsageDetail_20' ) start [2025-09-23 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15891946', 'tblTempUsageDetail_20' ) end [2025-09-23 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15891946', 'tblTempVendorCDR_20' ) start [2025-09-23 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15891946', 'tblTempVendorCDR_20' ) end [2025-09-23 13:25:24] Production.INFO: ProcessCDR(1,15891946,1,1,2) [2025-09-23 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15891946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 13:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15891946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 13:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15891946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 13:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15891946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 13:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15891946', 'tblTempUsageDetail_20' ) start [2025-09-23 13:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15891946', 'tblTempUsageDetail_20' ) end [2025-09-23 13:25:34] Production.ERROR: pbx prc_insertCDR start [2025-09-23 13:25:36] Production.ERROR: pbx prc_insertCDR end [2025-09-23 13:25:36] Production.INFO: ==6548== Releasing lock... [2025-09-23 13:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 13:25:36] Production.INFO: 70.75 MB #Memory Used# [2025-09-23 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 11:25:05 [end_date_ymd] => 2025-09-23 14:25:05 [RateCDR] => 1 ) [2025-09-23 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-23 11:25:05' and `end` < '2025-09-23 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-23 14:25:19] Production.INFO: count ==5267 [2025-09-23 14:25:22] Production.ERROR: pbx CDR StartTime 2025-09-23 11:25:05 - End Time 2025-09-23 14:25:05 [2025-09-23 14:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15892193', 'tblTempUsageDetail_20' ) start [2025-09-23 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15892193', 'tblTempUsageDetail_20' ) end [2025-09-23 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15892193', 'tblTempVendorCDR_20' ) start [2025-09-23 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15892193', 'tblTempVendorCDR_20' ) end [2025-09-23 14:25:22] Production.INFO: ProcessCDR(1,15892193,1,1,2) [2025-09-23 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15892193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 14:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15892193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 14:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15892193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 14:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15892193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15892193', 'tblTempUsageDetail_20' ) start [2025-09-23 14:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15892193', 'tblTempUsageDetail_20' ) end [2025-09-23 14:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-23 14:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-23 14:25:35] Production.INFO: ==11292== Releasing lock... [2025-09-23 14:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 14:25:35] Production.INFO: 67.75 MB #Memory Used# [2025-09-23 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 12:25:05 [end_date_ymd] => 2025-09-23 15:25:05 [RateCDR] => 1 ) [2025-09-23 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-23 12:25:05' and `end` < '2025-09-23 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-23 15:25:22] Production.INFO: count ==5493 [2025-09-23 15:25:25] Production.ERROR: pbx CDR StartTime 2025-09-23 12:25:05 - End Time 2025-09-23 15:25:05 [2025-09-23 15:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15892440', 'tblTempUsageDetail_20' ) start [2025-09-23 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15892440', 'tblTempUsageDetail_20' ) end [2025-09-23 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15892440', 'tblTempVendorCDR_20' ) start [2025-09-23 15:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15892440', 'tblTempVendorCDR_20' ) end [2025-09-23 15:25:25] Production.INFO: ProcessCDR(1,15892440,1,1,2) [2025-09-23 15:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15892440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 15:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15892440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 15:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15892440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 15:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15892440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 15:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15892440', 'tblTempUsageDetail_20' ) start [2025-09-23 15:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15892440', 'tblTempUsageDetail_20' ) end [2025-09-23 15:25:35] Production.ERROR: pbx prc_insertCDR start [2025-09-23 15:25:38] Production.ERROR: pbx prc_insertCDR end [2025-09-23 15:25:38] Production.INFO: ==16149== Releasing lock... [2025-09-23 15:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 15:25:38] Production.INFO: 69.5 MB #Memory Used# [2025-09-23 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 13:25:05 [end_date_ymd] => 2025-09-23 16:25:05 [RateCDR] => 1 ) [2025-09-23 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-23 13:25:05' and `end` < '2025-09-23 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-23 16:25:19] Production.INFO: count ==5653 [2025-09-23 16:25:21] Production.ERROR: pbx CDR StartTime 2025-09-23 13:25:05 - End Time 2025-09-23 16:25:05 [2025-09-23 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15892687', 'tblTempUsageDetail_20' ) start [2025-09-23 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15892687', 'tblTempUsageDetail_20' ) end [2025-09-23 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15892687', 'tblTempVendorCDR_20' ) start [2025-09-23 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15892687', 'tblTempVendorCDR_20' ) end [2025-09-23 16:25:22] Production.INFO: ProcessCDR(1,15892687,1,1,2) [2025-09-23 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15892687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15892687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15892687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15892687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15892687', 'tblTempUsageDetail_20' ) start [2025-09-23 16:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15892687', 'tblTempUsageDetail_20' ) end [2025-09-23 16:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-23 16:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-23 16:25:34] Production.INFO: ==20975== Releasing lock... [2025-09-23 16:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 16:25:34] Production.INFO: 70.5 MB #Memory Used# [2025-09-23 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 14:25:05 [end_date_ymd] => 2025-09-23 17:25:05 [RateCDR] => 1 ) [2025-09-23 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-23 14:25:05' and `end` < '2025-09-23 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-23 17:25:19] Production.INFO: count ==5364 [2025-09-23 17:25:21] Production.ERROR: pbx CDR StartTime 2025-09-23 14:25:05 - End Time 2025-09-23 17:25:05 [2025-09-23 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15892934', 'tblTempUsageDetail_20' ) start [2025-09-23 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15892934', 'tblTempUsageDetail_20' ) end [2025-09-23 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15892934', 'tblTempVendorCDR_20' ) start [2025-09-23 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15892934', 'tblTempVendorCDR_20' ) end [2025-09-23 17:25:22] Production.INFO: ProcessCDR(1,15892934,1,1,2) [2025-09-23 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15892934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15892934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15892934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15892934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15892934', 'tblTempUsageDetail_20' ) start [2025-09-23 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15892934', 'tblTempUsageDetail_20' ) end [2025-09-23 17:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-23 17:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-23 17:25:34] Production.INFO: ==25984== Releasing lock... [2025-09-23 17:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 17:25:34] Production.INFO: 68.5 MB #Memory Used# [2025-09-23 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 15:25:05 [end_date_ymd] => 2025-09-23 18:25:05 [RateCDR] => 1 ) [2025-09-23 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-09-23 15:25:05' and `end` < '2025-09-23 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-09-23 18:25:18] Production.INFO: count ==4354 [2025-09-23 18:25:20] Production.ERROR: pbx CDR StartTime 2025-09-23 15:25:05 - End Time 2025-09-23 18:25:05 [2025-09-23 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15893181', 'tblTempUsageDetail_20' ) start [2025-09-23 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15893181', 'tblTempUsageDetail_20' ) end [2025-09-23 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15893181', 'tblTempVendorCDR_20' ) start [2025-09-23 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15893181', 'tblTempVendorCDR_20' ) end [2025-09-23 18:25:20] Production.INFO: ProcessCDR(1,15893181,1,1,2) [2025-09-23 18:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15893181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15893181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15893181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15893181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15893181', 'tblTempUsageDetail_20' ) start [2025-09-23 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15893181', 'tblTempUsageDetail_20' ) end [2025-09-23 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-23 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-23 18:25:30] Production.INFO: ==30572== Releasing lock... [2025-09-23 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 18:25:30] Production.INFO: 60.75 MB #Memory Used# [2025-09-23 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 16:25:05 [end_date_ymd] => 2025-09-23 19:25:05 [RateCDR] => 1 ) [2025-09-23 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-23 16:25:05' and `end` < '2025-09-23 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-23 19:25:18] Production.INFO: count ==3256 [2025-09-23 19:25:19] Production.ERROR: pbx CDR StartTime 2025-09-23 16:25:05 - End Time 2025-09-23 19:25:05 [2025-09-23 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15893425', 'tblTempUsageDetail_20' ) start [2025-09-23 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15893425', 'tblTempUsageDetail_20' ) end [2025-09-23 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15893425', 'tblTempVendorCDR_20' ) start [2025-09-23 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15893425', 'tblTempVendorCDR_20' ) end [2025-09-23 19:25:19] Production.INFO: ProcessCDR(1,15893425,1,1,2) [2025-09-23 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15893425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15893425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15893425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15893425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15893425', 'tblTempUsageDetail_20' ) start [2025-09-23 19:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15893425', 'tblTempUsageDetail_20' ) end [2025-09-23 19:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-23 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-23 19:25:29] Production.INFO: ==2951== Releasing lock... [2025-09-23 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 19:25:29] Production.INFO: 52.75 MB #Memory Used# [2025-09-23 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 17:25:05 [end_date_ymd] => 2025-09-23 20:25:05 [RateCDR] => 1 ) [2025-09-23 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-09-23 17:25:05' and `end` < '2025-09-23 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-09-23 20:25:18] Production.INFO: count ==2193 [2025-09-23 20:25:19] Production.ERROR: pbx CDR StartTime 2025-09-23 17:25:05 - End Time 2025-09-23 20:25:05 [2025-09-23 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15893672', 'tblTempUsageDetail_20' ) start [2025-09-23 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15893672', 'tblTempUsageDetail_20' ) end [2025-09-23 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15893672', 'tblTempVendorCDR_20' ) start [2025-09-23 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15893672', 'tblTempVendorCDR_20' ) end [2025-09-23 20:25:19] Production.INFO: ProcessCDR(1,15893672,1,1,2) [2025-09-23 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15893672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15893672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15893672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15893672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15893672', 'tblTempUsageDetail_20' ) start [2025-09-23 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15893672', 'tblTempUsageDetail_20' ) end [2025-09-23 20:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-23 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-23 20:25:28] Production.INFO: ==7784== Releasing lock... [2025-09-23 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 20:25:28] Production.INFO: 45 MB #Memory Used# [2025-09-23 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 18:25:06 [end_date_ymd] => 2025-09-23 21:25:06 [RateCDR] => 1 ) [2025-09-23 21: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-23 18:25:06' and `end` < '2025-09-23 21: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-23 21:25:18] Production.INFO: count ==1521 [2025-09-23 21:25:19] Production.ERROR: pbx CDR StartTime 2025-09-23 18:25:06 - End Time 2025-09-23 21:25:06 [2025-09-23 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15893919', 'tblTempUsageDetail_20' ) start [2025-09-23 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15893919', 'tblTempUsageDetail_20' ) end [2025-09-23 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15893919', 'tblTempVendorCDR_20' ) start [2025-09-23 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15893919', 'tblTempVendorCDR_20' ) end [2025-09-23 21:25:19] Production.INFO: ProcessCDR(1,15893919,1,1,2) [2025-09-23 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15893919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 21:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15893919,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 21:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15893919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 21:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15893919,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15893919', 'tblTempUsageDetail_20' ) start [2025-09-23 21:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15893919', 'tblTempUsageDetail_20' ) end [2025-09-23 21:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-23 21:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-23 21:25:28] Production.INFO: ==12191== Releasing lock... [2025-09-23 21:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 21:25:28] Production.INFO: 39.75 MB #Memory Used# [2025-09-23 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 19:25:05 [end_date_ymd] => 2025-09-23 22:25:05 [RateCDR] => 1 ) [2025-09-23 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-23 19:25:05' and `end` < '2025-09-23 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-23 22:25:17] Production.INFO: count ==1062 [2025-09-23 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-23 19:25:05 - End Time 2025-09-23 22:25:05 [2025-09-23 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15894166', 'tblTempUsageDetail_20' ) start [2025-09-23 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15894166', 'tblTempUsageDetail_20' ) end [2025-09-23 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15894166', 'tblTempVendorCDR_20' ) start [2025-09-23 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15894166', 'tblTempVendorCDR_20' ) end [2025-09-23 22:25:18] Production.INFO: ProcessCDR(1,15894166,1,1,2) [2025-09-23 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15894166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15894166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15894166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15894166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15894166', 'tblTempUsageDetail_20' ) start [2025-09-23 22:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15894166', 'tblTempUsageDetail_20' ) end [2025-09-23 22:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-23 22:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-23 22:25:27] Production.INFO: ==16638== Releasing lock... [2025-09-23 22:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 22:25:27] Production.INFO: 36.25 MB #Memory Used# [2025-09-23 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-23 20:25:06 [end_date_ymd] => 2025-09-23 23:25:06 [RateCDR] => 1 ) [2025-09-23 23: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-23 20:25:06' and `end` < '2025-09-23 23: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-23 23:25:18] Production.INFO: count ==935 [2025-09-23 23:25:18] Production.ERROR: pbx CDR StartTime 2025-09-23 20:25:06 - End Time 2025-09-23 23:25:06 [2025-09-23 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-23 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15894413', 'tblTempUsageDetail_20' ) start [2025-09-23 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15894413', 'tblTempUsageDetail_20' ) end [2025-09-23 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15894413', 'tblTempVendorCDR_20' ) start [2025-09-23 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15894413', 'tblTempVendorCDR_20' ) end [2025-09-23 23:25:18] Production.INFO: ProcessCDR(1,15894413,1,1,2) [2025-09-23 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15894413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15894413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-23 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15894413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15894413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-23 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15894413', 'tblTempUsageDetail_20' ) start [2025-09-23 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15894413', 'tblTempUsageDetail_20' ) end [2025-09-23 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-23 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-23 23:25:27] Production.INFO: ==21460== Releasing lock... [2025-09-23 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-23 23:25:27] Production.INFO: 35.5 MB #Memory Used#