[2025-08-16 00:25:04] Production.INFO: next invoice date [2025-08-16 00:25:04] Production.INFO: 2025-09-16 [2025-08-16 00:25:04] Production.INFO: getdaysdiff [2025-08-16 00:25:04] Production.INFO: +31 [2025-08-16 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (107,16,1,31,31,'RMScheduler',2025-08-16 00:25:04,1,0,,,0) [2025-08-16 00:25:04] Production.INFO: next invoice date [2025-08-16 00:25:04] Production.INFO: 2025-09-16 [2025-08-16 00:25:04] Production.INFO: getdaysdiff [2025-08-16 00:25:04] Production.INFO: +31 [2025-08-16 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (140,16,1,31,31,'RMScheduler',2025-08-16 00:25:04,1,0,,,0) [2025-08-16 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-15 21:25:05 [end_date_ymd] => 2025-08-16 00:25:05 [RateCDR] => 1 ) [2025-08-16 00:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-15 21:25:05' and `end` < '2025-08-16 00:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-16 00:25:18] Production.INFO: count ==710 [2025-08-16 00:25:18] Production.ERROR: pbx CDR StartTime 2025-08-15 21:25:05 - End Time 2025-08-16 00:25:05 [2025-08-16 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15663494', 'tblTempUsageDetail_20' ) start [2025-08-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15663494', 'tblTempUsageDetail_20' ) end [2025-08-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15663494', 'tblTempVendorCDR_20' ) start [2025-08-16 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15663494', 'tblTempVendorCDR_20' ) end [2025-08-16 00:25:18] Production.INFO: ProcessCDR(1,15663494,1,1,2) [2025-08-16 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15663494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15663494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15663494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 00:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15663494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15663494', 'tblTempUsageDetail_20' ) start [2025-08-16 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15663494', 'tblTempUsageDetail_20' ) end [2025-08-16 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-16 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-16 00:25:29] Production.INFO: ==31045== Releasing lock... [2025-08-16 00:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 00:25:29] Production.INFO: 37.75 MB #Memory Used# [2025-08-16 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-15 22:25:06 [end_date_ymd] => 2025-08-16 01:25:06 [RateCDR] => 1 ) [2025-08-16 01: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-15 22:25:06' and `end` < '2025-08-16 01: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-16 01:25:18] Production.INFO: count ==655 [2025-08-16 01:25:18] Production.ERROR: pbx CDR StartTime 2025-08-15 22:25:06 - End Time 2025-08-16 01:25:06 [2025-08-16 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15663741', 'tblTempUsageDetail_20' ) start [2025-08-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15663741', 'tblTempUsageDetail_20' ) end [2025-08-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15663741', 'tblTempVendorCDR_20' ) start [2025-08-16 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15663741', 'tblTempVendorCDR_20' ) end [2025-08-16 01:25:18] Production.INFO: ProcessCDR(1,15663741,1,1,2) [2025-08-16 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15663741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 01:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15663741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 01:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15663741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15663741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15663741', 'tblTempUsageDetail_20' ) start [2025-08-16 01:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15663741', 'tblTempUsageDetail_20' ) end [2025-08-16 01:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-16 01:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-16 01:25:26] Production.INFO: ==3645== Releasing lock... [2025-08-16 01:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 01:25:26] Production.INFO: 33 MB #Memory Used# [2025-08-16 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-15 23:25:05 [end_date_ymd] => 2025-08-16 02:25:05 [RateCDR] => 1 ) [2025-08-16 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-15 23:25:05' and `end` < '2025-08-16 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-16 02:25:18] Production.INFO: count ==611 [2025-08-16 02:25:18] Production.ERROR: pbx CDR StartTime 2025-08-15 23:25:05 - End Time 2025-08-16 02:25:05 [2025-08-16 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15663988', 'tblTempUsageDetail_20' ) start [2025-08-16 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15663988', 'tblTempUsageDetail_20' ) end [2025-08-16 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15663988', 'tblTempVendorCDR_20' ) start [2025-08-16 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15663988', 'tblTempVendorCDR_20' ) end [2025-08-16 02:25:18] Production.INFO: ProcessCDR(1,15663988,1,1,2) [2025-08-16 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15663988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15663988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15663988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15663988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15663988', 'tblTempUsageDetail_20' ) start [2025-08-16 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15663988', 'tblTempUsageDetail_20' ) end [2025-08-16 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-16 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-16 02:25:25] Production.INFO: ==8149== Releasing lock... [2025-08-16 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 02:25:25] Production.INFO: 33.5 MB #Memory Used# [2025-08-16 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 00:25:05 [end_date_ymd] => 2025-08-16 03:25:05 [RateCDR] => 1 ) [2025-08-16 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-16 00:25:05' and `end` < '2025-08-16 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-16 03:25:17] Production.INFO: count ==499 [2025-08-16 03:25:18] Production.ERROR: pbx CDR StartTime 2025-08-16 00:25:05 - End Time 2025-08-16 03:25:05 [2025-08-16 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15664235', 'tblTempUsageDetail_20' ) start [2025-08-16 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15664235', 'tblTempUsageDetail_20' ) end [2025-08-16 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15664235', 'tblTempVendorCDR_20' ) start [2025-08-16 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15664235', 'tblTempVendorCDR_20' ) end [2025-08-16 03:25:18] Production.INFO: ProcessCDR(1,15664235,1,1,2) [2025-08-16 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15664235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15664235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15664235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15664235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15664235', 'tblTempUsageDetail_20' ) start [2025-08-16 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15664235', 'tblTempUsageDetail_20' ) end [2025-08-16 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-16 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-16 03:25:25] Production.INFO: ==12750== Releasing lock... [2025-08-16 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 03:25:25] Production.INFO: 32.25 MB #Memory Used# [2025-08-16 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 01:25:05 [end_date_ymd] => 2025-08-16 04:25:05 [RateCDR] => 1 ) [2025-08-16 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-16 01:25:05' and `end` < '2025-08-16 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-16 04:25:17] Production.INFO: count ==339 [2025-08-16 04:25:17] Production.ERROR: pbx CDR StartTime 2025-08-16 01:25:05 - End Time 2025-08-16 04:25:05 [2025-08-16 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15664483', 'tblTempUsageDetail_20' ) start [2025-08-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15664483', 'tblTempUsageDetail_20' ) end [2025-08-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15664483', 'tblTempVendorCDR_20' ) start [2025-08-16 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15664483', 'tblTempVendorCDR_20' ) end [2025-08-16 04:25:17] Production.INFO: ProcessCDR(1,15664483,1,1,2) [2025-08-16 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15664483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15664483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15664483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15664483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15664483', 'tblTempUsageDetail_20' ) start [2025-08-16 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15664483', 'tblTempUsageDetail_20' ) end [2025-08-16 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-16 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-16 04:25:24] Production.INFO: ==17053== Releasing lock... [2025-08-16 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 04:25:24] Production.INFO: 30.5 MB #Memory Used# [2025-08-16 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 02:25:05 [end_date_ymd] => 2025-08-16 05:25:05 [RateCDR] => 1 ) [2025-08-16 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-16 02:25:05' and `end` < '2025-08-16 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-16 05:25:18] Production.INFO: count ==215 [2025-08-16 05:25:18] Production.ERROR: pbx CDR StartTime 2025-08-16 02:25:05 - End Time 2025-08-16 05:25:05 [2025-08-16 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15664731', 'tblTempUsageDetail_20' ) start [2025-08-16 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15664731', 'tblTempUsageDetail_20' ) end [2025-08-16 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15664731', 'tblTempVendorCDR_20' ) start [2025-08-16 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15664731', 'tblTempVendorCDR_20' ) end [2025-08-16 05:25:18] Production.INFO: ProcessCDR(1,15664731,1,1,2) [2025-08-16 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15664731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 05:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15664731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 05:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15664731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15664731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15664731', 'tblTempUsageDetail_20' ) start [2025-08-16 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15664731', 'tblTempUsageDetail_20' ) end [2025-08-16 05:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-16 05:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-16 05:25:25] Production.INFO: ==21454== Releasing lock... [2025-08-16 05:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 05:25:25] Production.INFO: 30.25 MB #Memory Used# [2025-08-16 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 03:25:05 [end_date_ymd] => 2025-08-16 06:25:05 [RateCDR] => 1 ) [2025-08-16 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-16 03:25:05' and `end` < '2025-08-16 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-16 06:25:17] Production.INFO: count ==140 [2025-08-16 06:25:17] Production.ERROR: pbx CDR StartTime 2025-08-16 03:25:05 - End Time 2025-08-16 06:25:05 [2025-08-16 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15664978', 'tblTempUsageDetail_20' ) start [2025-08-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15664978', 'tblTempUsageDetail_20' ) end [2025-08-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15664978', 'tblTempVendorCDR_20' ) start [2025-08-16 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15664978', 'tblTempVendorCDR_20' ) end [2025-08-16 06:25:17] Production.INFO: ProcessCDR(1,15664978,1,1,2) [2025-08-16 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15664978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15664978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15664978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15664978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15664978', 'tblTempUsageDetail_20' ) start [2025-08-16 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15664978', 'tblTempUsageDetail_20' ) end [2025-08-16 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-16 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-16 06:25:24] Production.INFO: ==25992== Releasing lock... [2025-08-16 06:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 06:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-08-16 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 04:25:05 [end_date_ymd] => 2025-08-16 07:25:05 [RateCDR] => 1 ) [2025-08-16 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-16 04:25:05' and `end` < '2025-08-16 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-16 07:25:17] Production.INFO: count ==132 [2025-08-16 07:25:17] Production.ERROR: pbx CDR StartTime 2025-08-16 04:25:05 - End Time 2025-08-16 07:25:05 [2025-08-16 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15665225', 'tblTempUsageDetail_20' ) start [2025-08-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15665225', 'tblTempUsageDetail_20' ) end [2025-08-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15665225', 'tblTempVendorCDR_20' ) start [2025-08-16 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15665225', 'tblTempVendorCDR_20' ) end [2025-08-16 07:25:17] Production.INFO: ProcessCDR(1,15665225,1,1,2) [2025-08-16 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15665225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 07:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15665225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 07:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15665225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15665225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15665225', 'tblTempUsageDetail_20' ) start [2025-08-16 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15665225', 'tblTempUsageDetail_20' ) end [2025-08-16 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-16 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-16 07:25:24] Production.INFO: ==30287== Releasing lock... [2025-08-16 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 07:25:24] Production.INFO: 29.25 MB #Memory Used# [2025-08-16 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 05:25:05 [end_date_ymd] => 2025-08-16 08:25:05 [RateCDR] => 1 ) [2025-08-16 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-16 05:25:05' and `end` < '2025-08-16 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-16 08:25:17] Production.INFO: count ==213 [2025-08-16 08:25:17] Production.ERROR: pbx CDR StartTime 2025-08-16 05:25:05 - End Time 2025-08-16 08:25:05 [2025-08-16 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15665472', 'tblTempUsageDetail_20' ) start [2025-08-16 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15665472', 'tblTempUsageDetail_20' ) end [2025-08-16 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15665472', 'tblTempVendorCDR_20' ) start [2025-08-16 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15665472', 'tblTempVendorCDR_20' ) end [2025-08-16 08:25:17] Production.INFO: ProcessCDR(1,15665472,1,1,2) [2025-08-16 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15665472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15665472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15665472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15665472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15665472', 'tblTempUsageDetail_20' ) start [2025-08-16 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15665472', 'tblTempUsageDetail_20' ) end [2025-08-16 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-16 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-16 08:25:25] Production.INFO: ==2405== Releasing lock... [2025-08-16 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 08:25:25] Production.INFO: 29.75 MB #Memory Used# [2025-08-16 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 06:25:05 [end_date_ymd] => 2025-08-16 09:25:05 [RateCDR] => 1 ) [2025-08-16 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-16 06:25:05' and `end` < '2025-08-16 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-16 09:25:18] Production.INFO: count ==481 [2025-08-16 09:25:18] Production.ERROR: pbx CDR StartTime 2025-08-16 06:25:05 - End Time 2025-08-16 09:25:05 [2025-08-16 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15665719', 'tblTempUsageDetail_20' ) start [2025-08-16 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15665719', 'tblTempUsageDetail_20' ) end [2025-08-16 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15665719', 'tblTempVendorCDR_20' ) start [2025-08-16 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15665719', 'tblTempVendorCDR_20' ) end [2025-08-16 09:25:18] Production.INFO: ProcessCDR(1,15665719,1,1,2) [2025-08-16 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15665719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15665719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15665719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 09:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15665719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15665719', 'tblTempUsageDetail_20' ) start [2025-08-16 09:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15665719', 'tblTempUsageDetail_20' ) end [2025-08-16 09:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-16 09:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-16 09:25:25] Production.INFO: ==7175== Releasing lock... [2025-08-16 09:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 09:25:25] Production.INFO: 32.5 MB #Memory Used# [2025-08-16 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 07:25:05 [end_date_ymd] => 2025-08-16 10:25:05 [RateCDR] => 1 ) [2025-08-16 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-16 07:25:05' and `end` < '2025-08-16 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-16 10:25:17] Production.INFO: count ==943 [2025-08-16 10:25:18] Production.ERROR: pbx CDR StartTime 2025-08-16 07:25:05 - End Time 2025-08-16 10:25:05 [2025-08-16 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15665966', 'tblTempUsageDetail_20' ) start [2025-08-16 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15665966', 'tblTempUsageDetail_20' ) end [2025-08-16 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15665966', 'tblTempVendorCDR_20' ) start [2025-08-16 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15665966', 'tblTempVendorCDR_20' ) end [2025-08-16 10:25:18] Production.INFO: ProcessCDR(1,15665966,1,1,2) [2025-08-16 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15665966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 10:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15665966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 10:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15665966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 10:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15665966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15665966', 'tblTempUsageDetail_20' ) start [2025-08-16 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15665966', 'tblTempUsageDetail_20' ) end [2025-08-16 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-16 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-16 10:25:25] Production.INFO: ==11815== Releasing lock... [2025-08-16 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 10:25:25] Production.INFO: 35.75 MB #Memory Used# [2025-08-16 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 08:25:05 [end_date_ymd] => 2025-08-16 11:25:05 [RateCDR] => 1 ) [2025-08-16 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-16 08:25:05' and `end` < '2025-08-16 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-16 11:25:17] Production.INFO: count ==1354 [2025-08-16 11:25:18] Production.ERROR: pbx CDR StartTime 2025-08-16 08:25:05 - End Time 2025-08-16 11:25:05 [2025-08-16 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15666213', 'tblTempUsageDetail_20' ) start [2025-08-16 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15666213', 'tblTempUsageDetail_20' ) end [2025-08-16 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15666213', 'tblTempVendorCDR_20' ) start [2025-08-16 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15666213', 'tblTempVendorCDR_20' ) end [2025-08-16 11:25:18] Production.INFO: ProcessCDR(1,15666213,1,1,2) [2025-08-16 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15666213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 11:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15666213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 11:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15666213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15666213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15666213', 'tblTempUsageDetail_20' ) start [2025-08-16 11:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15666213', 'tblTempUsageDetail_20' ) end [2025-08-16 11:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-16 11:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-16 11:25:26] Production.INFO: ==16145== Releasing lock... [2025-08-16 11:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 11:25:26] Production.INFO: 38.5 MB #Memory Used# [2025-08-16 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 09:25:05 [end_date_ymd] => 2025-08-16 12:25:05 [RateCDR] => 1 ) [2025-08-16 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-16 09:25:05' and `end` < '2025-08-16 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-16 12:25:19] Production.INFO: count ==1975 [2025-08-16 12:25:20] Production.ERROR: pbx CDR StartTime 2025-08-16 09:25:05 - End Time 2025-08-16 12:25:05 [2025-08-16 12:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15666460', 'tblTempUsageDetail_20' ) start [2025-08-16 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15666460', 'tblTempUsageDetail_20' ) end [2025-08-16 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15666460', 'tblTempVendorCDR_20' ) start [2025-08-16 12:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15666460', 'tblTempVendorCDR_20' ) end [2025-08-16 12:25:20] Production.INFO: ProcessCDR(1,15666460,1,1,2) [2025-08-16 12:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15666460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 12:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15666460,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 12:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15666460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 12:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15666460,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15666460', 'tblTempUsageDetail_20' ) start [2025-08-16 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15666460', 'tblTempUsageDetail_20' ) end [2025-08-16 12:25:28] Production.ERROR: pbx prc_insertCDR start [2025-08-16 12:25:29] Production.ERROR: pbx prc_insertCDR end [2025-08-16 12:25:29] Production.INFO: ==21272== Releasing lock... [2025-08-16 12:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 12:25:29] Production.INFO: 43.5 MB #Memory Used# [2025-08-16 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 10:25:05 [end_date_ymd] => 2025-08-16 13:25:05 [RateCDR] => 1 ) [2025-08-16 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-16 10:25:05' and `end` < '2025-08-16 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-16 13:25:18] Production.INFO: count ==2160 [2025-08-16 13:25:18] Production.ERROR: pbx CDR StartTime 2025-08-16 10:25:05 - End Time 2025-08-16 13:25:05 [2025-08-16 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15666707', 'tblTempUsageDetail_20' ) start [2025-08-16 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15666707', 'tblTempUsageDetail_20' ) end [2025-08-16 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15666707', 'tblTempVendorCDR_20' ) start [2025-08-16 13:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15666707', 'tblTempVendorCDR_20' ) end [2025-08-16 13:25:19] Production.INFO: ProcessCDR(1,15666707,1,1,2) [2025-08-16 13:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15666707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 13:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15666707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 13:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15666707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 13:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15666707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15666707', 'tblTempUsageDetail_20' ) start [2025-08-16 13:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15666707', 'tblTempUsageDetail_20' ) end [2025-08-16 13:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-16 13:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-16 13:25:27] Production.INFO: ==26513== Releasing lock... [2025-08-16 13:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 13:25:27] Production.INFO: 44.25 MB #Memory Used# [2025-08-16 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 11:25:05 [end_date_ymd] => 2025-08-16 14:25:05 [RateCDR] => 1 ) [2025-08-16 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-16 11:25:05' and `end` < '2025-08-16 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-16 14:25:17] Production.INFO: count ==2011 [2025-08-16 14:25:18] Production.ERROR: pbx CDR StartTime 2025-08-16 11:25:05 - End Time 2025-08-16 14:25:05 [2025-08-16 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15666954', 'tblTempUsageDetail_20' ) start [2025-08-16 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15666954', 'tblTempUsageDetail_20' ) end [2025-08-16 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15666954', 'tblTempVendorCDR_20' ) start [2025-08-16 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15666954', 'tblTempVendorCDR_20' ) end [2025-08-16 14:25:18] Production.INFO: ProcessCDR(1,15666954,1,1,2) [2025-08-16 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15666954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 14:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15666954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 14:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15666954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15666954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15666954', 'tblTempUsageDetail_20' ) start [2025-08-16 14:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15666954', 'tblTempUsageDetail_20' ) end [2025-08-16 14:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-16 14:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-16 14:25:26] Production.INFO: ==31109== Releasing lock... [2025-08-16 14:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 14:25:26] Production.INFO: 43.5 MB #Memory Used# [2025-08-16 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 12:25:05 [end_date_ymd] => 2025-08-16 15:25:05 [RateCDR] => 1 ) [2025-08-16 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-08-16 12:25:05' and `end` < '2025-08-16 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-16 15:25:17] Production.INFO: count ==1533 [2025-08-16 15:25:18] Production.ERROR: pbx CDR StartTime 2025-08-16 12:25:05 - End Time 2025-08-16 15:25:05 [2025-08-16 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15667201', 'tblTempUsageDetail_20' ) start [2025-08-16 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15667201', 'tblTempUsageDetail_20' ) end [2025-08-16 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15667201', 'tblTempVendorCDR_20' ) start [2025-08-16 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15667201', 'tblTempVendorCDR_20' ) end [2025-08-16 15:25:18] Production.INFO: ProcessCDR(1,15667201,1,1,2) [2025-08-16 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15667201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 15:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15667201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 15:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15667201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 15:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15667201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15667201', 'tblTempUsageDetail_20' ) start [2025-08-16 15:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15667201', 'tblTempUsageDetail_20' ) end [2025-08-16 15:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-16 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-16 15:25:26] Production.INFO: ==3876== Releasing lock... [2025-08-16 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 15:25:26] Production.INFO: 39.75 MB #Memory Used# [2025-08-16 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 13:25:05 [end_date_ymd] => 2025-08-16 16:25:05 [RateCDR] => 1 ) [2025-08-16 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-08-16 13:25:05' and `end` < '2025-08-16 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-16 16:25:17] Production.INFO: count ==1196 [2025-08-16 16:25:18] Production.ERROR: pbx CDR StartTime 2025-08-16 13:25:05 - End Time 2025-08-16 16:25:05 [2025-08-16 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15667448', 'tblTempUsageDetail_20' ) start [2025-08-16 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15667448', 'tblTempUsageDetail_20' ) end [2025-08-16 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15667448', 'tblTempVendorCDR_20' ) start [2025-08-16 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15667448', 'tblTempVendorCDR_20' ) end [2025-08-16 16:25:18] Production.INFO: ProcessCDR(1,15667448,1,1,2) [2025-08-16 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15667448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 16:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15667448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 16:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15667448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 16:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15667448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15667448', 'tblTempUsageDetail_20' ) start [2025-08-16 16:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15667448', 'tblTempUsageDetail_20' ) end [2025-08-16 16:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-16 16:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-16 16:25:26] Production.INFO: ==9302== Releasing lock... [2025-08-16 16:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 16:25:26] Production.INFO: 36.75 MB #Memory Used# [2025-08-16 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 14:25:05 [end_date_ymd] => 2025-08-16 17:25:05 [RateCDR] => 1 ) [2025-08-16 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-16 14:25:05' and `end` < '2025-08-16 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-16 17:25:17] Production.INFO: count ==1543 [2025-08-16 17:25:18] Production.ERROR: pbx CDR StartTime 2025-08-16 14:25:05 - End Time 2025-08-16 17:25:05 [2025-08-16 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15667695', 'tblTempUsageDetail_20' ) start [2025-08-16 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15667695', 'tblTempUsageDetail_20' ) end [2025-08-16 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15667695', 'tblTempVendorCDR_20' ) start [2025-08-16 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15667695', 'tblTempVendorCDR_20' ) end [2025-08-16 17:25:18] Production.INFO: ProcessCDR(1,15667695,1,1,2) [2025-08-16 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15667695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 17:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15667695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 17:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15667695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15667695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15667695', 'tblTempUsageDetail_20' ) start [2025-08-16 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15667695', 'tblTempUsageDetail_20' ) end [2025-08-16 17:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-16 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-16 17:25:27] Production.INFO: ==14154== Releasing lock... [2025-08-16 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 17:25:27] Production.INFO: 39.75 MB #Memory Used# [2025-08-16 18:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 15:25:04 [end_date_ymd] => 2025-08-16 18:25:04 [RateCDR] => 1 ) [2025-08-16 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-16 15:25:04' and `end` < '2025-08-16 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-16 18:25:17] Production.INFO: count ==1805 [2025-08-16 18:25:18] Production.ERROR: pbx CDR StartTime 2025-08-16 15:25:04 - End Time 2025-08-16 18:25:04 [2025-08-16 18:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15667942', 'tblTempUsageDetail_20' ) start [2025-08-16 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15667942', 'tblTempUsageDetail_20' ) end [2025-08-16 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15667942', 'tblTempVendorCDR_20' ) start [2025-08-16 18:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15667942', 'tblTempVendorCDR_20' ) end [2025-08-16 18:25:18] Production.INFO: ProcessCDR(1,15667942,1,1,2) [2025-08-16 18:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15667942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15667942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15667942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 18:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15667942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 18:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15667942', 'tblTempUsageDetail_20' ) start [2025-08-16 18:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15667942', 'tblTempUsageDetail_20' ) end [2025-08-16 18:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-16 18:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-16 18:25:27] Production.INFO: ==18630== Releasing lock... [2025-08-16 18:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 18:25:27] Production.INFO: 41.75 MB #Memory Used# [2025-08-16 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 16:25:06 [end_date_ymd] => 2025-08-16 19:25:06 [RateCDR] => 1 ) [2025-08-16 19: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-16 16:25:06' and `end` < '2025-08-16 19: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-16 19:25:19] Production.INFO: count ==1965 [2025-08-16 19:25:20] Production.ERROR: pbx CDR StartTime 2025-08-16 16:25:06 - End Time 2025-08-16 19:25:06 [2025-08-16 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15668186', 'tblTempUsageDetail_20' ) start [2025-08-16 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15668186', 'tblTempUsageDetail_20' ) end [2025-08-16 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15668186', 'tblTempVendorCDR_20' ) start [2025-08-16 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15668186', 'tblTempVendorCDR_20' ) end [2025-08-16 19:25:20] Production.INFO: ProcessCDR(1,15668186,1,1,2) [2025-08-16 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15668186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15668186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15668186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15668186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15668186', 'tblTempUsageDetail_20' ) start [2025-08-16 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15668186', 'tblTempUsageDetail_20' ) end [2025-08-16 19:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-16 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-08-16 19:25:28] Production.INFO: ==23170== Releasing lock... [2025-08-16 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 19:25:28] Production.INFO: 43 MB #Memory Used# [2025-08-16 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 17:25:05 [end_date_ymd] => 2025-08-16 20:25:05 [RateCDR] => 1 ) [2025-08-16 20:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-16 17:25:05' and `end` < '2025-08-16 20:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-16 20:25:18] Production.INFO: count ==1744 [2025-08-16 20:25:19] Production.ERROR: pbx CDR StartTime 2025-08-16 17:25:05 - End Time 2025-08-16 20:25:05 [2025-08-16 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15668433', 'tblTempUsageDetail_20' ) start [2025-08-16 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15668433', 'tblTempUsageDetail_20' ) end [2025-08-16 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15668433', 'tblTempVendorCDR_20' ) start [2025-08-16 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15668433', 'tblTempVendorCDR_20' ) end [2025-08-16 20:25:19] Production.INFO: ProcessCDR(1,15668433,1,1,2) [2025-08-16 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15668433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15668433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15668433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15668433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15668433', 'tblTempUsageDetail_20' ) start [2025-08-16 20:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15668433', 'tblTempUsageDetail_20' ) end [2025-08-16 20:25:27] Production.ERROR: pbx prc_insertCDR start [2025-08-16 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-16 20:25:27] Production.INFO: ==27814== Releasing lock... [2025-08-16 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 20:25:27] Production.INFO: 41.5 MB #Memory Used# [2025-08-16 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 18:25:06 [end_date_ymd] => 2025-08-16 21:25:06 [RateCDR] => 1 ) [2025-08-16 21:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-16 18:25:06' and `end` < '2025-08-16 21:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-16 21:25:18] Production.INFO: count ==1434 [2025-08-16 21:25:19] Production.ERROR: pbx CDR StartTime 2025-08-16 18:25:06 - End Time 2025-08-16 21:25:06 [2025-08-16 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15668680', 'tblTempUsageDetail_20' ) start [2025-08-16 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15668680', 'tblTempUsageDetail_20' ) end [2025-08-16 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15668680', 'tblTempVendorCDR_20' ) start [2025-08-16 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15668680', 'tblTempVendorCDR_20' ) end [2025-08-16 21:25:19] Production.INFO: ProcessCDR(1,15668680,1,1,2) [2025-08-16 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15668680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15668680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15668680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15668680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15668680', 'tblTempUsageDetail_20' ) start [2025-08-16 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15668680', 'tblTempUsageDetail_20' ) end [2025-08-16 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-16 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-16 21:25:27] Production.INFO: ==522== Releasing lock... [2025-08-16 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 21:25:27] Production.INFO: 39.25 MB #Memory Used# [2025-08-16 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 19:25:05 [end_date_ymd] => 2025-08-16 22:25:05 [RateCDR] => 1 ) [2025-08-16 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-16 19:25:05' and `end` < '2025-08-16 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-16 22:25:17] Production.INFO: count ==1256 [2025-08-16 22:25:18] Production.ERROR: pbx CDR StartTime 2025-08-16 19:25:05 - End Time 2025-08-16 22:25:05 [2025-08-16 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15668927', 'tblTempUsageDetail_20' ) start [2025-08-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15668927', 'tblTempUsageDetail_20' ) end [2025-08-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15668927', 'tblTempVendorCDR_20' ) start [2025-08-16 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15668927', 'tblTempVendorCDR_20' ) end [2025-08-16 22:25:18] Production.INFO: ProcessCDR(1,15668927,1,1,2) [2025-08-16 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15668927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15668927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15668927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15668927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15668927', 'tblTempUsageDetail_20' ) start [2025-08-16 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15668927', 'tblTempUsageDetail_20' ) end [2025-08-16 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-16 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-16 22:25:26] Production.INFO: ==5076== Releasing lock... [2025-08-16 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 22:25:26] Production.INFO: 37.75 MB #Memory Used# [2025-08-16 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-16 20:25:05 [end_date_ymd] => 2025-08-16 23:25:05 [RateCDR] => 1 ) [2025-08-16 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-16 20:25:05' and `end` < '2025-08-16 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-16 23:25:17] Production.INFO: count ==1064 [2025-08-16 23:25:17] Production.ERROR: pbx CDR StartTime 2025-08-16 20:25:05 - End Time 2025-08-16 23:25:05 [2025-08-16 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-16 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15669174', 'tblTempUsageDetail_20' ) start [2025-08-16 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15669174', 'tblTempUsageDetail_20' ) end [2025-08-16 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15669174', 'tblTempVendorCDR_20' ) start [2025-08-16 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15669174', 'tblTempVendorCDR_20' ) end [2025-08-16 23:25:17] Production.INFO: ProcessCDR(1,15669174,1,1,2) [2025-08-16 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15669174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15669174,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-16 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15669174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15669174,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-16 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15669174', 'tblTempUsageDetail_20' ) start [2025-08-16 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15669174', 'tblTempUsageDetail_20' ) end [2025-08-16 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-16 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-16 23:25:25] Production.INFO: ==9618== Releasing lock... [2025-08-16 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-16 23:25:25] Production.INFO: 36.5 MB #Memory Used#