[2025-08-23 00:25:04] Production.INFO: next invoice date [2025-08-23 00:25:04] Production.INFO: 2025-09-23 [2025-08-23 00:25:04] Production.INFO: getdaysdiff [2025-08-23 00:25:04] Production.INFO: +31 [2025-08-23 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (226,11,1,31,31,'RMScheduler',2025-08-23 00:25:04,1,0,,,0) [2025-08-23 00:25:04] Production.INFO: next invoice date [2025-08-23 00:25:04] Production.INFO: 2025-09-23 [2025-08-23 00:25:04] Production.INFO: getdaysdiff [2025-08-23 00:25:04] Production.INFO: +31 [2025-08-23 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (226,13,2,31,31,'RMScheduler',2025-08-23 00:25:04,1,0,,,0) [2025-08-23 00:25:04] Production.INFO: next invoice date [2025-08-23 00:25:04] Production.INFO: 2025-09-23 [2025-08-23 00:25:04] Production.INFO: getdaysdiff [2025-08-23 00:25:04] Production.INFO: +31 [2025-08-23 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (252,16,1,31,31,'RMScheduler',2025-08-23 00:25:04,1,0,,,0) [2025-08-23 00:25:05] Production.INFO: next invoice date [2025-08-23 00:25:05] Production.INFO: 2025-09-23 [2025-08-23 00:25:05] Production.INFO: getdaysdiff [2025-08-23 00:25:05] Production.INFO: +31 [2025-08-23 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (252,13,2,31,31,'RMScheduler',2025-08-23 00:25:04,1,0,,,0) [2025-08-23 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 21:25:06 [end_date_ymd] => 2025-08-23 00:25:06 [RateCDR] => 1 ) [2025-08-23 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-22 21:25:06' and `end` < '2025-08-23 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-08-23 00:25:18] Production.INFO: count ==646 [2025-08-23 00:25:18] Production.ERROR: pbx CDR StartTime 2025-08-22 21:25:06 - End Time 2025-08-23 00:25:06 [2025-08-23 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15704985', 'tblTempUsageDetail_20' ) start [2025-08-23 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15704985', 'tblTempUsageDetail_20' ) end [2025-08-23 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15704985', 'tblTempVendorCDR_20' ) start [2025-08-23 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15704985', 'tblTempVendorCDR_20' ) end [2025-08-23 00:25:18] Production.INFO: ProcessCDR(1,15704985,1,1,2) [2025-08-23 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15704985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15704985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15704985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15704985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15704985', 'tblTempUsageDetail_20' ) start [2025-08-23 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15704985', 'tblTempUsageDetail_20' ) end [2025-08-23 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-23 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-23 00:25:27] Production.INFO: ==15272== Releasing lock... [2025-08-23 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 00:25:28] Production.INFO: 37.5 MB #Memory Used# [2025-08-23 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 22:25:05 [end_date_ymd] => 2025-08-23 01:25:05 [RateCDR] => 1 ) [2025-08-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-08-22 22:25:05' and `end` < '2025-08-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-08-23 01:25:18] Production.INFO: count ==614 [2025-08-23 01:25:18] Production.ERROR: pbx CDR StartTime 2025-08-22 22:25:05 - End Time 2025-08-23 01:25:05 [2025-08-23 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15705232', 'tblTempUsageDetail_20' ) start [2025-08-23 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15705232', 'tblTempUsageDetail_20' ) end [2025-08-23 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15705232', 'tblTempVendorCDR_20' ) start [2025-08-23 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15705232', 'tblTempVendorCDR_20' ) end [2025-08-23 01:25:18] Production.INFO: ProcessCDR(1,15705232,1,1,2) [2025-08-23 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15705232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15705232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15705232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15705232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15705232', 'tblTempUsageDetail_20' ) start [2025-08-23 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15705232', 'tblTempUsageDetail_20' ) end [2025-08-23 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-23 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-23 01:25:25] Production.INFO: ==19855== Releasing lock... [2025-08-23 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 01:25:25] Production.INFO: 33.25 MB #Memory Used# [2025-08-23 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-22 23:25:05 [end_date_ymd] => 2025-08-23 02:25:05 [RateCDR] => 1 ) [2025-08-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-08-22 23:25:05' and `end` < '2025-08-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-08-23 02:25:17] Production.INFO: count ==605 [2025-08-23 02:25:17] Production.ERROR: pbx CDR StartTime 2025-08-22 23:25:05 - End Time 2025-08-23 02:25:05 [2025-08-23 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15705479', 'tblTempUsageDetail_20' ) start [2025-08-23 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15705479', 'tblTempUsageDetail_20' ) end [2025-08-23 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15705479', 'tblTempVendorCDR_20' ) start [2025-08-23 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15705479', 'tblTempVendorCDR_20' ) end [2025-08-23 02:25:17] Production.INFO: ProcessCDR(1,15705479,1,1,2) [2025-08-23 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15705479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15705479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15705479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15705479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15705479', 'tblTempUsageDetail_20' ) start [2025-08-23 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15705479', 'tblTempUsageDetail_20' ) end [2025-08-23 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-23 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-23 02:25:25] Production.INFO: ==24404== Releasing lock... [2025-08-23 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 02:25:25] Production.INFO: 33 MB #Memory Used# [2025-08-23 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 00:25:05 [end_date_ymd] => 2025-08-23 03:25:05 [RateCDR] => 1 ) [2025-08-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-08-23 00:25:05' and `end` < '2025-08-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-08-23 03:25:17] Production.INFO: count ==552 [2025-08-23 03:25:17] Production.ERROR: pbx CDR StartTime 2025-08-23 00:25:05 - End Time 2025-08-23 03:25:05 [2025-08-23 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15705726', 'tblTempUsageDetail_20' ) start [2025-08-23 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15705726', 'tblTempUsageDetail_20' ) end [2025-08-23 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15705726', 'tblTempVendorCDR_20' ) start [2025-08-23 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15705726', 'tblTempVendorCDR_20' ) end [2025-08-23 03:25:17] Production.INFO: ProcessCDR(1,15705726,1,1,2) [2025-08-23 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15705726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15705726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15705726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15705726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15705726', 'tblTempUsageDetail_20' ) start [2025-08-23 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15705726', 'tblTempUsageDetail_20' ) end [2025-08-23 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-23 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-23 03:25:24] Production.INFO: ==28614== Releasing lock... [2025-08-23 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 03:25:24] Production.INFO: 33 MB #Memory Used# [2025-08-23 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 01:25:05 [end_date_ymd] => 2025-08-23 04:25:05 [RateCDR] => 1 ) [2025-08-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-08-23 01:25:05' and `end` < '2025-08-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-08-23 04:25:18] Production.INFO: count ==366 [2025-08-23 04:25:18] Production.ERROR: pbx CDR StartTime 2025-08-23 01:25:05 - End Time 2025-08-23 04:25:05 [2025-08-23 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15705974', 'tblTempUsageDetail_20' ) start [2025-08-23 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15705974', 'tblTempUsageDetail_20' ) end [2025-08-23 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15705974', 'tblTempVendorCDR_20' ) start [2025-08-23 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15705974', 'tblTempVendorCDR_20' ) end [2025-08-23 04:25:18] Production.INFO: ProcessCDR(1,15705974,1,1,2) [2025-08-23 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15705974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15705974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15705974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15705974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15705974', 'tblTempUsageDetail_20' ) start [2025-08-23 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15705974', 'tblTempUsageDetail_20' ) end [2025-08-23 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-23 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-23 04:25:25] Production.INFO: ==577== Releasing lock... [2025-08-23 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 04:25:25] Production.INFO: 30.75 MB #Memory Used# [2025-08-23 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 02:25:05 [end_date_ymd] => 2025-08-23 05:25:05 [RateCDR] => 1 ) [2025-08-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-08-23 02:25:05' and `end` < '2025-08-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-08-23 05:25:17] Production.INFO: count ==227 [2025-08-23 05:25:17] Production.ERROR: pbx CDR StartTime 2025-08-23 02:25:05 - End Time 2025-08-23 05:25:05 [2025-08-23 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15706222', 'tblTempUsageDetail_20' ) start [2025-08-23 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15706222', 'tblTempUsageDetail_20' ) end [2025-08-23 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15706222', 'tblTempVendorCDR_20' ) start [2025-08-23 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15706222', 'tblTempVendorCDR_20' ) end [2025-08-23 05:25:17] Production.INFO: ProcessCDR(1,15706222,1,1,2) [2025-08-23 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15706222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15706222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15706222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 05:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15706222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15706222', 'tblTempUsageDetail_20' ) start [2025-08-23 05:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15706222', 'tblTempUsageDetail_20' ) end [2025-08-23 05:25:22] Production.ERROR: pbx prc_insertCDR start [2025-08-23 05:25:22] Production.ERROR: pbx prc_insertCDR end [2025-08-23 05:25:22] Production.INFO: ==5289== Releasing lock... [2025-08-23 05:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 05:25:22] Production.INFO: 29.75 MB #Memory Used# [2025-08-23 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 03:25:05 [end_date_ymd] => 2025-08-23 06:25:05 [RateCDR] => 1 ) [2025-08-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-08-23 03:25:05' and `end` < '2025-08-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-08-23 06:25:17] Production.INFO: count ==151 [2025-08-23 06:25:17] Production.ERROR: pbx CDR StartTime 2025-08-23 03:25:05 - End Time 2025-08-23 06:25:05 [2025-08-23 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15706469', 'tblTempUsageDetail_20' ) start [2025-08-23 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15706469', 'tblTempUsageDetail_20' ) end [2025-08-23 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15706469', 'tblTempVendorCDR_20' ) start [2025-08-23 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15706469', 'tblTempVendorCDR_20' ) end [2025-08-23 06:25:17] Production.INFO: ProcessCDR(1,15706469,1,1,2) [2025-08-23 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15706469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15706469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15706469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15706469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15706469', 'tblTempUsageDetail_20' ) start [2025-08-23 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15706469', 'tblTempUsageDetail_20' ) end [2025-08-23 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-23 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-23 06:25:24] Production.INFO: ==9774== Releasing lock... [2025-08-23 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 06:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-08-23 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 04:25:05 [end_date_ymd] => 2025-08-23 07:25:05 [RateCDR] => 1 ) [2025-08-23 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-08-23 04:25:05' and `end` < '2025-08-23 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-08-23 07:25:17] Production.INFO: count ==130 [2025-08-23 07:25:17] Production.ERROR: pbx CDR StartTime 2025-08-23 04:25:05 - End Time 2025-08-23 07:25:05 [2025-08-23 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15706716', 'tblTempUsageDetail_20' ) start [2025-08-23 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15706716', 'tblTempUsageDetail_20' ) end [2025-08-23 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15706716', 'tblTempVendorCDR_20' ) start [2025-08-23 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15706716', 'tblTempVendorCDR_20' ) end [2025-08-23 07:25:17] Production.INFO: ProcessCDR(1,15706716,1,1,2) [2025-08-23 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15706716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15706716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15706716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15706716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15706716', 'tblTempUsageDetail_20' ) start [2025-08-23 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15706716', 'tblTempUsageDetail_20' ) end [2025-08-23 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-23 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-23 07:25:25] Production.INFO: ==14935== Releasing lock... [2025-08-23 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 07:25:25] Production.INFO: 29 MB #Memory Used# [2025-08-23 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 05:25:05 [end_date_ymd] => 2025-08-23 08:25:05 [RateCDR] => 1 ) [2025-08-23 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-23 05:25:05' and `end` < '2025-08-23 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-23 08:25:17] Production.INFO: count ==157 [2025-08-23 08:25:17] Production.ERROR: pbx CDR StartTime 2025-08-23 05:25:05 - End Time 2025-08-23 08:25:05 [2025-08-23 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15706963', 'tblTempUsageDetail_20' ) start [2025-08-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15706963', 'tblTempUsageDetail_20' ) end [2025-08-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15706963', 'tblTempVendorCDR_20' ) start [2025-08-23 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15706963', 'tblTempVendorCDR_20' ) end [2025-08-23 08:25:17] Production.INFO: ProcessCDR(1,15706963,1,1,2) [2025-08-23 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15706963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15706963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15706963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15706963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15706963', 'tblTempUsageDetail_20' ) start [2025-08-23 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15706963', 'tblTempUsageDetail_20' ) end [2025-08-23 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-23 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-23 08:25:25] Production.INFO: ==19893== Releasing lock... [2025-08-23 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 08:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-08-23 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 06:25:05 [end_date_ymd] => 2025-08-23 09:25:05 [RateCDR] => 1 ) [2025-08-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-08-23 06:25:05' and `end` < '2025-08-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-08-23 09:25:17] Production.INFO: count ==487 [2025-08-23 09:25:17] Production.ERROR: pbx CDR StartTime 2025-08-23 06:25:05 - End Time 2025-08-23 09:25:05 [2025-08-23 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15707210', 'tblTempUsageDetail_20' ) start [2025-08-23 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15707210', 'tblTempUsageDetail_20' ) end [2025-08-23 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15707210', 'tblTempVendorCDR_20' ) start [2025-08-23 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15707210', 'tblTempVendorCDR_20' ) end [2025-08-23 09:25:17] Production.INFO: ProcessCDR(1,15707210,1,1,2) [2025-08-23 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15707210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15707210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15707210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15707210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15707210', 'tblTempUsageDetail_20' ) start [2025-08-23 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15707210', 'tblTempUsageDetail_20' ) end [2025-08-23 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-23 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-23 09:25:25] Production.INFO: ==24189== Releasing lock... [2025-08-23 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 09:25:25] Production.INFO: 32 MB #Memory Used# [2025-08-23 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 07:25:05 [end_date_ymd] => 2025-08-23 10:25:05 [RateCDR] => 1 ) [2025-08-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-08-23 07:25:05' and `end` < '2025-08-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-08-23 10:25:17] Production.INFO: count ==995 [2025-08-23 10:25:18] Production.ERROR: pbx CDR StartTime 2025-08-23 07:25:05 - End Time 2025-08-23 10:25:05 [2025-08-23 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15707457', 'tblTempUsageDetail_20' ) start [2025-08-23 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15707457', 'tblTempUsageDetail_20' ) end [2025-08-23 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15707457', 'tblTempVendorCDR_20' ) start [2025-08-23 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15707457', 'tblTempVendorCDR_20' ) end [2025-08-23 10:25:18] Production.INFO: ProcessCDR(1,15707457,1,1,2) [2025-08-23 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15707457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15707457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15707457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15707457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15707457', 'tblTempUsageDetail_20' ) start [2025-08-23 10:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15707457', 'tblTempUsageDetail_20' ) end [2025-08-23 10:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-23 10:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-23 10:25:27] Production.INFO: ==28833== Releasing lock... [2025-08-23 10:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 10:25:27] Production.INFO: 36.5 MB #Memory Used# [2025-08-23 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 08:25:05 [end_date_ymd] => 2025-08-23 11:25:05 [RateCDR] => 1 ) [2025-08-23 11:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-23 08:25:05' and `end` < '2025-08-23 11:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-23 11:25:18] Production.INFO: count ==1686 [2025-08-23 11:25:18] Production.ERROR: pbx CDR StartTime 2025-08-23 08:25:05 - End Time 2025-08-23 11:25:05 [2025-08-23 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15707704', 'tblTempUsageDetail_20' ) start [2025-08-23 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15707704', 'tblTempUsageDetail_20' ) end [2025-08-23 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15707704', 'tblTempVendorCDR_20' ) start [2025-08-23 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15707704', 'tblTempVendorCDR_20' ) end [2025-08-23 11:25:19] Production.INFO: ProcessCDR(1,15707704,1,1,2) [2025-08-23 11:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15707704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 11:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15707704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 11:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15707704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 11:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15707704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15707704', 'tblTempUsageDetail_20' ) start [2025-08-23 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15707704', 'tblTempUsageDetail_20' ) end [2025-08-23 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-23 11:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-23 11:25:27] Production.INFO: ==886== Releasing lock... [2025-08-23 11:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 11:25:27] Production.INFO: 40.75 MB #Memory Used# [2025-08-23 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 09:25:05 [end_date_ymd] => 2025-08-23 12:25:05 [RateCDR] => 1 ) [2025-08-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-08-23 09:25:05' and `end` < '2025-08-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-08-23 12:25:18] Production.INFO: count ==1953 [2025-08-23 12:25:19] Production.ERROR: pbx CDR StartTime 2025-08-23 09:25:05 - End Time 2025-08-23 12:25:05 [2025-08-23 12:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15707951', 'tblTempUsageDetail_20' ) start [2025-08-23 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15707951', 'tblTempUsageDetail_20' ) end [2025-08-23 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15707951', 'tblTempVendorCDR_20' ) start [2025-08-23 12:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15707951', 'tblTempVendorCDR_20' ) end [2025-08-23 12:25:19] Production.INFO: ProcessCDR(1,15707951,1,1,2) [2025-08-23 12:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15707951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 12:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15707951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 12:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15707951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15707951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15707951', 'tblTempUsageDetail_20' ) start [2025-08-23 12:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15707951', 'tblTempUsageDetail_20' ) end [2025-08-23 12:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-23 12:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-23 12:25:27] Production.INFO: ==5269== Releasing lock... [2025-08-23 12:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 12:25:27] Production.INFO: 42.75 MB #Memory Used# [2025-08-23 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 10:25:05 [end_date_ymd] => 2025-08-23 13:25:05 [RateCDR] => 1 ) [2025-08-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-08-23 10:25:05' and `end` < '2025-08-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-08-23 13:25:18] Production.INFO: count ==1971 [2025-08-23 13:25:18] Production.ERROR: pbx CDR StartTime 2025-08-23 10:25:05 - End Time 2025-08-23 13:25:05 [2025-08-23 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15708198', 'tblTempUsageDetail_20' ) start [2025-08-23 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15708198', 'tblTempUsageDetail_20' ) end [2025-08-23 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15708198', 'tblTempVendorCDR_20' ) start [2025-08-23 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15708198', 'tblTempVendorCDR_20' ) end [2025-08-23 13:25:19] Production.INFO: ProcessCDR(1,15708198,1,1,2) [2025-08-23 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15708198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 13:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15708198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 13:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15708198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15708198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15708198', 'tblTempUsageDetail_20' ) start [2025-08-23 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15708198', 'tblTempUsageDetail_20' ) end [2025-08-23 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-23 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-23 13:25:27] Production.INFO: ==10453== Releasing lock... [2025-08-23 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 13:25:27] Production.INFO: 43 MB #Memory Used# [2025-08-23 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 11:25:05 [end_date_ymd] => 2025-08-23 14:25:05 [RateCDR] => 1 ) [2025-08-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-08-23 11:25:05' and `end` < '2025-08-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-08-23 14:25:18] Production.INFO: count ==1860 [2025-08-23 14:25:18] Production.ERROR: pbx CDR StartTime 2025-08-23 11:25:05 - End Time 2025-08-23 14:25:05 [2025-08-23 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15708445', 'tblTempUsageDetail_20' ) start [2025-08-23 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15708445', 'tblTempUsageDetail_20' ) end [2025-08-23 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15708445', 'tblTempVendorCDR_20' ) start [2025-08-23 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15708445', 'tblTempVendorCDR_20' ) end [2025-08-23 14:25:18] Production.INFO: ProcessCDR(1,15708445,1,1,2) [2025-08-23 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15708445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15708445,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15708445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 14:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15708445,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15708445', 'tblTempUsageDetail_20' ) start [2025-08-23 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15708445', 'tblTempUsageDetail_20' ) end [2025-08-23 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-23 14:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-23 14:25:27] Production.INFO: ==14805== Releasing lock... [2025-08-23 14:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 14:25:27] Production.INFO: 42.25 MB #Memory Used# [2025-08-23 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 12:25:05 [end_date_ymd] => 2025-08-23 15:25:05 [RateCDR] => 1 ) [2025-08-23 15: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-23 12:25:05' and `end` < '2025-08-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-08-23 15:25:18] Production.INFO: count ==1701 [2025-08-23 15:25:18] Production.ERROR: pbx CDR StartTime 2025-08-23 12:25:05 - End Time 2025-08-23 15:25:05 [2025-08-23 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15708692', 'tblTempUsageDetail_20' ) start [2025-08-23 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15708692', 'tblTempUsageDetail_20' ) end [2025-08-23 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15708692', 'tblTempVendorCDR_20' ) start [2025-08-23 15:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15708692', 'tblTempVendorCDR_20' ) end [2025-08-23 15:25:19] Production.INFO: ProcessCDR(1,15708692,1,1,2) [2025-08-23 15:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15708692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 15:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15708692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 15:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15708692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15708692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15708692', 'tblTempUsageDetail_20' ) start [2025-08-23 15:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15708692', 'tblTempUsageDetail_20' ) end [2025-08-23 15:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-23 15:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-23 15:25:27] Production.INFO: ==19869== Releasing lock... [2025-08-23 15:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 15:25:27] Production.INFO: 41 MB #Memory Used# [2025-08-23 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 13:25:05 [end_date_ymd] => 2025-08-23 16:25:05 [RateCDR] => 1 ) [2025-08-23 16: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-23 13:25:05' and `end` < '2025-08-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-08-23 16:25:18] Production.INFO: count ==1679 [2025-08-23 16:25:19] Production.ERROR: pbx CDR StartTime 2025-08-23 13:25:05 - End Time 2025-08-23 16:25:05 [2025-08-23 16:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15708939', 'tblTempUsageDetail_20' ) start [2025-08-23 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15708939', 'tblTempUsageDetail_20' ) end [2025-08-23 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15708939', 'tblTempVendorCDR_20' ) start [2025-08-23 16:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15708939', 'tblTempVendorCDR_20' ) end [2025-08-23 16:25:19] Production.INFO: ProcessCDR(1,15708939,1,1,2) [2025-08-23 16:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15708939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 16:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15708939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 16:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15708939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 16:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15708939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15708939', 'tblTempUsageDetail_20' ) start [2025-08-23 16:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15708939', 'tblTempUsageDetail_20' ) end [2025-08-23 16:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-23 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-23 16:25:27] Production.INFO: ==24434== Releasing lock... [2025-08-23 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 16:25:27] Production.INFO: 40.75 MB #Memory Used# [2025-08-23 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 14:25:05 [end_date_ymd] => 2025-08-23 17:25:05 [RateCDR] => 1 ) [2025-08-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-08-23 14:25:05' and `end` < '2025-08-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-08-23 17:25:17] Production.INFO: count ==1716 [2025-08-23 17:25:18] Production.ERROR: pbx CDR StartTime 2025-08-23 14:25:05 - End Time 2025-08-23 17:25:05 [2025-08-23 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15709186', 'tblTempUsageDetail_20' ) start [2025-08-23 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15709186', 'tblTempUsageDetail_20' ) end [2025-08-23 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15709186', 'tblTempVendorCDR_20' ) start [2025-08-23 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15709186', 'tblTempVendorCDR_20' ) end [2025-08-23 17:25:18] Production.INFO: ProcessCDR(1,15709186,1,1,2) [2025-08-23 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15709186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15709186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15709186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 17:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15709186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15709186', 'tblTempUsageDetail_20' ) start [2025-08-23 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15709186', 'tblTempUsageDetail_20' ) end [2025-08-23 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-23 17:25:28] Production.ERROR: pbx prc_insertCDR end [2025-08-23 17:25:28] Production.INFO: ==29705== Releasing lock... [2025-08-23 17:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 17:25:28] Production.INFO: 41 MB #Memory Used# [2025-08-23 18:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 15:25:04 [end_date_ymd] => 2025-08-23 18:25:04 [RateCDR] => 1 ) [2025-08-23 18:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-23 15:25:04' and `end` < '2025-08-23 18:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-23 18:25:17] Production.INFO: count ==1916 [2025-08-23 18:25:18] Production.ERROR: pbx CDR StartTime 2025-08-23 15:25:04 - End Time 2025-08-23 18:25:04 [2025-08-23 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15709433', 'tblTempUsageDetail_20' ) start [2025-08-23 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15709433', 'tblTempUsageDetail_20' ) end [2025-08-23 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15709433', 'tblTempVendorCDR_20' ) start [2025-08-23 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15709433', 'tblTempVendorCDR_20' ) end [2025-08-23 18:25:18] Production.INFO: ProcessCDR(1,15709433,1,1,2) [2025-08-23 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15709433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15709433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15709433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 18:25:55] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15709433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 18:25:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15709433', 'tblTempUsageDetail_20' ) start [2025-08-23 18:25:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15709433', 'tblTempUsageDetail_20' ) end [2025-08-23 18:25:55] Production.ERROR: pbx prc_insertCDR start [2025-08-23 18:25:56] Production.ERROR: pbx prc_insertCDR end [2025-08-23 18:25:58] Production.INFO: ==1916== Releasing lock... [2025-08-23 18:25:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 18:25:58] Production.INFO: 42.5 MB #Memory Used# [2025-08-23 19:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 16:25:04 [end_date_ymd] => 2025-08-23 19:25:04 [RateCDR] => 1 ) [2025-08-23 19:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-23 16:25:04' and `end` < '2025-08-23 19:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-23 19:25:17] Production.INFO: count ==1915 [2025-08-23 19:25:17] Production.ERROR: pbx CDR StartTime 2025-08-23 16:25:04 - End Time 2025-08-23 19:25:04 [2025-08-23 19:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 19:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15709678', 'tblTempUsageDetail_20' ) start [2025-08-23 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15709678', 'tblTempUsageDetail_20' ) end [2025-08-23 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15709678', 'tblTempVendorCDR_20' ) start [2025-08-23 19:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15709678', 'tblTempVendorCDR_20' ) end [2025-08-23 19:25:18] Production.INFO: ProcessCDR(1,15709678,1,1,2) [2025-08-23 19:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15709678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15709678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15709678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 19:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15709678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 19:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15709678', 'tblTempUsageDetail_20' ) start [2025-08-23 19:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15709678', 'tblTempUsageDetail_20' ) end [2025-08-23 19:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-23 19:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-23 19:25:26] Production.INFO: ==6386== Releasing lock... [2025-08-23 19:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 19:25:26] Production.INFO: 42.5 MB #Memory Used# [2025-08-23 20:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 17:25:04 [end_date_ymd] => 2025-08-23 20:25:04 [RateCDR] => 1 ) [2025-08-23 20:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-23 17:25:04' and `end` < '2025-08-23 20:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-23 20:25:17] Production.INFO: count ==1729 [2025-08-23 20:25:17] Production.ERROR: pbx CDR StartTime 2025-08-23 17:25:04 - End Time 2025-08-23 20:25:04 [2025-08-23 20:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15709925', 'tblTempUsageDetail_20' ) start [2025-08-23 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15709925', 'tblTempUsageDetail_20' ) end [2025-08-23 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15709925', 'tblTempVendorCDR_20' ) start [2025-08-23 20:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15709925', 'tblTempVendorCDR_20' ) end [2025-08-23 20:25:17] Production.INFO: ProcessCDR(1,15709925,1,1,2) [2025-08-23 20:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15709925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 20:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15709925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 20:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15709925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15709925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15709925', 'tblTempUsageDetail_20' ) start [2025-08-23 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15709925', 'tblTempUsageDetail_20' ) end [2025-08-23 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-23 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-23 20:25:26] Production.INFO: ==11411== Releasing lock... [2025-08-23 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 20:25:26] Production.INFO: 41 MB #Memory Used# [2025-08-23 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 18:25:05 [end_date_ymd] => 2025-08-23 21:25:05 [RateCDR] => 1 ) [2025-08-23 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-23 18:25:05' and `end` < '2025-08-23 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-23 21:25:17] Production.INFO: count ==1454 [2025-08-23 21:25:18] Production.ERROR: pbx CDR StartTime 2025-08-23 18:25:05 - End Time 2025-08-23 21:25:05 [2025-08-23 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15710172', 'tblTempUsageDetail_20' ) start [2025-08-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15710172', 'tblTempUsageDetail_20' ) end [2025-08-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15710172', 'tblTempVendorCDR_20' ) start [2025-08-23 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15710172', 'tblTempVendorCDR_20' ) end [2025-08-23 21:25:18] Production.INFO: ProcessCDR(1,15710172,1,1,2) [2025-08-23 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15710172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15710172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15710172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15710172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15710172', 'tblTempUsageDetail_20' ) start [2025-08-23 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15710172', 'tblTempUsageDetail_20' ) end [2025-08-23 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-23 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-23 21:25:27] Production.INFO: ==16061== Releasing lock... [2025-08-23 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 21:25:27] Production.INFO: 39.25 MB #Memory Used# [2025-08-23 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 19:25:05 [end_date_ymd] => 2025-08-23 22:25:05 [RateCDR] => 1 ) [2025-08-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-08-23 19:25:05' and `end` < '2025-08-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-08-23 22:25:18] Production.INFO: count ==1267 [2025-08-23 22:25:18] Production.ERROR: pbx CDR StartTime 2025-08-23 19:25:05 - End Time 2025-08-23 22:25:05 [2025-08-23 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15710419', 'tblTempUsageDetail_20' ) start [2025-08-23 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15710419', 'tblTempUsageDetail_20' ) end [2025-08-23 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15710419', 'tblTempVendorCDR_20' ) start [2025-08-23 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15710419', 'tblTempVendorCDR_20' ) end [2025-08-23 22:25:18] Production.INFO: ProcessCDR(1,15710419,1,1,2) [2025-08-23 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15710419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15710419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15710419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15710419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15710419', 'tblTempUsageDetail_20' ) start [2025-08-23 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15710419', 'tblTempUsageDetail_20' ) end [2025-08-23 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-23 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-23 22:25:26] Production.INFO: ==21759== Releasing lock... [2025-08-23 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 22:25:26] Production.INFO: 38 MB #Memory Used# [2025-08-23 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-23 20:25:05 [end_date_ymd] => 2025-08-23 23:25:05 [RateCDR] => 1 ) [2025-08-23 23:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-23 20:25:05' and `end` < '2025-08-23 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-23 23:25:17] Production.INFO: count ==1076 [2025-08-23 23:25:18] Production.ERROR: pbx CDR StartTime 2025-08-23 20:25:05 - End Time 2025-08-23 23:25:05 [2025-08-23 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-23 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15710666', 'tblTempUsageDetail_20' ) start [2025-08-23 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15710666', 'tblTempUsageDetail_20' ) end [2025-08-23 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15710666', 'tblTempVendorCDR_20' ) start [2025-08-23 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15710666', 'tblTempVendorCDR_20' ) end [2025-08-23 23:25:18] Production.INFO: ProcessCDR(1,15710666,1,1,2) [2025-08-23 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15710666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15710666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-23 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15710666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15710666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-23 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15710666', 'tblTempUsageDetail_20' ) start [2025-08-23 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15710666', 'tblTempUsageDetail_20' ) end [2025-08-23 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-23 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-23 23:25:26] Production.INFO: ==26703== Releasing lock... [2025-08-23 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-23 23:25:26] Production.INFO: 37.5 MB #Memory Used#