[2025-08-06 00:25:05] Production.INFO: next invoice date [2025-08-06 00:25:05] Production.INFO: 2025-09-06 [2025-08-06 00:25:05] Production.INFO: getdaysdiff [2025-08-06 00:25:05] Production.INFO: +31 [2025-08-06 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (154,11,1,31,31,'RMScheduler',2025-08-06 00:25:05,1,0,,,0) [2025-08-06 00:25:05] Production.INFO: next invoice date [2025-08-06 00:25:05] Production.INFO: 2025-09-06 [2025-08-06 00:25:05] Production.INFO: getdaysdiff [2025-08-06 00:25:05] Production.INFO: +31 [2025-08-06 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (207,11,1,31,31,'RMScheduler',2025-08-06 00:25:05,0,0,,,0) [2025-08-06 00:25:05] Production.INFO: next invoice date [2025-08-06 00:25:05] Production.INFO: 2025-09-06 [2025-08-06 00:25:05] Production.INFO: getdaysdiff [2025-08-06 00:25:05] Production.INFO: +31 [2025-08-06 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (207,13,2,31,31,'RMScheduler',2025-08-06 00:25:05,0,0,,,0) [2025-08-06 00:25:05] Production.INFO: next invoice date [2025-08-06 00:25:05] Production.INFO: 2025-09-06 [2025-08-06 00:25:05] Production.INFO: getdaysdiff [2025-08-06 00:25:05] Production.INFO: +31 [2025-08-06 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (206,11,1,31,31,'RMScheduler',2025-08-06 00:25:05,0,0,,,0) [2025-08-06 00:25:05] Production.INFO: next invoice date [2025-08-06 00:25:05] Production.INFO: 2025-09-06 [2025-08-06 00:25:05] Production.INFO: getdaysdiff [2025-08-06 00:25:05] Production.INFO: +31 [2025-08-06 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (206,13,2,31,31,'RMScheduler',2025-08-06 00:25:05,0,0,,,0) [2025-08-06 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 21:25:06 [end_date_ymd] => 2025-08-06 00:25:06 [RateCDR] => 1 ) [2025-08-06 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-05 21:25:06' and `end` < '2025-08-06 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-06 00:25:18] Production.INFO: count ==460 [2025-08-06 00:25:19] Production.ERROR: pbx CDR StartTime 2025-08-05 21:25:06 - End Time 2025-08-06 00:25:06 [2025-08-06 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15604224', 'tblTempUsageDetail_20' ) start [2025-08-06 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15604224', 'tblTempUsageDetail_20' ) end [2025-08-06 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15604224', 'tblTempVendorCDR_20' ) start [2025-08-06 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15604224', 'tblTempVendorCDR_20' ) end [2025-08-06 00:25:19] Production.INFO: ProcessCDR(1,15604224,1,1,2) [2025-08-06 00:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15604224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 00:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15604224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 00:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15604224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 00:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15604224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 00:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15604224', 'tblTempUsageDetail_20' ) start [2025-08-06 00:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15604224', 'tblTempUsageDetail_20' ) end [2025-08-06 00:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-06 00:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-06 00:25:28] Production.INFO: ==9125== Releasing lock... [2025-08-06 00:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 00:25:28] Production.INFO: 35.75 MB #Memory Used# [2025-08-06 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 22:25:05 [end_date_ymd] => 2025-08-06 01:25:05 [RateCDR] => 1 ) [2025-08-06 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-05 22:25:05' and `end` < '2025-08-06 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-06 01:25:17] Production.INFO: count ==497 [2025-08-06 01:25:17] Production.ERROR: pbx CDR StartTime 2025-08-05 22:25:05 - End Time 2025-08-06 01:25:05 [2025-08-06 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15604471', 'tblTempUsageDetail_20' ) start [2025-08-06 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15604471', 'tblTempUsageDetail_20' ) end [2025-08-06 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15604471', 'tblTempVendorCDR_20' ) start [2025-08-06 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15604471', 'tblTempVendorCDR_20' ) end [2025-08-06 01:25:17] Production.INFO: ProcessCDR(1,15604471,1,1,2) [2025-08-06 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15604471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15604471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15604471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 01:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15604471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15604471', 'tblTempUsageDetail_20' ) start [2025-08-06 01:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15604471', 'tblTempUsageDetail_20' ) end [2025-08-06 01:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-06 01:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-06 01:25:24] Production.INFO: ==14791== Releasing lock... [2025-08-06 01:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 01:25:24] Production.INFO: 32.25 MB #Memory Used# [2025-08-06 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-05 23:25:05 [end_date_ymd] => 2025-08-06 02:25:05 [RateCDR] => 1 ) [2025-08-06 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-05 23:25:05' and `end` < '2025-08-06 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-06 02:25:17] Production.INFO: count ==427 [2025-08-06 02:25:18] Production.ERROR: pbx CDR StartTime 2025-08-05 23:25:05 - End Time 2025-08-06 02:25:05 [2025-08-06 02:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15604718', 'tblTempUsageDetail_20' ) start [2025-08-06 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15604718', 'tblTempUsageDetail_20' ) end [2025-08-06 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15604718', 'tblTempVendorCDR_20' ) start [2025-08-06 02:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15604718', 'tblTempVendorCDR_20' ) end [2025-08-06 02:25:18] Production.INFO: ProcessCDR(1,15604718,1,1,2) [2025-08-06 02:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15604718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15604718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15604718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 02:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15604718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 02:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15604718', 'tblTempUsageDetail_20' ) start [2025-08-06 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15604718', 'tblTempUsageDetail_20' ) end [2025-08-06 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-06 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-06 02:25:25] Production.INFO: ==20463== Releasing lock... [2025-08-06 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 02:25:25] Production.INFO: 32.25 MB #Memory Used# [2025-08-06 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 00:25:05 [end_date_ymd] => 2025-08-06 03:25:05 [RateCDR] => 1 ) [2025-08-06 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-06 00:25:05' and `end` < '2025-08-06 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-06 03:25:17] Production.INFO: count ==339 [2025-08-06 03:25:17] Production.ERROR: pbx CDR StartTime 2025-08-06 00:25:05 - End Time 2025-08-06 03:25:05 [2025-08-06 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15604965', 'tblTempUsageDetail_20' ) start [2025-08-06 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15604965', 'tblTempUsageDetail_20' ) end [2025-08-06 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15604965', 'tblTempVendorCDR_20' ) start [2025-08-06 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15604965', 'tblTempVendorCDR_20' ) end [2025-08-06 03:25:17] Production.INFO: ProcessCDR(1,15604965,1,1,2) [2025-08-06 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15604965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15604965,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15604965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 03:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15604965,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15604965', 'tblTempUsageDetail_20' ) start [2025-08-06 03:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15604965', 'tblTempUsageDetail_20' ) end [2025-08-06 03:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-06 03:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-06 03:25:24] Production.INFO: ==25898== Releasing lock... [2025-08-06 03:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 03:25:24] Production.INFO: 31.25 MB #Memory Used# [2025-08-06 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 01:25:05 [end_date_ymd] => 2025-08-06 04:25:05 [RateCDR] => 1 ) [2025-08-06 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-06 01:25:05' and `end` < '2025-08-06 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-06 04:25:17] Production.INFO: count ==228 [2025-08-06 04:25:17] Production.ERROR: pbx CDR StartTime 2025-08-06 01:25:05 - End Time 2025-08-06 04:25:05 [2025-08-06 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15605213', 'tblTempUsageDetail_20' ) start [2025-08-06 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15605213', 'tblTempUsageDetail_20' ) end [2025-08-06 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15605213', 'tblTempVendorCDR_20' ) start [2025-08-06 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15605213', 'tblTempVendorCDR_20' ) end [2025-08-06 04:25:17] Production.INFO: ProcessCDR(1,15605213,1,1,2) [2025-08-06 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15605213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15605213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15605213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 04:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15605213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15605213', 'tblTempUsageDetail_20' ) start [2025-08-06 04:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15605213', 'tblTempUsageDetail_20' ) end [2025-08-06 04:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-06 04:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-06 04:25:24] Production.INFO: ==31581== Releasing lock... [2025-08-06 04:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 04:25:24] Production.INFO: 30.25 MB #Memory Used# [2025-08-06 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 02:25:05 [end_date_ymd] => 2025-08-06 05:25:05 [RateCDR] => 1 ) [2025-08-06 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-06 02:25:05' and `end` < '2025-08-06 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-06 05:25:17] Production.INFO: count ==189 [2025-08-06 05:25:17] Production.ERROR: pbx CDR StartTime 2025-08-06 02:25:05 - End Time 2025-08-06 05:25:05 [2025-08-06 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15605461', 'tblTempUsageDetail_20' ) start [2025-08-06 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15605461', 'tblTempUsageDetail_20' ) end [2025-08-06 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15605461', 'tblTempVendorCDR_20' ) start [2025-08-06 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15605461', 'tblTempVendorCDR_20' ) end [2025-08-06 05:25:17] Production.INFO: ProcessCDR(1,15605461,1,1,2) [2025-08-06 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15605461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15605461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15605461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15605461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15605461', 'tblTempUsageDetail_20' ) start [2025-08-06 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15605461', 'tblTempUsageDetail_20' ) end [2025-08-06 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-08-06 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-08-06 05:25:21] Production.INFO: ==5431== Releasing lock... [2025-08-06 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 05:25:21] Production.INFO: 30 MB #Memory Used# [2025-08-06 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 03:25:05 [end_date_ymd] => 2025-08-06 06:25:05 [RateCDR] => 1 ) [2025-08-06 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-06 03:25:05' and `end` < '2025-08-06 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-06 06:25:17] Production.INFO: count ==165 [2025-08-06 06:25:17] Production.ERROR: pbx CDR StartTime 2025-08-06 03:25:05 - End Time 2025-08-06 06:25:05 [2025-08-06 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15605708', 'tblTempUsageDetail_20' ) start [2025-08-06 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15605708', 'tblTempUsageDetail_20' ) end [2025-08-06 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15605708', 'tblTempVendorCDR_20' ) start [2025-08-06 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15605708', 'tblTempVendorCDR_20' ) end [2025-08-06 06:25:17] Production.INFO: ProcessCDR(1,15605708,1,1,2) [2025-08-06 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15605708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15605708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15605708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 06:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15605708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15605708', 'tblTempUsageDetail_20' ) start [2025-08-06 06:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15605708', 'tblTempUsageDetail_20' ) end [2025-08-06 06:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-06 06:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-06 06:25:25] Production.INFO: ==11738== Releasing lock... [2025-08-06 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 06:25:25] Production.INFO: 29.25 MB #Memory Used# [2025-08-06 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 04:25:05 [end_date_ymd] => 2025-08-06 07:25:05 [RateCDR] => 1 ) [2025-08-06 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-06 04:25:05' and `end` < '2025-08-06 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-06 07:25:17] Production.INFO: count ==118 [2025-08-06 07:25:17] Production.ERROR: pbx CDR StartTime 2025-08-06 04:25:05 - End Time 2025-08-06 07:25:05 [2025-08-06 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15605955', 'tblTempUsageDetail_20' ) start [2025-08-06 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15605955', 'tblTempUsageDetail_20' ) end [2025-08-06 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15605955', 'tblTempVendorCDR_20' ) start [2025-08-06 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15605955', 'tblTempVendorCDR_20' ) end [2025-08-06 07:25:17] Production.INFO: ProcessCDR(1,15605955,1,1,2) [2025-08-06 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15605955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15605955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15605955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 07:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15605955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15605955', 'tblTempUsageDetail_20' ) start [2025-08-06 07:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15605955', 'tblTempUsageDetail_20' ) end [2025-08-06 07:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-06 07:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-06 07:25:24] Production.INFO: ==17744== Releasing lock... [2025-08-06 07:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 07:25:24] Production.INFO: 29 MB #Memory Used# [2025-08-06 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 05:25:05 [end_date_ymd] => 2025-08-06 08:25:05 [RateCDR] => 1 ) [2025-08-06 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-06 05:25:05' and `end` < '2025-08-06 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-06 08:25:17] Production.INFO: count ==286 [2025-08-06 08:25:17] Production.ERROR: pbx CDR StartTime 2025-08-06 05:25:05 - End Time 2025-08-06 08:25:05 [2025-08-06 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15606202', 'tblTempUsageDetail_20' ) start [2025-08-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15606202', 'tblTempUsageDetail_20' ) end [2025-08-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15606202', 'tblTempVendorCDR_20' ) start [2025-08-06 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15606202', 'tblTempVendorCDR_20' ) end [2025-08-06 08:25:17] Production.INFO: ProcessCDR(1,15606202,1,1,2) [2025-08-06 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15606202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15606202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15606202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 08:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15606202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15606202', 'tblTempUsageDetail_20' ) start [2025-08-06 08:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15606202', 'tblTempUsageDetail_20' ) end [2025-08-06 08:25:24] Production.ERROR: pbx prc_insertCDR start [2025-08-06 08:25:24] Production.ERROR: pbx prc_insertCDR end [2025-08-06 08:25:24] Production.INFO: ==23449== Releasing lock... [2025-08-06 08:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 08:25:24] Production.INFO: 31.25 MB #Memory Used# [2025-08-06 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 06:25:05 [end_date_ymd] => 2025-08-06 09:25:05 [RateCDR] => 1 ) [2025-08-06 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-06 06:25:05' and `end` < '2025-08-06 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-06 09:25:18] Production.INFO: count ==1249 [2025-08-06 09:25:19] Production.ERROR: pbx CDR StartTime 2025-08-06 06:25:05 - End Time 2025-08-06 09:25:05 [2025-08-06 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15606449', 'tblTempUsageDetail_20' ) start [2025-08-06 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15606449', 'tblTempUsageDetail_20' ) end [2025-08-06 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15606449', 'tblTempVendorCDR_20' ) start [2025-08-06 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15606449', 'tblTempVendorCDR_20' ) end [2025-08-06 09:25:19] Production.INFO: ProcessCDR(1,15606449,1,1,2) [2025-08-06 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15606449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15606449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15606449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15606449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15606449', 'tblTempUsageDetail_20' ) start [2025-08-06 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15606449', 'tblTempUsageDetail_20' ) end [2025-08-06 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-06 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-06 09:25:27] Production.INFO: ==29179== Releasing lock... [2025-08-06 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 09:25:27] Production.INFO: 37.5 MB #Memory Used# [2025-08-06 10:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 07:25:06 [end_date_ymd] => 2025-08-06 10:25:06 [RateCDR] => 1 ) [2025-08-06 10:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-06 07:25:06' and `end` < '2025-08-06 10:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-06 10:25:19] Production.INFO: count ==2785 [2025-08-06 10:25:20] Production.ERROR: pbx CDR StartTime 2025-08-06 07:25:06 - End Time 2025-08-06 10:25:06 [2025-08-06 10:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15606696', 'tblTempUsageDetail_20' ) start [2025-08-06 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15606696', 'tblTempUsageDetail_20' ) end [2025-08-06 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15606696', 'tblTempVendorCDR_20' ) start [2025-08-06 10:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15606696', 'tblTempVendorCDR_20' ) end [2025-08-06 10:25:20] Production.INFO: ProcessCDR(1,15606696,1,1,2) [2025-08-06 10:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15606696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15606696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15606696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 10:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15606696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15606696', 'tblTempUsageDetail_20' ) start [2025-08-06 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15606696', 'tblTempUsageDetail_20' ) end [2025-08-06 10:25:29] Production.ERROR: pbx prc_insertCDR start [2025-08-06 10:25:31] Production.ERROR: pbx prc_insertCDR end [2025-08-06 10:25:31] Production.INFO: ==2661== Releasing lock... [2025-08-06 10:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 10:25:31] Production.INFO: 49.5 MB #Memory Used# [2025-08-06 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 08:25:05 [end_date_ymd] => 2025-08-06 11:25:05 [RateCDR] => 1 ) [2025-08-06 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-06 08:25:05' and `end` < '2025-08-06 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-06 11:25:19] Production.INFO: count ==4428 [2025-08-06 11:25:21] Production.ERROR: pbx CDR StartTime 2025-08-06 08:25:05 - End Time 2025-08-06 11:25:05 [2025-08-06 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15606943', 'tblTempUsageDetail_20' ) start [2025-08-06 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15606943', 'tblTempUsageDetail_20' ) end [2025-08-06 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15606943', 'tblTempVendorCDR_20' ) start [2025-08-06 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15606943', 'tblTempVendorCDR_20' ) end [2025-08-06 11:25:22] Production.INFO: ProcessCDR(1,15606943,1,1,2) [2025-08-06 11:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15606943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15606943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15606943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 11:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15606943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15606943', 'tblTempUsageDetail_20' ) start [2025-08-06 11:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15606943', 'tblTempUsageDetail_20' ) end [2025-08-06 11:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-06 11:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-06 11:25:33] Production.INFO: ==9463== Releasing lock... [2025-08-06 11:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 11:25:33] Production.INFO: 61.25 MB #Memory Used# [2025-08-06 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 09:25:05 [end_date_ymd] => 2025-08-06 12:25:05 [RateCDR] => 1 ) [2025-08-06 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-06 09:25:05' and `end` < '2025-08-06 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-06 12:25:20] Production.INFO: count ==5276 [2025-08-06 12:25:22] Production.ERROR: pbx CDR StartTime 2025-08-06 09:25:05 - End Time 2025-08-06 12:25:05 [2025-08-06 12:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 12:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15607190', 'tblTempUsageDetail_20' ) start [2025-08-06 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15607190', 'tblTempUsageDetail_20' ) end [2025-08-06 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15607190', 'tblTempVendorCDR_20' ) start [2025-08-06 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15607190', 'tblTempVendorCDR_20' ) end [2025-08-06 12:25:23] Production.INFO: ProcessCDR(1,15607190,1,1,2) [2025-08-06 12:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15607190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 12:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15607190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 12:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15607190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 12:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15607190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15607190', 'tblTempUsageDetail_20' ) start [2025-08-06 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15607190', 'tblTempUsageDetail_20' ) end [2025-08-06 12:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-06 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-06 12:25:34] Production.INFO: ==15078== Releasing lock... [2025-08-06 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 12:25:34] Production.INFO: 67.75 MB #Memory Used# [2025-08-06 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 10:25:06 [end_date_ymd] => 2025-08-06 13:25:06 [RateCDR] => 1 ) [2025-08-06 13:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-06 10:25:06' and `end` < '2025-08-06 13:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-06 13:25:20] Production.INFO: count ==5324 [2025-08-06 13:25:23] Production.ERROR: pbx CDR StartTime 2025-08-06 10:25:06 - End Time 2025-08-06 13:25:06 [2025-08-06 13:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15607437', 'tblTempUsageDetail_20' ) start [2025-08-06 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15607437', 'tblTempUsageDetail_20' ) end [2025-08-06 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15607437', 'tblTempVendorCDR_20' ) start [2025-08-06 13:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15607437', 'tblTempVendorCDR_20' ) end [2025-08-06 13:25:23] Production.INFO: ProcessCDR(1,15607437,1,1,2) [2025-08-06 13:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15607437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 13:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15607437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 13:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15607437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 13:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15607437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15607437', 'tblTempUsageDetail_20' ) start [2025-08-06 13:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15607437', 'tblTempUsageDetail_20' ) end [2025-08-06 13:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-06 13:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-06 13:25:34] Production.INFO: ==20988== Releasing lock... [2025-08-06 13:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 13:25:34] Production.INFO: 68 MB #Memory Used# [2025-08-06 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 11:25:05 [end_date_ymd] => 2025-08-06 14:25:05 [RateCDR] => 1 ) [2025-08-06 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-06 11:25:05' and `end` < '2025-08-06 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-06 14:25:19] Production.INFO: count ==5081 [2025-08-06 14:25:21] Production.ERROR: pbx CDR StartTime 2025-08-06 11:25:05 - End Time 2025-08-06 14:25:05 [2025-08-06 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15607684', 'tblTempUsageDetail_20' ) start [2025-08-06 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15607684', 'tblTempUsageDetail_20' ) end [2025-08-06 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15607684', 'tblTempVendorCDR_20' ) start [2025-08-06 14:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15607684', 'tblTempVendorCDR_20' ) end [2025-08-06 14:25:22] Production.INFO: ProcessCDR(1,15607684,1,1,2) [2025-08-06 14:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15607684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15607684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15607684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 14:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15607684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15607684', 'tblTempUsageDetail_20' ) start [2025-08-06 14:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15607684', 'tblTempUsageDetail_20' ) end [2025-08-06 14:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-06 14:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-06 14:25:32] Production.INFO: ==26854== Releasing lock... [2025-08-06 14:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 14:25:32] Production.INFO: 66.25 MB #Memory Used# [2025-08-06 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 12:25:05 [end_date_ymd] => 2025-08-06 15:25:05 [RateCDR] => 1 ) [2025-08-06 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-06 12:25:05' and `end` < '2025-08-06 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-06 15:25:21] Production.INFO: count ==4896 [2025-08-06 15:25:23] Production.ERROR: pbx CDR StartTime 2025-08-06 12:25:05 - End Time 2025-08-06 15:25:05 [2025-08-06 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15607931', 'tblTempUsageDetail_20' ) start [2025-08-06 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15607931', 'tblTempUsageDetail_20' ) end [2025-08-06 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15607931', 'tblTempVendorCDR_20' ) start [2025-08-06 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15607931', 'tblTempVendorCDR_20' ) end [2025-08-06 15:25:24] Production.INFO: ProcessCDR(1,15607931,1,1,2) [2025-08-06 15:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15607931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 15:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15607931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 15:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15607931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 15:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15607931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15607931', 'tblTempUsageDetail_20' ) start [2025-08-06 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15607931', 'tblTempUsageDetail_20' ) end [2025-08-06 15:25:33] Production.ERROR: pbx prc_insertCDR start [2025-08-06 15:25:35] Production.ERROR: pbx prc_insertCDR end [2025-08-06 15:25:35] Production.INFO: ==32364== Releasing lock... [2025-08-06 15:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 15:25:35] Production.INFO: 64.75 MB #Memory Used# [2025-08-06 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 13:25:05 [end_date_ymd] => 2025-08-06 16:25:05 [RateCDR] => 1 ) [2025-08-06 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-06 13:25:05' and `end` < '2025-08-06 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-06 16:25:18] Production.INFO: count ==5084 [2025-08-06 16:25:21] Production.ERROR: pbx CDR StartTime 2025-08-06 13:25:05 - End Time 2025-08-06 16:25:05 [2025-08-06 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15608178', 'tblTempUsageDetail_20' ) start [2025-08-06 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15608178', 'tblTempUsageDetail_20' ) end [2025-08-06 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15608178', 'tblTempVendorCDR_20' ) start [2025-08-06 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15608178', 'tblTempVendorCDR_20' ) end [2025-08-06 16:25:21] Production.INFO: ProcessCDR(1,15608178,1,1,2) [2025-08-06 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15608178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15608178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15608178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 16:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15608178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15608178', 'tblTempUsageDetail_20' ) start [2025-08-06 16:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15608178', 'tblTempUsageDetail_20' ) end [2025-08-06 16:25:30] Production.ERROR: pbx prc_insertCDR start [2025-08-06 16:25:32] Production.ERROR: pbx prc_insertCDR end [2025-08-06 16:25:32] Production.INFO: ==5712== Releasing lock... [2025-08-06 16:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 16:25:32] Production.INFO: 66.25 MB #Memory Used# [2025-08-06 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 14:25:05 [end_date_ymd] => 2025-08-06 17:25:05 [RateCDR] => 1 ) [2025-08-06 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-06 14:25:05' and `end` < '2025-08-06 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-06 17:25:18] Production.INFO: count ==4856 [2025-08-06 17:25:21] Production.ERROR: pbx CDR StartTime 2025-08-06 14:25:05 - End Time 2025-08-06 17:25:05 [2025-08-06 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15608425', 'tblTempUsageDetail_20' ) start [2025-08-06 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15608425', 'tblTempUsageDetail_20' ) end [2025-08-06 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15608425', 'tblTempVendorCDR_20' ) start [2025-08-06 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15608425', 'tblTempVendorCDR_20' ) end [2025-08-06 17:25:21] Production.INFO: ProcessCDR(1,15608425,1,1,2) [2025-08-06 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15608425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15608425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15608425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 17:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15608425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15608425', 'tblTempUsageDetail_20' ) start [2025-08-06 17:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15608425', 'tblTempUsageDetail_20' ) end [2025-08-06 17:25:29] Production.ERROR: pbx prc_insertCDR start [2025-08-06 17:25:30] Production.ERROR: pbx prc_insertCDR end [2025-08-06 17:25:30] Production.INFO: ==11152== Releasing lock... [2025-08-06 17:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 17:25:30] Production.INFO: 64.5 MB #Memory Used# [2025-08-06 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 15:25:05 [end_date_ymd] => 2025-08-06 18:25:05 [RateCDR] => 1 ) [2025-08-06 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-06 15:25:05' and `end` < '2025-08-06 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-06 18:25:19] Production.INFO: count ==4050 [2025-08-06 18:25:21] Production.ERROR: pbx CDR StartTime 2025-08-06 15:25:05 - End Time 2025-08-06 18:25:05 [2025-08-06 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15608672', 'tblTempUsageDetail_20' ) start [2025-08-06 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15608672', 'tblTempUsageDetail_20' ) end [2025-08-06 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15608672', 'tblTempVendorCDR_20' ) start [2025-08-06 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15608672', 'tblTempVendorCDR_20' ) end [2025-08-06 18:25:21] Production.INFO: ProcessCDR(1,15608672,1,1,2) [2025-08-06 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15608672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15608672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15608672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15608672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15608672', 'tblTempUsageDetail_20' ) start [2025-08-06 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15608672', 'tblTempUsageDetail_20' ) end [2025-08-06 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-08-06 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-08-06 18:25:30] Production.INFO: ==16884== Releasing lock... [2025-08-06 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 18:25:30] Production.INFO: 58.5 MB #Memory Used# [2025-08-06 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 16:25:06 [end_date_ymd] => 2025-08-06 19:25:06 [RateCDR] => 1 ) [2025-08-06 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-06 16:25:06' and `end` < '2025-08-06 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-06 19:25:19] Production.INFO: count ==2904 [2025-08-06 19:25:20] Production.ERROR: pbx CDR StartTime 2025-08-06 16:25:06 - End Time 2025-08-06 19:25:06 [2025-08-06 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15608916', 'tblTempUsageDetail_20' ) start [2025-08-06 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15608916', 'tblTempUsageDetail_20' ) end [2025-08-06 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15608916', 'tblTempVendorCDR_20' ) start [2025-08-06 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15608916', 'tblTempVendorCDR_20' ) end [2025-08-06 19:25:20] Production.INFO: ProcessCDR(1,15608916,1,1,2) [2025-08-06 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15608916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15608916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15608916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 19:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15608916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 19:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15608916', 'tblTempUsageDetail_20' ) start [2025-08-06 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15608916', 'tblTempUsageDetail_20' ) end [2025-08-06 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-08-06 19:25:28] Production.ERROR: pbx prc_insertCDR end [2025-08-06 19:25:28] Production.INFO: ==22313== Releasing lock... [2025-08-06 19:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 19:25:28] Production.INFO: 49.5 MB #Memory Used# [2025-08-06 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 17:25:05 [end_date_ymd] => 2025-08-06 20:25:05 [RateCDR] => 1 ) [2025-08-06 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-06 17:25:05' and `end` < '2025-08-06 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-06 20:25:18] Production.INFO: count ==1928 [2025-08-06 20:25:18] Production.ERROR: pbx CDR StartTime 2025-08-06 17:25:05 - End Time 2025-08-06 20:25:05 [2025-08-06 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15609163', 'tblTempUsageDetail_20' ) start [2025-08-06 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15609163', 'tblTempUsageDetail_20' ) end [2025-08-06 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15609163', 'tblTempVendorCDR_20' ) start [2025-08-06 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15609163', 'tblTempVendorCDR_20' ) end [2025-08-06 20:25:18] Production.INFO: ProcessCDR(1,15609163,1,1,2) [2025-08-06 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15609163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15609163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15609163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15609163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15609163', 'tblTempUsageDetail_20' ) start [2025-08-06 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15609163', 'tblTempUsageDetail_20' ) end [2025-08-06 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-06 20:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-06 20:25:26] Production.INFO: ==27626== Releasing lock... [2025-08-06 20:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 20:25:26] Production.INFO: 42.75 MB #Memory Used# [2025-08-06 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 18:25:05 [end_date_ymd] => 2025-08-06 21:25:05 [RateCDR] => 1 ) [2025-08-06 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-06 18:25:05' and `end` < '2025-08-06 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-06 21:25:18] Production.INFO: count ==1412 [2025-08-06 21:25:18] Production.ERROR: pbx CDR StartTime 2025-08-06 18:25:05 - End Time 2025-08-06 21:25:05 [2025-08-06 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15609410', 'tblTempUsageDetail_20' ) start [2025-08-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15609410', 'tblTempUsageDetail_20' ) end [2025-08-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15609410', 'tblTempVendorCDR_20' ) start [2025-08-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15609410', 'tblTempVendorCDR_20' ) end [2025-08-06 21:25:18] Production.INFO: ProcessCDR(1,15609410,1,1,2) [2025-08-06 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15609410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15609410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15609410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15609410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15609410', 'tblTempUsageDetail_20' ) start [2025-08-06 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15609410', 'tblTempUsageDetail_20' ) end [2025-08-06 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-06 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-06 21:25:27] Production.INFO: ==610== Releasing lock... [2025-08-06 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 21:25:27] Production.INFO: 39 MB #Memory Used# [2025-08-06 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 19:25:05 [end_date_ymd] => 2025-08-06 22:25:05 [RateCDR] => 1 ) [2025-08-06 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-06 19:25:05' and `end` < '2025-08-06 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-06 22:25:17] Production.INFO: count ==1096 [2025-08-06 22:25:18] Production.ERROR: pbx CDR StartTime 2025-08-06 19:25:05 - End Time 2025-08-06 22:25:05 [2025-08-06 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15609657', 'tblTempUsageDetail_20' ) start [2025-08-06 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15609657', 'tblTempUsageDetail_20' ) end [2025-08-06 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15609657', 'tblTempVendorCDR_20' ) start [2025-08-06 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15609657', 'tblTempVendorCDR_20' ) end [2025-08-06 22:25:18] Production.INFO: ProcessCDR(1,15609657,1,1,2) [2025-08-06 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15609657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 22:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15609657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 22:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15609657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 22:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15609657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15609657', 'tblTempUsageDetail_20' ) start [2025-08-06 22:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15609657', 'tblTempUsageDetail_20' ) end [2025-08-06 22:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-06 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-06 22:25:26] Production.INFO: ==6513== Releasing lock... [2025-08-06 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 22:25:26] Production.INFO: 36.75 MB #Memory Used# [2025-08-06 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-06 20:25:05 [end_date_ymd] => 2025-08-06 23:25:05 [RateCDR] => 1 ) [2025-08-06 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-06 20:25:05' and `end` < '2025-08-06 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-06 23:25:18] Production.INFO: count ==867 [2025-08-06 23:25:18] Production.ERROR: pbx CDR StartTime 2025-08-06 20:25:05 - End Time 2025-08-06 23:25:05 [2025-08-06 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15609904', 'tblTempUsageDetail_20' ) start [2025-08-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15609904', 'tblTempUsageDetail_20' ) end [2025-08-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15609904', 'tblTempVendorCDR_20' ) start [2025-08-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15609904', 'tblTempVendorCDR_20' ) end [2025-08-06 23:25:18] Production.INFO: ProcessCDR(1,15609904,1,1,2) [2025-08-06 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15609904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 23:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15609904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-06 23:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15609904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 23:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15609904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-06 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15609904', 'tblTempUsageDetail_20' ) start [2025-08-06 23:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15609904', 'tblTempUsageDetail_20' ) end [2025-08-06 23:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-06 23:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-06 23:25:25] Production.INFO: ==13078== Releasing lock... [2025-08-06 23:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-06 23:25:25] Production.INFO: 34.75 MB #Memory Used#