[2025-09-01 00:25:04] Production.INFO: next invoice date [2025-09-01 00:25:04] Production.INFO: 2025-10-01 [2025-09-01 00:25:04] Production.INFO: getdaysdiff [2025-09-01 00:25:04] Production.INFO: +30 [2025-09-01 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (105,11,1,30,30,'RMScheduler',2025-09-01 00:25:04,1,0,,,0) [2025-09-01 00:25:04] Production.INFO: next invoice date [2025-09-01 00:25:04] Production.INFO: 2025-10-01 [2025-09-01 00:25:04] Production.INFO: getdaysdiff [2025-09-01 00:25:04] Production.INFO: +30 [2025-09-01 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (3,9,2,30,30,'RMScheduler',2025-09-01 00:25:04,1,0,,,0) [2025-09-01 00:25:04] Production.INFO: next invoice date [2025-09-01 00:25:04] Production.INFO: 2025-10-01 [2025-09-01 00:25:04] Production.INFO: getdaysdiff [2025-09-01 00:25:04] Production.INFO: +30 [2025-09-01 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (113,11,1,30,30,'RMScheduler',2025-09-01 00:25:04,1,0,,,0) [2025-09-01 00:25:04] Production.INFO: next invoice date [2025-09-01 00:25:04] Production.INFO: 2025-10-01 [2025-09-01 00:25:04] Production.INFO: getdaysdiff [2025-09-01 00:25:04] Production.INFO: +30 [2025-09-01 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (114,11,1,30,30,'RMScheduler',2025-09-01 00:25:04,1,0,,,0) [2025-09-01 00:25:04] Production.INFO: next invoice date [2025-09-01 00:25:04] Production.INFO: 2025-10-01 [2025-09-01 00:25:04] Production.INFO: getdaysdiff [2025-09-01 00:25:04] Production.INFO: +30 [2025-09-01 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (3,16,1,30,30,'RMScheduler',2025-09-01 00:25:04,1,0,,,0) [2025-09-01 00:25:05] Production.INFO: next invoice date [2025-09-01 00:25:05] Production.INFO: 2025-10-01 [2025-09-01 00:25:05] Production.INFO: getdaysdiff [2025-09-01 00:25:05] Production.INFO: +30 [2025-09-01 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (66,11,1,30,30,'RMScheduler',2025-09-01 00:25:04,1,0,,,0) [2025-09-01 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-31 21:25:06 [end_date_ymd] => 2025-09-01 00:25:06 [RateCDR] => 1 ) [2025-09-01 00:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-31 21:25:06' and `end` < '2025-09-01 00: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-01 00:25:18] Production.INFO: count ==729 [2025-09-01 00:25:18] Production.ERROR: pbx CDR StartTime 2025-08-31 21:25:06 - End Time 2025-09-01 00:25:06 [2025-09-01 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15758330', 'tblTempUsageDetail_20' ) start [2025-09-01 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15758330', 'tblTempUsageDetail_20' ) end [2025-09-01 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15758330', 'tblTempVendorCDR_20' ) start [2025-09-01 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15758330', 'tblTempVendorCDR_20' ) end [2025-09-01 00:25:18] Production.INFO: ProcessCDR(1,15758330,1,1,2) [2025-09-01 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15758330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15758330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15758330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15758330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15758330', 'tblTempUsageDetail_20' ) start [2025-09-01 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15758330', 'tblTempUsageDetail_20' ) end [2025-09-01 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-01 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-01 00:25:27] Production.INFO: ==16808== Releasing lock... [2025-09-01 00:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 00:25:27] Production.INFO: 37.25 MB #Memory Used# [2025-09-01 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-31 22:25:05 [end_date_ymd] => 2025-09-01 01:25:05 [RateCDR] => 1 ) [2025-09-01 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-31 22:25:05' and `end` < '2025-09-01 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-01 01:25:18] Production.INFO: count ==739 [2025-09-01 01:25:18] Production.ERROR: pbx CDR StartTime 2025-08-31 22:25:05 - End Time 2025-09-01 01:25:05 [2025-09-01 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15758577', 'tblTempUsageDetail_20' ) start [2025-09-01 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15758577', 'tblTempUsageDetail_20' ) end [2025-09-01 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15758577', 'tblTempVendorCDR_20' ) start [2025-09-01 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15758577', 'tblTempVendorCDR_20' ) end [2025-09-01 01:25:18] Production.INFO: ProcessCDR(1,15758577,1,1,2) [2025-09-01 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15758577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15758577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15758577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15758577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15758577', 'tblTempUsageDetail_20' ) start [2025-09-01 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15758577', 'tblTempUsageDetail_20' ) end [2025-09-01 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-01 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-01 01:25:26] Production.INFO: ==21098== Releasing lock... [2025-09-01 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 01:25:26] Production.INFO: 33.75 MB #Memory Used# [2025-09-01 02:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-31 23:25:05 [end_date_ymd] => 2025-09-01 02:25:05 [RateCDR] => 1 ) [2025-09-01 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-08-31 23:25:05' and `end` < '2025-09-01 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-01 02:25:21] Production.INFO: count ==666 [2025-09-01 02:25:21] Production.ERROR: pbx CDR StartTime 2025-08-31 23:25:05 - End Time 2025-09-01 02:25:05 [2025-09-01 02:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 02:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15758824', 'tblTempUsageDetail_20' ) start [2025-09-01 02:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15758824', 'tblTempUsageDetail_20' ) end [2025-09-01 02:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15758824', 'tblTempVendorCDR_20' ) start [2025-09-01 02:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15758824', 'tblTempVendorCDR_20' ) end [2025-09-01 02:25:21] Production.INFO: ProcessCDR(1,15758824,1,1,2) [2025-09-01 02:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15758824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 02:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15758824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 02:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15758824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 02:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15758824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 02:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15758824', 'tblTempUsageDetail_20' ) start [2025-09-01 02:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15758824', 'tblTempUsageDetail_20' ) end [2025-09-01 02:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-01 02:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-01 02:25:29] Production.INFO: ==25486== Releasing lock... [2025-09-01 02:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 02:25:29] Production.INFO: 33.25 MB #Memory Used# [2025-09-01 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 00:25:05 [end_date_ymd] => 2025-09-01 03:25:05 [RateCDR] => 1 ) [2025-09-01 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-01 00:25:05' and `end` < '2025-09-01 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-01 03:25:17] Production.INFO: count ==531 [2025-09-01 03:25:17] Production.ERROR: pbx CDR StartTime 2025-09-01 00:25:05 - End Time 2025-09-01 03:25:05 [2025-09-01 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15759071', 'tblTempUsageDetail_20' ) start [2025-09-01 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15759071', 'tblTempUsageDetail_20' ) end [2025-09-01 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15759071', 'tblTempVendorCDR_20' ) start [2025-09-01 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15759071', 'tblTempVendorCDR_20' ) end [2025-09-01 03:25:17] Production.INFO: ProcessCDR(1,15759071,1,1,2) [2025-09-01 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15759071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15759071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15759071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15759071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15759071', 'tblTempUsageDetail_20' ) start [2025-09-01 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15759071', 'tblTempUsageDetail_20' ) end [2025-09-01 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-01 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-01 03:25:25] Production.INFO: ==29765== Releasing lock... [2025-09-01 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 03:25:25] Production.INFO: 32.5 MB #Memory Used# [2025-09-01 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 01:25:05 [end_date_ymd] => 2025-09-01 04:25:05 [RateCDR] => 1 ) [2025-09-01 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-01 01:25:05' and `end` < '2025-09-01 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-01 04:25:17] Production.INFO: count ==318 [2025-09-01 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-01 01:25:05 - End Time 2025-09-01 04:25:05 [2025-09-01 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15759319', 'tblTempUsageDetail_20' ) start [2025-09-01 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15759319', 'tblTempUsageDetail_20' ) end [2025-09-01 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15759319', 'tblTempVendorCDR_20' ) start [2025-09-01 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15759319', 'tblTempVendorCDR_20' ) end [2025-09-01 04:25:17] Production.INFO: ProcessCDR(1,15759319,1,1,2) [2025-09-01 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15759319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15759319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15759319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15759319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15759319', 'tblTempUsageDetail_20' ) start [2025-09-01 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15759319', 'tblTempUsageDetail_20' ) end [2025-09-01 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-01 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-01 04:25:25] Production.INFO: ==2208== Releasing lock... [2025-09-01 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 04:25:25] Production.INFO: 31.25 MB #Memory Used# [2025-09-01 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 02:25:05 [end_date_ymd] => 2025-09-01 05:25:05 [RateCDR] => 1 ) [2025-09-01 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-01 02:25:05' and `end` < '2025-09-01 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-01 05:25:17] Production.INFO: count ==178 [2025-09-01 05:25:17] Production.ERROR: pbx CDR StartTime 2025-09-01 02:25:05 - End Time 2025-09-01 05:25:05 [2025-09-01 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15759567', 'tblTempUsageDetail_20' ) start [2025-09-01 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15759567', 'tblTempUsageDetail_20' ) end [2025-09-01 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15759567', 'tblTempVendorCDR_20' ) start [2025-09-01 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15759567', 'tblTempVendorCDR_20' ) end [2025-09-01 05:25:17] Production.INFO: ProcessCDR(1,15759567,1,1,2) [2025-09-01 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15759567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15759567,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15759567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15759567,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15759567', 'tblTempUsageDetail_20' ) start [2025-09-01 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15759567', 'tblTempUsageDetail_20' ) end [2025-09-01 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-09-01 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-09-01 05:25:22] Production.INFO: ==6768== Releasing lock... [2025-09-01 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 05:25:22] Production.INFO: 29.5 MB #Memory Used# [2025-09-01 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 03:25:05 [end_date_ymd] => 2025-09-01 06:25:05 [RateCDR] => 1 ) [2025-09-01 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-01 03:25:05' and `end` < '2025-09-01 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-01 06:25:17] Production.INFO: count ==105 [2025-09-01 06:25:17] Production.ERROR: pbx CDR StartTime 2025-09-01 03:25:05 - End Time 2025-09-01 06:25:05 [2025-09-01 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15759814', 'tblTempUsageDetail_20' ) start [2025-09-01 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15759814', 'tblTempUsageDetail_20' ) end [2025-09-01 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15759814', 'tblTempVendorCDR_20' ) start [2025-09-01 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15759814', 'tblTempVendorCDR_20' ) end [2025-09-01 06:25:17] Production.INFO: ProcessCDR(1,15759814,1,1,2) [2025-09-01 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15759814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15759814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15759814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 06:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15759814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15759814', 'tblTempUsageDetail_20' ) start [2025-09-01 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15759814', 'tblTempUsageDetail_20' ) end [2025-09-01 06:25:22] Production.ERROR: pbx prc_insertCDR start [2025-09-01 06:25:22] Production.ERROR: pbx prc_insertCDR end [2025-09-01 06:25:22] Production.INFO: ==10993== Releasing lock... [2025-09-01 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 06:25:22] Production.INFO: 28.75 MB #Memory Used# [2025-09-01 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 04:25:05 [end_date_ymd] => 2025-09-01 07:25:05 [RateCDR] => 1 ) [2025-09-01 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-01 04:25:05' and `end` < '2025-09-01 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-01 07:25:17] Production.INFO: count ==91 [2025-09-01 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-01 04:25:05 - End Time 2025-09-01 07:25:05 [2025-09-01 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15760061', 'tblTempUsageDetail_20' ) start [2025-09-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15760061', 'tblTempUsageDetail_20' ) end [2025-09-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15760061', 'tblTempVendorCDR_20' ) start [2025-09-01 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15760061', 'tblTempVendorCDR_20' ) end [2025-09-01 07:25:17] Production.INFO: ProcessCDR(1,15760061,1,1,2) [2025-09-01 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15760061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15760061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15760061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15760061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15760061', 'tblTempUsageDetail_20' ) start [2025-09-01 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15760061', 'tblTempUsageDetail_20' ) end [2025-09-01 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-09-01 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-09-01 07:25:24] Production.INFO: ==15461== Releasing lock... [2025-09-01 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 07:25:24] Production.INFO: 28.5 MB #Memory Used# [2025-09-01 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 05:25:05 [end_date_ymd] => 2025-09-01 08:25:05 [RateCDR] => 1 ) [2025-09-01 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-01 05:25:05' and `end` < '2025-09-01 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-01 08:25:17] Production.INFO: count ==116 [2025-09-01 08:25:17] Production.ERROR: pbx CDR StartTime 2025-09-01 05:25:05 - End Time 2025-09-01 08:25:05 [2025-09-01 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15760308', 'tblTempUsageDetail_20' ) start [2025-09-01 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15760308', 'tblTempUsageDetail_20' ) end [2025-09-01 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15760308', 'tblTempVendorCDR_20' ) start [2025-09-01 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15760308', 'tblTempVendorCDR_20' ) end [2025-09-01 08:25:17] Production.INFO: ProcessCDR(1,15760308,1,1,2) [2025-09-01 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15760308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15760308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15760308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15760308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15760308', 'tblTempUsageDetail_20' ) start [2025-09-01 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15760308', 'tblTempUsageDetail_20' ) end [2025-09-01 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-01 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-01 08:25:26] Production.INFO: ==19967== Releasing lock... [2025-09-01 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 08:25:26] Production.INFO: 29 MB #Memory Used# [2025-09-01 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 06:25:05 [end_date_ymd] => 2025-09-01 09:25:05 [RateCDR] => 1 ) [2025-09-01 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-01 06:25:05' and `end` < '2025-09-01 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-01 09:25:17] Production.INFO: count ==302 [2025-09-01 09:25:17] Production.ERROR: pbx CDR StartTime 2025-09-01 06:25:05 - End Time 2025-09-01 09:25:05 [2025-09-01 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15760555', 'tblTempUsageDetail_20' ) start [2025-09-01 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15760555', 'tblTempUsageDetail_20' ) end [2025-09-01 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15760555', 'tblTempVendorCDR_20' ) start [2025-09-01 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15760555', 'tblTempVendorCDR_20' ) end [2025-09-01 09:25:17] Production.INFO: ProcessCDR(1,15760555,1,1,2) [2025-09-01 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15760555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15760555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15760555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15760555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15760555', 'tblTempUsageDetail_20' ) start [2025-09-01 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15760555', 'tblTempUsageDetail_20' ) end [2025-09-01 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-01 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-01 09:25:25] Production.INFO: ==24740== Releasing lock... [2025-09-01 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 09:25:25] Production.INFO: 31 MB #Memory Used# [2025-09-01 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 07:25:06 [end_date_ymd] => 2025-09-01 10:25:06 [RateCDR] => 1 ) [2025-09-01 10:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-01 07:25:06' and `end` < '2025-09-01 10:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-01 10:25:18] Production.INFO: count ==681 [2025-09-01 10:25:18] Production.ERROR: pbx CDR StartTime 2025-09-01 07:25:06 - End Time 2025-09-01 10:25:06 [2025-09-01 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15760802', 'tblTempUsageDetail_20' ) start [2025-09-01 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15760802', 'tblTempUsageDetail_20' ) end [2025-09-01 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15760802', 'tblTempVendorCDR_20' ) start [2025-09-01 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15760802', 'tblTempVendorCDR_20' ) end [2025-09-01 10:25:18] Production.INFO: ProcessCDR(1,15760802,1,1,2) [2025-09-01 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15760802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15760802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15760802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 10:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15760802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15760802', 'tblTempUsageDetail_20' ) start [2025-09-01 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15760802', 'tblTempUsageDetail_20' ) end [2025-09-01 10:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-01 10:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-01 10:25:26] Production.INFO: ==29236== Releasing lock... [2025-09-01 10:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 10:25:26] Production.INFO: 33.25 MB #Memory Used# [2025-09-01 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 08:25:06 [end_date_ymd] => 2025-09-01 11:25:06 [RateCDR] => 1 ) [2025-09-01 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-01 08:25:06' and `end` < '2025-09-01 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-01 11:25:19] Production.INFO: count ==966 [2025-09-01 11:25:19] Production.ERROR: pbx CDR StartTime 2025-09-01 08:25:06 - End Time 2025-09-01 11:25:06 [2025-09-01 11:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15761049', 'tblTempUsageDetail_20' ) start [2025-09-01 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15761049', 'tblTempUsageDetail_20' ) end [2025-09-01 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15761049', 'tblTempVendorCDR_20' ) start [2025-09-01 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15761049', 'tblTempVendorCDR_20' ) end [2025-09-01 11:25:19] Production.INFO: ProcessCDR(1,15761049,1,1,2) [2025-09-01 11:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15761049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 11:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15761049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 11:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15761049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 11:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15761049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 11:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15761049', 'tblTempUsageDetail_20' ) start [2025-09-01 11:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15761049', 'tblTempUsageDetail_20' ) end [2025-09-01 11:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-01 11:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-01 11:25:28] Production.INFO: ==1044== Releasing lock... [2025-09-01 11:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 11:25:28] Production.INFO: 36.75 MB #Memory Used# [2025-09-01 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 09:25:05 [end_date_ymd] => 2025-09-01 12:25:05 [RateCDR] => 1 ) [2025-09-01 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-01 09:25:05' and `end` < '2025-09-01 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-01 12:25:18] Production.INFO: count ==1189 [2025-09-01 12:25:18] Production.ERROR: pbx CDR StartTime 2025-09-01 09:25:05 - End Time 2025-09-01 12:25:05 [2025-09-01 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15761296', 'tblTempUsageDetail_20' ) start [2025-09-01 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15761296', 'tblTempUsageDetail_20' ) end [2025-09-01 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15761296', 'tblTempVendorCDR_20' ) start [2025-09-01 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15761296', 'tblTempVendorCDR_20' ) end [2025-09-01 12:25:19] Production.INFO: ProcessCDR(1,15761296,1,1,2) [2025-09-01 12:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15761296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15761296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15761296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15761296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15761296', 'tblTempUsageDetail_20' ) start [2025-09-01 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15761296', 'tblTempUsageDetail_20' ) end [2025-09-01 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-01 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-01 12:25:27] Production.INFO: ==6706== Releasing lock... [2025-09-01 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 12:25:27] Production.INFO: 37.75 MB #Memory Used# [2025-09-01 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 10:25:06 [end_date_ymd] => 2025-09-01 13:25:06 [RateCDR] => 1 ) [2025-09-01 13: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-01 10:25:06' and `end` < '2025-09-01 13: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-01 13:25:18] Production.INFO: count ==1149 [2025-09-01 13:25:19] Production.ERROR: pbx CDR StartTime 2025-09-01 10:25:06 - End Time 2025-09-01 13:25:06 [2025-09-01 13:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15761543', 'tblTempUsageDetail_20' ) start [2025-09-01 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15761543', 'tblTempUsageDetail_20' ) end [2025-09-01 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15761543', 'tblTempVendorCDR_20' ) start [2025-09-01 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15761543', 'tblTempVendorCDR_20' ) end [2025-09-01 13:25:19] Production.INFO: ProcessCDR(1,15761543,1,1,2) [2025-09-01 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15761543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 13:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15761543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 13:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15761543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15761543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15761543', 'tblTempUsageDetail_20' ) start [2025-09-01 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15761543', 'tblTempUsageDetail_20' ) end [2025-09-01 13:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-01 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-01 13:25:27] Production.INFO: ==11244== Releasing lock... [2025-09-01 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 13:25:27] Production.INFO: 37.75 MB #Memory Used# [2025-09-01 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 11:25:05 [end_date_ymd] => 2025-09-01 14:25:05 [RateCDR] => 1 ) [2025-09-01 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-01 11:25:05' and `end` < '2025-09-01 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-01 14:25:18] Production.INFO: count ==1275 [2025-09-01 14:25:18] Production.ERROR: pbx CDR StartTime 2025-09-01 11:25:05 - End Time 2025-09-01 14:25:05 [2025-09-01 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15761790', 'tblTempUsageDetail_20' ) start [2025-09-01 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15761790', 'tblTempUsageDetail_20' ) end [2025-09-01 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15761790', 'tblTempVendorCDR_20' ) start [2025-09-01 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15761790', 'tblTempVendorCDR_20' ) end [2025-09-01 14:25:18] Production.INFO: ProcessCDR(1,15761790,1,1,2) [2025-09-01 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15761790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15761790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15761790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 14:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15761790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15761790', 'tblTempUsageDetail_20' ) start [2025-09-01 14:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15761790', 'tblTempUsageDetail_20' ) end [2025-09-01 14:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-01 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-01 14:25:27] Production.INFO: ==15633== Releasing lock... [2025-09-01 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 14:25:27] Production.INFO: 37.75 MB #Memory Used# [2025-09-01 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 12:25:05 [end_date_ymd] => 2025-09-01 15:25:05 [RateCDR] => 1 ) [2025-09-01 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-01 12:25:05' and `end` < '2025-09-01 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-01 15:25:17] Production.INFO: count ==1339 [2025-09-01 15:25:18] Production.ERROR: pbx CDR StartTime 2025-09-01 12:25:05 - End Time 2025-09-01 15:25:05 [2025-09-01 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15762037', 'tblTempUsageDetail_20' ) start [2025-09-01 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15762037', 'tblTempUsageDetail_20' ) end [2025-09-01 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15762037', 'tblTempVendorCDR_20' ) start [2025-09-01 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15762037', 'tblTempVendorCDR_20' ) end [2025-09-01 15:25:18] Production.INFO: ProcessCDR(1,15762037,1,1,2) [2025-09-01 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15762037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15762037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15762037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15762037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15762037', 'tblTempUsageDetail_20' ) start [2025-09-01 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15762037', 'tblTempUsageDetail_20' ) end [2025-09-01 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-01 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-01 15:25:27] Production.INFO: ==19997== Releasing lock... [2025-09-01 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 15:25:27] Production.INFO: 38.25 MB #Memory Used# [2025-09-01 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 13:25:05 [end_date_ymd] => 2025-09-01 16:25:05 [RateCDR] => 1 ) [2025-09-01 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-01 13:25:05' and `end` < '2025-09-01 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-01 16:25:18] Production.INFO: count ==1395 [2025-09-01 16:25:18] Production.ERROR: pbx CDR StartTime 2025-09-01 13:25:05 - End Time 2025-09-01 16:25:05 [2025-09-01 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15762284', 'tblTempUsageDetail_20' ) start [2025-09-01 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15762284', 'tblTempUsageDetail_20' ) end [2025-09-01 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15762284', 'tblTempVendorCDR_20' ) start [2025-09-01 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15762284', 'tblTempVendorCDR_20' ) end [2025-09-01 16:25:18] Production.INFO: ProcessCDR(1,15762284,1,1,2) [2025-09-01 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15762284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 16:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15762284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 16:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15762284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15762284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15762284', 'tblTempUsageDetail_20' ) start [2025-09-01 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15762284', 'tblTempUsageDetail_20' ) end [2025-09-01 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-01 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-01 16:25:27] Production.INFO: ==25245== Releasing lock... [2025-09-01 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 16:25:27] Production.INFO: 38.5 MB #Memory Used# [2025-09-01 17:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 14:25:06 [end_date_ymd] => 2025-09-01 17:25:06 [RateCDR] => 1 ) [2025-09-01 17:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-01 14:25:06' and `end` < '2025-09-01 17:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-01 17:25:18] Production.INFO: count ==1483 [2025-09-01 17:25:19] Production.ERROR: pbx CDR StartTime 2025-09-01 14:25:06 - End Time 2025-09-01 17:25:06 [2025-09-01 17:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15762531', 'tblTempUsageDetail_20' ) start [2025-09-01 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15762531', 'tblTempUsageDetail_20' ) end [2025-09-01 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15762531', 'tblTempVendorCDR_20' ) start [2025-09-01 17:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15762531', 'tblTempVendorCDR_20' ) end [2025-09-01 17:25:19] Production.INFO: ProcessCDR(1,15762531,1,1,2) [2025-09-01 17:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15762531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15762531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15762531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15762531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15762531', 'tblTempUsageDetail_20' ) start [2025-09-01 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15762531', 'tblTempUsageDetail_20' ) end [2025-09-01 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-01 17:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-01 17:25:28] Production.INFO: ==30360== Releasing lock... [2025-09-01 17:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 17:25:28] Production.INFO: 39.25 MB #Memory Used# [2025-09-01 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 15:25:05 [end_date_ymd] => 2025-09-01 18:25:05 [RateCDR] => 1 ) [2025-09-01 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-01 15:25:05' and `end` < '2025-09-01 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-01 18:25:17] Production.INFO: count ==1713 [2025-09-01 18:25:18] Production.ERROR: pbx CDR StartTime 2025-09-01 15:25:05 - End Time 2025-09-01 18:25:05 [2025-09-01 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15762778', 'tblTempUsageDetail_20' ) start [2025-09-01 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15762778', 'tblTempUsageDetail_20' ) end [2025-09-01 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15762778', 'tblTempVendorCDR_20' ) start [2025-09-01 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15762778', 'tblTempVendorCDR_20' ) end [2025-09-01 18:25:18] Production.INFO: ProcessCDR(1,15762778,1,1,2) [2025-09-01 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15762778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15762778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15762778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 18:25:52] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15762778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 18:25:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15762778', 'tblTempUsageDetail_20' ) start [2025-09-01 18:25:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15762778', 'tblTempUsageDetail_20' ) end [2025-09-01 18:25:54] Production.ERROR: pbx prc_insertCDR start [2025-09-01 18:25:55] Production.ERROR: pbx prc_insertCDR end [2025-09-01 18:25:57] Production.INFO: ==2879== Releasing lock... [2025-09-01 18:25:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 18:25:57] Production.INFO: 41 MB #Memory Used# [2025-09-01 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 16:25:05 [end_date_ymd] => 2025-09-01 19:25:05 [RateCDR] => 1 ) [2025-09-01 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-01 16:25:05' and `end` < '2025-09-01 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-01 19:25:18] Production.INFO: count ==1787 [2025-09-01 19:25:18] Production.ERROR: pbx CDR StartTime 2025-09-01 16:25:05 - End Time 2025-09-01 19:25:05 [2025-09-01 19:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15763024', 'tblTempUsageDetail_20' ) start [2025-09-01 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15763024', 'tblTempUsageDetail_20' ) end [2025-09-01 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15763024', 'tblTempVendorCDR_20' ) start [2025-09-01 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15763024', 'tblTempVendorCDR_20' ) end [2025-09-01 19:25:18] Production.INFO: ProcessCDR(1,15763024,1,1,2) [2025-09-01 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15763024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 19:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15763024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 19:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15763024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 19:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15763024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15763024', 'tblTempUsageDetail_20' ) start [2025-09-01 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15763024', 'tblTempUsageDetail_20' ) end [2025-09-01 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-01 19:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-01 19:25:27] Production.INFO: ==7804== Releasing lock... [2025-09-01 19:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 19:25:27] Production.INFO: 41.75 MB #Memory Used# [2025-09-01 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 17:25:06 [end_date_ymd] => 2025-09-01 20:25:06 [RateCDR] => 1 ) [2025-09-01 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-01 17:25:06' and `end` < '2025-09-01 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-01 20:25:18] Production.INFO: count ==1673 [2025-09-01 20:25:19] Production.ERROR: pbx CDR StartTime 2025-09-01 17:25:06 - End Time 2025-09-01 20:25:06 [2025-09-01 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15763271', 'tblTempUsageDetail_20' ) start [2025-09-01 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15763271', 'tblTempUsageDetail_20' ) end [2025-09-01 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15763271', 'tblTempVendorCDR_20' ) start [2025-09-01 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15763271', 'tblTempVendorCDR_20' ) end [2025-09-01 20:25:19] Production.INFO: ProcessCDR(1,15763271,1,1,2) [2025-09-01 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15763271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15763271,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15763271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 20:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15763271,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15763271', 'tblTempUsageDetail_20' ) start [2025-09-01 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15763271', 'tblTempUsageDetail_20' ) end [2025-09-01 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-01 20:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-01 20:25:28] Production.INFO: ==12771== Releasing lock... [2025-09-01 20:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 20:25:28] Production.INFO: 41 MB #Memory Used# [2025-09-01 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 18:25:05 [end_date_ymd] => 2025-09-01 21:25:05 [RateCDR] => 1 ) [2025-09-01 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-01 18:25:05' and `end` < '2025-09-01 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-01 21:25:18] Production.INFO: count ==1351 [2025-09-01 21:25:18] Production.ERROR: pbx CDR StartTime 2025-09-01 18:25:05 - End Time 2025-09-01 21:25:05 [2025-09-01 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15763518', 'tblTempUsageDetail_20' ) start [2025-09-01 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15763518', 'tblTempUsageDetail_20' ) end [2025-09-01 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15763518', 'tblTempVendorCDR_20' ) start [2025-09-01 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15763518', 'tblTempVendorCDR_20' ) end [2025-09-01 21:25:18] Production.INFO: ProcessCDR(1,15763518,1,1,2) [2025-09-01 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15763518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15763518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15763518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15763518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15763518', 'tblTempUsageDetail_20' ) start [2025-09-01 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15763518', 'tblTempUsageDetail_20' ) end [2025-09-01 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-01 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-01 21:25:26] Production.INFO: ==17663== Releasing lock... [2025-09-01 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 21:25:26] Production.INFO: 38.25 MB #Memory Used# [2025-09-01 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 19:25:05 [end_date_ymd] => 2025-09-01 22:25:05 [RateCDR] => 1 ) [2025-09-01 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-01 19:25:05' and `end` < '2025-09-01 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-01 22:25:17] Production.INFO: count ==1173 [2025-09-01 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-01 19:25:05 - End Time 2025-09-01 22:25:05 [2025-09-01 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15763765', 'tblTempUsageDetail_20' ) start [2025-09-01 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15763765', 'tblTempUsageDetail_20' ) end [2025-09-01 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15763765', 'tblTempVendorCDR_20' ) start [2025-09-01 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15763765', 'tblTempVendorCDR_20' ) end [2025-09-01 22:25:18] Production.INFO: ProcessCDR(1,15763765,1,1,2) [2025-09-01 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15763765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15763765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15763765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15763765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15763765', 'tblTempUsageDetail_20' ) start [2025-09-01 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15763765', 'tblTempUsageDetail_20' ) end [2025-09-01 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-01 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-01 22:25:26] Production.INFO: ==22197== Releasing lock... [2025-09-01 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 22:25:26] Production.INFO: 37.5 MB #Memory Used# [2025-09-01 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-01 20:25:06 [end_date_ymd] => 2025-09-01 23:25:06 [RateCDR] => 1 ) [2025-09-01 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-01 20:25:06' and `end` < '2025-09-01 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-01 23:25:18] Production.INFO: count ==940 [2025-09-01 23:25:18] Production.ERROR: pbx CDR StartTime 2025-09-01 20:25:06 - End Time 2025-09-01 23:25:06 [2025-09-01 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15764012', 'tblTempUsageDetail_20' ) start [2025-09-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15764012', 'tblTempUsageDetail_20' ) end [2025-09-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15764012', 'tblTempVendorCDR_20' ) start [2025-09-01 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15764012', 'tblTempVendorCDR_20' ) end [2025-09-01 23:25:18] Production.INFO: ProcessCDR(1,15764012,1,1,2) [2025-09-01 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15764012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 23:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15764012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-01 23:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15764012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 23:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15764012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-01 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15764012', 'tblTempUsageDetail_20' ) start [2025-09-01 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15764012', 'tblTempUsageDetail_20' ) end [2025-09-01 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-01 23:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-01 23:25:28] Production.INFO: ==26467== Releasing lock... [2025-09-01 23:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-01 23:25:28] Production.INFO: 35.5 MB #Memory Used#