[2025-08-25 00:25:04] Production.INFO: next invoice date [2025-08-25 00:25:04] Production.INFO: 2025-09-25 [2025-08-25 00:25:04] Production.INFO: getdaysdiff [2025-08-25 00:25:04] Production.INFO: +31 [2025-08-25 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (111,11,1,31,31,'RMScheduler',2025-08-25 00:25:04,1,0,,,0) [2025-08-25 00:25:04] Production.INFO: next invoice date [2025-08-25 00:25:04] Production.INFO: 2025-09-25 [2025-08-25 00:25:04] Production.INFO: getdaysdiff [2025-08-25 00:25:04] Production.INFO: +31 [2025-08-25 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (110,11,1,31,31,'RMScheduler',2025-08-25 00:25:04,1,0,,,0) [2025-08-25 00:25:04] Production.INFO: next invoice date [2025-08-25 00:25:04] Production.INFO: 2025-09-08 [2025-08-25 00:25:04] Production.INFO: getdaysdiff [2025-08-25 00:25:04] Production.INFO: +14 [2025-08-25 00:25:04] Production.INFO: call prc_setAccountDiscountPlan (241,16,1,31,14,'RMScheduler',2025-08-25 00:25:04,1,0,,,0) [2025-08-25 00:25:05] Production.INFO: next invoice date [2025-08-25 00:25:05] Production.INFO: 2025-09-08 [2025-08-25 00:25:05] Production.INFO: getdaysdiff [2025-08-25 00:25:05] Production.INFO: +14 [2025-08-25 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (241,13,2,31,14,'RMScheduler',2025-08-25 00:25:04,1,0,,,0) [2025-08-25 00:25:05] Production.INFO: next invoice date [2025-08-25 00:25:05] Production.INFO: 2025-09-08 [2025-08-25 00:25:05] Production.INFO: getdaysdiff [2025-08-25 00:25:05] Production.INFO: +14 [2025-08-25 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (241,16,1,31,14,'RMScheduler',2025-08-25 00:25:04,0,0,,,0) [2025-08-25 00:25:05] Production.INFO: next invoice date [2025-08-25 00:25:05] Production.INFO: 2025-09-08 [2025-08-25 00:25:05] Production.INFO: getdaysdiff [2025-08-25 00:25:05] Production.INFO: +14 [2025-08-25 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (241,13,2,31,14,'RMScheduler',2025-08-25 00:25:04,0,0,,,0) [2025-08-25 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 21:25:06 [end_date_ymd] => 2025-08-25 00:25:06 [RateCDR] => 1 ) [2025-08-25 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-24 21:25:06' and `end` < '2025-08-25 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-25 00:25:24] Production.INFO: count ==605 [2025-08-25 00:25:24] Production.ERROR: pbx CDR StartTime 2025-08-24 21:25:06 - End Time 2025-08-25 00:25:06 [2025-08-25 00:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 00:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15716839', 'tblTempUsageDetail_20' ) start [2025-08-25 00:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15716839', 'tblTempUsageDetail_20' ) end [2025-08-25 00:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15716839', 'tblTempVendorCDR_20' ) start [2025-08-25 00:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15716839', 'tblTempVendorCDR_20' ) end [2025-08-25 00:25:24] Production.INFO: ProcessCDR(1,15716839,1,1,2) [2025-08-25 00:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15716839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 00:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15716839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 00:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15716839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 00:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15716839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 00:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15716839', 'tblTempUsageDetail_20' ) start [2025-08-25 00:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15716839', 'tblTempUsageDetail_20' ) end [2025-08-25 00:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-25 00:25:31] Production.ERROR: pbx prc_insertCDR end [2025-08-25 00:25:32] Production.INFO: ==12777== Releasing lock... [2025-08-25 00:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 00:25:32] Production.INFO: 36 MB #Memory Used# [2025-08-25 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 22:25:05 [end_date_ymd] => 2025-08-25 01:25:05 [RateCDR] => 1 ) [2025-08-25 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-24 22:25:05' and `end` < '2025-08-25 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-25 01:25:17] Production.INFO: count ==523 [2025-08-25 01:25:17] Production.ERROR: pbx CDR StartTime 2025-08-24 22:25:05 - End Time 2025-08-25 01:25:05 [2025-08-25 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15717086', 'tblTempUsageDetail_20' ) start [2025-08-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15717086', 'tblTempUsageDetail_20' ) end [2025-08-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15717086', 'tblTempVendorCDR_20' ) start [2025-08-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15717086', 'tblTempVendorCDR_20' ) end [2025-08-25 01:25:17] Production.INFO: ProcessCDR(1,15717086,1,1,2) [2025-08-25 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15717086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15717086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15717086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15717086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15717086', 'tblTempUsageDetail_20' ) start [2025-08-25 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15717086', 'tblTempUsageDetail_20' ) end [2025-08-25 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-25 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-25 01:25:25] Production.INFO: ==18032== Releasing lock... [2025-08-25 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 01:25:25] Production.INFO: 32.5 MB #Memory Used# [2025-08-25 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-24 23:25:05 [end_date_ymd] => 2025-08-25 02:25:05 [RateCDR] => 1 ) [2025-08-25 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-24 23:25:05' and `end` < '2025-08-25 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-25 02:25:17] Production.INFO: count ==498 [2025-08-25 02:25:17] Production.ERROR: pbx CDR StartTime 2025-08-24 23:25:05 - End Time 2025-08-25 02:25:05 [2025-08-25 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15717333', 'tblTempUsageDetail_20' ) start [2025-08-25 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15717333', 'tblTempUsageDetail_20' ) end [2025-08-25 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15717333', 'tblTempVendorCDR_20' ) start [2025-08-25 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15717333', 'tblTempVendorCDR_20' ) end [2025-08-25 02:25:17] Production.INFO: ProcessCDR(1,15717333,1,1,2) [2025-08-25 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15717333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15717333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15717333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15717333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15717333', 'tblTempUsageDetail_20' ) start [2025-08-25 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15717333', 'tblTempUsageDetail_20' ) end [2025-08-25 02:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-25 02:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-25 02:25:25] Production.INFO: ==23520== Releasing lock... [2025-08-25 02:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 02:25:25] Production.INFO: 32 MB #Memory Used# [2025-08-25 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 00:25:05 [end_date_ymd] => 2025-08-25 03:25:05 [RateCDR] => 1 ) [2025-08-25 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-25 00:25:05' and `end` < '2025-08-25 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-25 03:25:17] Production.INFO: count ==410 [2025-08-25 03:25:18] Production.ERROR: pbx CDR StartTime 2025-08-25 00:25:05 - End Time 2025-08-25 03:25:05 [2025-08-25 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15717580', 'tblTempUsageDetail_20' ) start [2025-08-25 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15717580', 'tblTempUsageDetail_20' ) end [2025-08-25 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15717580', 'tblTempVendorCDR_20' ) start [2025-08-25 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15717580', 'tblTempVendorCDR_20' ) end [2025-08-25 03:25:18] Production.INFO: ProcessCDR(1,15717580,1,1,2) [2025-08-25 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15717580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15717580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15717580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 03:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15717580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15717580', 'tblTempUsageDetail_20' ) start [2025-08-25 03:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15717580', 'tblTempUsageDetail_20' ) end [2025-08-25 03:25:23] Production.ERROR: pbx prc_insertCDR start [2025-08-25 03:25:23] Production.ERROR: pbx prc_insertCDR end [2025-08-25 03:25:23] Production.INFO: ==28554== Releasing lock... [2025-08-25 03:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 03:25:23] Production.INFO: 31.5 MB #Memory Used# [2025-08-25 04:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 01:25:06 [end_date_ymd] => 2025-08-25 04:25:06 [RateCDR] => 1 ) [2025-08-25 04: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-25 01:25:06' and `end` < '2025-08-25 04: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-25 04:25:18] Production.INFO: count ==319 [2025-08-25 04:25:18] Production.ERROR: pbx CDR StartTime 2025-08-25 01:25:06 - End Time 2025-08-25 04:25:06 [2025-08-25 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15717828', 'tblTempUsageDetail_20' ) start [2025-08-25 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15717828', 'tblTempUsageDetail_20' ) end [2025-08-25 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15717828', 'tblTempVendorCDR_20' ) start [2025-08-25 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15717828', 'tblTempVendorCDR_20' ) end [2025-08-25 04:25:18] Production.INFO: ProcessCDR(1,15717828,1,1,2) [2025-08-25 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15717828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 04:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15717828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 04:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15717828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15717828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15717828', 'tblTempUsageDetail_20' ) start [2025-08-25 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15717828', 'tblTempUsageDetail_20' ) end [2025-08-25 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-25 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-25 04:25:25] Production.INFO: ==1479== Releasing lock... [2025-08-25 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 04:25:25] Production.INFO: 31.25 MB #Memory Used# [2025-08-25 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 02:25:06 [end_date_ymd] => 2025-08-25 05:25:06 [RateCDR] => 1 ) [2025-08-25 05: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-25 02:25:06' and `end` < '2025-08-25 05: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-25 05:25:18] Production.INFO: count ==220 [2025-08-25 05:25:18] Production.ERROR: pbx CDR StartTime 2025-08-25 02:25:06 - End Time 2025-08-25 05:25:06 [2025-08-25 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15718076', 'tblTempUsageDetail_20' ) start [2025-08-25 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15718076', 'tblTempUsageDetail_20' ) end [2025-08-25 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15718076', 'tblTempVendorCDR_20' ) start [2025-08-25 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15718076', 'tblTempVendorCDR_20' ) end [2025-08-25 05:25:18] Production.INFO: ProcessCDR(1,15718076,1,1,2) [2025-08-25 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15718076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 05:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15718076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 05:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15718076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 05:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15718076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 05:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15718076', 'tblTempUsageDetail_20' ) start [2025-08-25 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15718076', 'tblTempUsageDetail_20' ) end [2025-08-25 05:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-25 05:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-25 05:25:26] Production.INFO: ==6080== Releasing lock... [2025-08-25 05:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 05:25:26] Production.INFO: 30.25 MB #Memory Used# [2025-08-25 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 03:25:05 [end_date_ymd] => 2025-08-25 06:25:05 [RateCDR] => 1 ) [2025-08-25 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-25 03:25:05' and `end` < '2025-08-25 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-25 06:25:17] Production.INFO: count ==210 [2025-08-25 06:25:17] Production.ERROR: pbx CDR StartTime 2025-08-25 03:25:05 - End Time 2025-08-25 06:25:05 [2025-08-25 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15718323', 'tblTempUsageDetail_20' ) start [2025-08-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15718323', 'tblTempUsageDetail_20' ) end [2025-08-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15718323', 'tblTempVendorCDR_20' ) start [2025-08-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15718323', 'tblTempVendorCDR_20' ) end [2025-08-25 06:25:17] Production.INFO: ProcessCDR(1,15718323,1,1,2) [2025-08-25 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15718323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 06:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15718323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 06:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15718323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 06:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15718323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15718323', 'tblTempUsageDetail_20' ) start [2025-08-25 06:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15718323', 'tblTempUsageDetail_20' ) end [2025-08-25 06:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-25 06:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-25 06:25:25] Production.INFO: ==10694== Releasing lock... [2025-08-25 06:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 06:25:25] Production.INFO: 30.25 MB #Memory Used# [2025-08-25 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 04:25:05 [end_date_ymd] => 2025-08-25 07:25:05 [RateCDR] => 1 ) [2025-08-25 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-25 04:25:05' and `end` < '2025-08-25 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-25 07:25:17] Production.INFO: count ==160 [2025-08-25 07:25:17] Production.ERROR: pbx CDR StartTime 2025-08-25 04:25:05 - End Time 2025-08-25 07:25:05 [2025-08-25 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15718570', 'tblTempUsageDetail_20' ) start [2025-08-25 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15718570', 'tblTempUsageDetail_20' ) end [2025-08-25 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15718570', 'tblTempVendorCDR_20' ) start [2025-08-25 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15718570', 'tblTempVendorCDR_20' ) end [2025-08-25 07:25:17] Production.INFO: ProcessCDR(1,15718570,1,1,2) [2025-08-25 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15718570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15718570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15718570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15718570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15718570', 'tblTempUsageDetail_20' ) start [2025-08-25 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15718570', 'tblTempUsageDetail_20' ) end [2025-08-25 07:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-25 07:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-25 07:25:25] Production.INFO: ==15264== Releasing lock... [2025-08-25 07:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 07:25:25] Production.INFO: 29.5 MB #Memory Used# [2025-08-25 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 05:25:05 [end_date_ymd] => 2025-08-25 08:25:05 [RateCDR] => 1 ) [2025-08-25 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-25 05:25:05' and `end` < '2025-08-25 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-25 08:25:17] Production.INFO: count ==462 [2025-08-25 08:25:17] Production.ERROR: pbx CDR StartTime 2025-08-25 05:25:05 - End Time 2025-08-25 08:25:05 [2025-08-25 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15718817', 'tblTempUsageDetail_20' ) start [2025-08-25 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15718817', 'tblTempUsageDetail_20' ) end [2025-08-25 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15718817', 'tblTempVendorCDR_20' ) start [2025-08-25 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15718817', 'tblTempVendorCDR_20' ) end [2025-08-25 08:25:17] Production.INFO: ProcessCDR(1,15718817,1,1,2) [2025-08-25 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15718817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 08:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15718817,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 08:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15718817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 08:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15718817,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15718817', 'tblTempUsageDetail_20' ) start [2025-08-25 08:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15718817', 'tblTempUsageDetail_20' ) end [2025-08-25 08:25:25] Production.ERROR: pbx prc_insertCDR start [2025-08-25 08:25:25] Production.ERROR: pbx prc_insertCDR end [2025-08-25 08:25:25] Production.INFO: ==20097== Releasing lock... [2025-08-25 08:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 08:25:25] Production.INFO: 32.25 MB #Memory Used# [2025-08-25 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 06:25:05 [end_date_ymd] => 2025-08-25 09:25:05 [RateCDR] => 1 ) [2025-08-25 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-25 06:25:05' and `end` < '2025-08-25 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-25 09:25:18] Production.INFO: count ==1688 [2025-08-25 09:25:18] Production.ERROR: pbx CDR StartTime 2025-08-25 06:25:05 - End Time 2025-08-25 09:25:05 [2025-08-25 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15719064', 'tblTempUsageDetail_20' ) start [2025-08-25 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15719064', 'tblTempUsageDetail_20' ) end [2025-08-25 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15719064', 'tblTempVendorCDR_20' ) start [2025-08-25 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15719064', 'tblTempVendorCDR_20' ) end [2025-08-25 09:25:18] Production.INFO: ProcessCDR(1,15719064,1,1,2) [2025-08-25 09:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15719064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 09:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15719064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 09:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15719064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 09:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15719064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15719064', 'tblTempUsageDetail_20' ) start [2025-08-25 09:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15719064', 'tblTempUsageDetail_20' ) end [2025-08-25 09:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-25 09:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-25 09:25:27] Production.INFO: ==24420== Releasing lock... [2025-08-25 09:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 09:25:27] Production.INFO: 41 MB #Memory Used# [2025-08-25 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 07:25:05 [end_date_ymd] => 2025-08-25 10:25:05 [RateCDR] => 1 ) [2025-08-25 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-25 07:25:05' and `end` < '2025-08-25 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-25 10:25:21] Production.INFO: count ==3647 [2025-08-25 10:25:22] Production.ERROR: pbx CDR StartTime 2025-08-25 07:25:05 - End Time 2025-08-25 10:25:05 [2025-08-25 10:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 10:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15719311', 'tblTempUsageDetail_20' ) start [2025-08-25 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15719311', 'tblTempUsageDetail_20' ) end [2025-08-25 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15719311', 'tblTempVendorCDR_20' ) start [2025-08-25 10:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15719311', 'tblTempVendorCDR_20' ) end [2025-08-25 10:25:23] Production.INFO: ProcessCDR(1,15719311,1,1,2) [2025-08-25 10:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15719311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 10:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15719311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 10:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15719311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 10:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15719311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15719311', 'tblTempUsageDetail_20' ) start [2025-08-25 10:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15719311', 'tblTempUsageDetail_20' ) end [2025-08-25 10:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-25 10:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-25 10:25:33] Production.INFO: ==28764== Releasing lock... [2025-08-25 10:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 10:25:33] Production.INFO: 55.25 MB #Memory Used# [2025-08-25 11:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 08:25:06 [end_date_ymd] => 2025-08-25 11:25:06 [RateCDR] => 1 ) [2025-08-25 11:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-25 08:25:06' and `end` < '2025-08-25 11:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-25 11:25:20] Production.INFO: count ==5504 [2025-08-25 11:25:22] Production.ERROR: pbx CDR StartTime 2025-08-25 08:25:06 - End Time 2025-08-25 11:25:06 [2025-08-25 11:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 11:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15719558', 'tblTempUsageDetail_20' ) start [2025-08-25 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15719558', 'tblTempUsageDetail_20' ) end [2025-08-25 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15719558', 'tblTempVendorCDR_20' ) start [2025-08-25 11:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15719558', 'tblTempVendorCDR_20' ) end [2025-08-25 11:25:23] Production.INFO: ProcessCDR(1,15719558,1,1,2) [2025-08-25 11:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15719558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 11:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15719558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 11:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15719558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15719558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15719558', 'tblTempUsageDetail_20' ) start [2025-08-25 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15719558', 'tblTempUsageDetail_20' ) end [2025-08-25 11:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-25 11:25:35] Production.ERROR: pbx prc_insertCDR end [2025-08-25 11:25:35] Production.INFO: ==1095== Releasing lock... [2025-08-25 11:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 11:25:35] Production.INFO: 69.5 MB #Memory Used# [2025-08-25 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 09:25:05 [end_date_ymd] => 2025-08-25 12:25:05 [RateCDR] => 1 ) [2025-08-25 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-25 09:25:05' and `end` < '2025-08-25 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-25 12:25:22] Production.INFO: count ==6329 [2025-08-25 12:25:25] Production.ERROR: pbx CDR StartTime 2025-08-25 09:25:05 - End Time 2025-08-25 12:25:05 [2025-08-25 12:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 12:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15719805', 'tblTempUsageDetail_20' ) start [2025-08-25 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15719805', 'tblTempUsageDetail_20' ) end [2025-08-25 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15719805', 'tblTempVendorCDR_20' ) start [2025-08-25 12:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15719805', 'tblTempVendorCDR_20' ) end [2025-08-25 12:25:26] Production.INFO: ProcessCDR(1,15719805,1,1,2) [2025-08-25 12:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15719805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 12:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15719805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 12:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15719805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 12:25:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15719805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 12:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15719805', 'tblTempUsageDetail_20' ) start [2025-08-25 12:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15719805', 'tblTempUsageDetail_20' ) end [2025-08-25 12:25:35] Production.ERROR: pbx prc_insertCDR start [2025-08-25 12:25:38] Production.ERROR: pbx prc_insertCDR end [2025-08-25 12:25:38] Production.INFO: ==5752== Releasing lock... [2025-08-25 12:25:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 12:25:38] Production.INFO: 75.75 MB #Memory Used# [2025-08-25 13:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 10:25:04 [end_date_ymd] => 2025-08-25 13:25:04 [RateCDR] => 1 ) [2025-08-25 13: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-25 10:25:04' and `end` < '2025-08-25 13: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-25 13:25:18] Production.INFO: count ==6257 [2025-08-25 13:25:21] Production.ERROR: pbx CDR StartTime 2025-08-25 10:25:04 - End Time 2025-08-25 13:25:04 [2025-08-25 13:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15720052', 'tblTempUsageDetail_20' ) start [2025-08-25 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15720052', 'tblTempUsageDetail_20' ) end [2025-08-25 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15720052', 'tblTempVendorCDR_20' ) start [2025-08-25 13:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15720052', 'tblTempVendorCDR_20' ) end [2025-08-25 13:25:22] Production.INFO: ProcessCDR(1,15720052,1,1,2) [2025-08-25 13:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15720052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 13:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15720052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 13:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15720052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 13:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15720052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15720052', 'tblTempUsageDetail_20' ) start [2025-08-25 13:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15720052', 'tblTempUsageDetail_20' ) end [2025-08-25 13:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-25 13:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-25 13:25:33] Production.INFO: ==10226== Releasing lock... [2025-08-25 13:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 13:25:33] Production.INFO: 75 MB #Memory Used# [2025-08-25 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 11:25:05 [end_date_ymd] => 2025-08-25 14:25:05 [RateCDR] => 1 ) [2025-08-25 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-25 11:25:05' and `end` < '2025-08-25 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-25 14:25:21] Production.INFO: count ==6012 [2025-08-25 14:25:24] Production.ERROR: pbx CDR StartTime 2025-08-25 11:25:05 - End Time 2025-08-25 14:25:05 [2025-08-25 14:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15720299', 'tblTempUsageDetail_20' ) start [2025-08-25 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15720299', 'tblTempUsageDetail_20' ) end [2025-08-25 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15720299', 'tblTempVendorCDR_20' ) start [2025-08-25 14:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15720299', 'tblTempVendorCDR_20' ) end [2025-08-25 14:25:24] Production.INFO: ProcessCDR(1,15720299,1,1,2) [2025-08-25 14:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15720299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 14:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15720299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 14:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15720299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 14:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15720299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15720299', 'tblTempUsageDetail_20' ) start [2025-08-25 14:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15720299', 'tblTempUsageDetail_20' ) end [2025-08-25 14:25:33] Production.ERROR: pbx prc_insertCDR start [2025-08-25 14:25:36] Production.ERROR: pbx prc_insertCDR end [2025-08-25 14:25:36] Production.INFO: ==14786== Releasing lock... [2025-08-25 14:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 14:25:36] Production.INFO: 73.25 MB #Memory Used# [2025-08-25 15:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 12:25:06 [end_date_ymd] => 2025-08-25 15:25:06 [RateCDR] => 1 ) [2025-08-25 15:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-25 12:25:06' and `end` < '2025-08-25 15: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-25 15:25:21] Production.INFO: count ==5482 [2025-08-25 15:25:24] Production.ERROR: pbx CDR StartTime 2025-08-25 12:25:06 - End Time 2025-08-25 15:25:06 [2025-08-25 15:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15720546', 'tblTempUsageDetail_20' ) start [2025-08-25 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15720546', 'tblTempUsageDetail_20' ) end [2025-08-25 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15720546', 'tblTempVendorCDR_20' ) start [2025-08-25 15:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15720546', 'tblTempVendorCDR_20' ) end [2025-08-25 15:25:24] Production.INFO: ProcessCDR(1,15720546,1,1,2) [2025-08-25 15:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15720546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 15:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15720546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 15:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15720546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 15:25:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15720546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15720546', 'tblTempUsageDetail_20' ) start [2025-08-25 15:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15720546', 'tblTempUsageDetail_20' ) end [2025-08-25 15:25:34] Production.ERROR: pbx prc_insertCDR start [2025-08-25 15:25:36] Production.ERROR: pbx prc_insertCDR end [2025-08-25 15:25:36] Production.INFO: ==19381== Releasing lock... [2025-08-25 15:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 15:25:36] Production.INFO: 69.25 MB #Memory Used# [2025-08-25 16:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 13:25:06 [end_date_ymd] => 2025-08-25 16:25:06 [RateCDR] => 1 ) [2025-08-25 16:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-25 13:25:06' and `end` < '2025-08-25 16: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-25 16:25:19] Production.INFO: count ==5159 [2025-08-25 16:25:22] Production.ERROR: pbx CDR StartTime 2025-08-25 13:25:06 - End Time 2025-08-25 16:25:06 [2025-08-25 16:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15720793', 'tblTempUsageDetail_20' ) start [2025-08-25 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15720793', 'tblTempUsageDetail_20' ) end [2025-08-25 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15720793', 'tblTempVendorCDR_20' ) start [2025-08-25 16:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15720793', 'tblTempVendorCDR_20' ) end [2025-08-25 16:25:22] Production.INFO: ProcessCDR(1,15720793,1,1,2) [2025-08-25 16:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15720793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 16:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15720793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 16:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15720793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15720793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15720793', 'tblTempUsageDetail_20' ) start [2025-08-25 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15720793', 'tblTempUsageDetail_20' ) end [2025-08-25 16:25:31] Production.ERROR: pbx prc_insertCDR start [2025-08-25 16:25:33] Production.ERROR: pbx prc_insertCDR end [2025-08-25 16:25:33] Production.INFO: ==24085== Releasing lock... [2025-08-25 16:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 16:25:33] Production.INFO: 66.75 MB #Memory Used# [2025-08-25 17:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 14:25:04 [end_date_ymd] => 2025-08-25 17:25:04 [RateCDR] => 1 ) [2025-08-25 17: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-25 14:25:04' and `end` < '2025-08-25 17: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-25 17:25:20] Production.INFO: count ==4607 [2025-08-25 17:25:22] Production.ERROR: pbx CDR StartTime 2025-08-25 14:25:04 - End Time 2025-08-25 17:25:04 [2025-08-25 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15721040', 'tblTempUsageDetail_20' ) start [2025-08-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15721040', 'tblTempUsageDetail_20' ) end [2025-08-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15721040', 'tblTempVendorCDR_20' ) start [2025-08-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15721040', 'tblTempVendorCDR_20' ) end [2025-08-25 17:25:22] Production.INFO: ProcessCDR(1,15721040,1,1,2) [2025-08-25 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15721040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15721040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15721040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 17:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15721040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 17:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15721040', 'tblTempUsageDetail_20' ) start [2025-08-25 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15721040', 'tblTempUsageDetail_20' ) end [2025-08-25 17:25:32] Production.ERROR: pbx prc_insertCDR start [2025-08-25 17:25:34] Production.ERROR: pbx prc_insertCDR end [2025-08-25 17:25:34] Production.INFO: ==28704== Releasing lock... [2025-08-25 17:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 17:25:34] Production.INFO: 62.75 MB #Memory Used# [2025-08-25 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 15:25:06 [end_date_ymd] => 2025-08-25 18:25:06 [RateCDR] => 1 ) [2025-08-25 18: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-25 15:25:06' and `end` < '2025-08-25 18: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-25 18:25:18] Production.INFO: count ==3843 [2025-08-25 18:25:20] Production.ERROR: pbx CDR StartTime 2025-08-25 15:25:06 - End Time 2025-08-25 18:25:06 [2025-08-25 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15721287', 'tblTempUsageDetail_20' ) start [2025-08-25 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15721287', 'tblTempUsageDetail_20' ) end [2025-08-25 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15721287', 'tblTempVendorCDR_20' ) start [2025-08-25 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15721287', 'tblTempVendorCDR_20' ) end [2025-08-25 18:25:21] Production.INFO: ProcessCDR(1,15721287,1,1,2) [2025-08-25 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15721287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 18:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15721287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 18:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15721287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15721287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15721287', 'tblTempUsageDetail_20' ) start [2025-08-25 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15721287', 'tblTempUsageDetail_20' ) end [2025-08-25 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-08-25 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-08-25 18:25:30] Production.INFO: ==1012== Releasing lock... [2025-08-25 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 18:25:30] Production.INFO: 57 MB #Memory Used# [2025-08-25 19:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 16:25:06 [end_date_ymd] => 2025-08-25 19:25:06 [RateCDR] => 1 ) [2025-08-25 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-25 16:25:06' and `end` < '2025-08-25 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-25 19:25:18] Production.INFO: count ==2842 [2025-08-25 19:25:20] Production.ERROR: pbx CDR StartTime 2025-08-25 16:25:06 - End Time 2025-08-25 19:25:06 [2025-08-25 19:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15721531', 'tblTempUsageDetail_20' ) start [2025-08-25 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15721531', 'tblTempUsageDetail_20' ) end [2025-08-25 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15721531', 'tblTempVendorCDR_20' ) start [2025-08-25 19:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15721531', 'tblTempVendorCDR_20' ) end [2025-08-25 19:25:20] Production.INFO: ProcessCDR(1,15721531,1,1,2) [2025-08-25 19:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15721531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 19:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15721531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 19:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15721531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15721531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15721531', 'tblTempUsageDetail_20' ) start [2025-08-25 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15721531', 'tblTempUsageDetail_20' ) end [2025-08-25 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-08-25 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-08-25 19:25:29] Production.INFO: ==5637== Releasing lock... [2025-08-25 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 19:25:29] Production.INFO: 49.75 MB #Memory Used# [2025-08-25 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 17:25:05 [end_date_ymd] => 2025-08-25 20:25:05 [RateCDR] => 1 ) [2025-08-25 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-25 17:25:05' and `end` < '2025-08-25 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-25 20:25:18] Production.INFO: count ==1857 [2025-08-25 20:25:18] Production.ERROR: pbx CDR StartTime 2025-08-25 17:25:05 - End Time 2025-08-25 20:25:05 [2025-08-25 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15721778', 'tblTempUsageDetail_20' ) start [2025-08-25 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15721778', 'tblTempUsageDetail_20' ) end [2025-08-25 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15721778', 'tblTempVendorCDR_20' ) start [2025-08-25 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15721778', 'tblTempVendorCDR_20' ) end [2025-08-25 20:25:18] Production.INFO: ProcessCDR(1,15721778,1,1,2) [2025-08-25 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15721778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15721778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15721778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 20:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15721778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15721778', 'tblTempUsageDetail_20' ) start [2025-08-25 20:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15721778', 'tblTempUsageDetail_20' ) end [2025-08-25 20:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-25 20:25:27] Production.ERROR: pbx prc_insertCDR end [2025-08-25 20:25:27] Production.INFO: ==10177== Releasing lock... [2025-08-25 20:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 20:25:27] Production.INFO: 42.25 MB #Memory Used# [2025-08-25 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 18:25:05 [end_date_ymd] => 2025-08-25 21:25:05 [RateCDR] => 1 ) [2025-08-25 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-25 18:25:05' and `end` < '2025-08-25 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-25 21:25:18] Production.INFO: count ==1407 [2025-08-25 21:25:18] Production.ERROR: pbx CDR StartTime 2025-08-25 18:25:05 - End Time 2025-08-25 21:25:05 [2025-08-25 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15722025', 'tblTempUsageDetail_20' ) start [2025-08-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15722025', 'tblTempUsageDetail_20' ) end [2025-08-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15722025', 'tblTempVendorCDR_20' ) start [2025-08-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15722025', 'tblTempVendorCDR_20' ) end [2025-08-25 21:25:18] Production.INFO: ProcessCDR(1,15722025,1,1,2) [2025-08-25 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15722025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15722025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15722025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15722025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15722025', 'tblTempUsageDetail_20' ) start [2025-08-25 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15722025', 'tblTempUsageDetail_20' ) end [2025-08-25 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-25 21:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-25 21:25:26] Production.INFO: ==15033== Releasing lock... [2025-08-25 21:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 21:25:26] Production.INFO: 38.75 MB #Memory Used# [2025-08-25 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 19:25:05 [end_date_ymd] => 2025-08-25 22:25:05 [RateCDR] => 1 ) [2025-08-25 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-25 19:25:05' and `end` < '2025-08-25 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-25 22:25:18] Production.INFO: count ==1048 [2025-08-25 22:25:18] Production.ERROR: pbx CDR StartTime 2025-08-25 19:25:05 - End Time 2025-08-25 22:25:05 [2025-08-25 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15722272', 'tblTempUsageDetail_20' ) start [2025-08-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15722272', 'tblTempUsageDetail_20' ) end [2025-08-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15722272', 'tblTempVendorCDR_20' ) start [2025-08-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15722272', 'tblTempVendorCDR_20' ) end [2025-08-25 22:25:18] Production.INFO: ProcessCDR(1,15722272,1,1,2) [2025-08-25 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15722272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15722272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15722272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15722272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15722272', 'tblTempUsageDetail_20' ) start [2025-08-25 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15722272', 'tblTempUsageDetail_20' ) end [2025-08-25 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-25 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-25 22:25:26] Production.INFO: ==19936== Releasing lock... [2025-08-25 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 22:25:26] Production.INFO: 36.25 MB #Memory Used# [2025-08-25 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-08-25 20:25:06 [end_date_ymd] => 2025-08-25 23:25:06 [RateCDR] => 1 ) [2025-08-25 23:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-08-25 20:25:06' and `end` < '2025-08-25 23:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-08-25 23:25:18] Production.INFO: count ==829 [2025-08-25 23:25:18] Production.ERROR: pbx CDR StartTime 2025-08-25 20:25:06 - End Time 2025-08-25 23:25:06 [2025-08-25 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-08-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15722519', 'tblTempUsageDetail_20' ) start [2025-08-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15722519', 'tblTempUsageDetail_20' ) end [2025-08-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15722519', 'tblTempVendorCDR_20' ) start [2025-08-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15722519', 'tblTempVendorCDR_20' ) end [2025-08-25 23:25:18] Production.INFO: ProcessCDR(1,15722519,1,1,2) [2025-08-25 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15722519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15722519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-08-25 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15722519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 23:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15722519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-08-25 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15722519', 'tblTempUsageDetail_20' ) start [2025-08-25 23:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15722519', 'tblTempUsageDetail_20' ) end [2025-08-25 23:25:26] Production.ERROR: pbx prc_insertCDR start [2025-08-25 23:25:26] Production.ERROR: pbx prc_insertCDR end [2025-08-25 23:25:26] Production.INFO: ==24430== Releasing lock... [2025-08-25 23:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-08-25 23:25:26] Production.INFO: 35 MB #Memory Used#