[2025-09-25 00:25:05] Production.INFO: next invoice date [2025-09-25 00:25:05] Production.INFO: 2025-10-25 [2025-09-25 00:25:05] Production.INFO: getdaysdiff [2025-09-25 00:25:05] Production.INFO: +30 [2025-09-25 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (111,11,1,30,30,'RMScheduler',2025-09-25 00:25:05,1,0,,,0) [2025-09-25 00:25:05] Production.INFO: next invoice date [2025-09-25 00:25:05] Production.INFO: 2025-10-25 [2025-09-25 00:25:05] Production.INFO: getdaysdiff [2025-09-25 00:25:05] Production.INFO: +30 [2025-09-25 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (110,11,1,30,30,'RMScheduler',2025-09-25 00:25:05,1,0,,,0) [2025-09-25 00:25:05] Production.INFO: next invoice date [2025-09-25 00:25:05] Production.INFO: 2025-10-08 [2025-09-25 00:25:05] Production.INFO: getdaysdiff [2025-09-25 00:25:05] Production.INFO: +13 [2025-09-25 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (241,16,1,30,13,'RMScheduler',2025-09-25 00:25:05,1,0,,,0) [2025-09-25 00:25:05] Production.INFO: next invoice date [2025-09-25 00:25:05] Production.INFO: 2025-10-08 [2025-09-25 00:25:05] Production.INFO: getdaysdiff [2025-09-25 00:25:05] Production.INFO: +13 [2025-09-25 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (241,13,2,30,13,'RMScheduler',2025-09-25 00:25:05,1,0,,,0) [2025-09-25 00:25:05] Production.INFO: next invoice date [2025-09-25 00:25:05] Production.INFO: 2025-10-08 [2025-09-25 00:25:05] Production.INFO: getdaysdiff [2025-09-25 00:25:05] Production.INFO: +13 [2025-09-25 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (241,16,1,30,13,'RMScheduler',2025-09-25 00:25:05,0,0,,,0) [2025-09-25 00:25:05] Production.INFO: next invoice date [2025-09-25 00:25:05] Production.INFO: 2025-10-08 [2025-09-25 00:25:05] Production.INFO: getdaysdiff [2025-09-25 00:25:05] Production.INFO: +13 [2025-09-25 00:25:05] Production.INFO: call prc_setAccountDiscountPlan (241,13,2,30,13,'RMScheduler',2025-09-25 00:25:05,0,0,,,0) [2025-09-25 00:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 21:25:06 [end_date_ymd] => 2025-09-25 00:25:06 [RateCDR] => 1 ) [2025-09-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-09-24 21:25:06' and `end` < '2025-09-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-09-25 00:25:19] Production.INFO: count ==446 [2025-09-25 00:25:19] Production.ERROR: pbx CDR StartTime 2025-09-24 21:25:06 - End Time 2025-09-25 00:25:06 [2025-09-25 00:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 00:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15900587', 'tblTempUsageDetail_20' ) start [2025-09-25 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15900587', 'tblTempUsageDetail_20' ) end [2025-09-25 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15900587', 'tblTempVendorCDR_20' ) start [2025-09-25 00:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15900587', 'tblTempVendorCDR_20' ) end [2025-09-25 00:25:20] Production.INFO: ProcessCDR(1,15900587,1,1,2) [2025-09-25 00:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15900587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 00:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15900587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 00:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15900587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 00:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15900587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 00:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15900587', 'tblTempUsageDetail_20' ) start [2025-09-25 00:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15900587', 'tblTempUsageDetail_20' ) end [2025-09-25 00:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-25 00:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-25 00:25:34] Production.INFO: ==13239== Releasing lock... [2025-09-25 00:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 00:25:34] Production.INFO: 35.75 MB #Memory Used# [2025-09-25 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 22:25:05 [end_date_ymd] => 2025-09-25 01:25:05 [RateCDR] => 1 ) [2025-09-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-09-24 22:25:05' and `end` < '2025-09-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-09-25 01:25:17] Production.INFO: count ==453 [2025-09-25 01:25:17] Production.ERROR: pbx CDR StartTime 2025-09-24 22:25:05 - End Time 2025-09-25 01:25:05 [2025-09-25 01:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15900834', 'tblTempUsageDetail_20' ) start [2025-09-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15900834', 'tblTempUsageDetail_20' ) end [2025-09-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15900834', 'tblTempVendorCDR_20' ) start [2025-09-25 01:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15900834', 'tblTempVendorCDR_20' ) end [2025-09-25 01:25:17] Production.INFO: ProcessCDR(1,15900834,1,1,2) [2025-09-25 01:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15900834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 01:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15900834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 01:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15900834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 01:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15900834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15900834', 'tblTempUsageDetail_20' ) start [2025-09-25 01:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15900834', 'tblTempUsageDetail_20' ) end [2025-09-25 01:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-25 01:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-25 01:25:25] Production.INFO: ==18197== Releasing lock... [2025-09-25 01:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 01:25:25] Production.INFO: 31.5 MB #Memory Used# [2025-09-25 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-24 23:25:05 [end_date_ymd] => 2025-09-25 02:25:05 [RateCDR] => 1 ) [2025-09-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-09-24 23:25:05' and `end` < '2025-09-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-09-25 02:25:17] Production.INFO: count ==392 [2025-09-25 02:25:17] Production.ERROR: pbx CDR StartTime 2025-09-24 23:25:05 - End Time 2025-09-25 02:25:05 [2025-09-25 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15901081', 'tblTempUsageDetail_20' ) start [2025-09-25 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15901081', 'tblTempUsageDetail_20' ) end [2025-09-25 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15901081', 'tblTempVendorCDR_20' ) start [2025-09-25 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15901081', 'tblTempVendorCDR_20' ) end [2025-09-25 02:25:17] Production.INFO: ProcessCDR(1,15901081,1,1,2) [2025-09-25 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15901081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 02:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15901081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 02:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15901081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 02:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15901081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 02:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15901081', 'tblTempUsageDetail_20' ) start [2025-09-25 02:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15901081', 'tblTempUsageDetail_20' ) end [2025-09-25 02:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-25 02:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-25 02:25:26] Production.INFO: ==23213== Releasing lock... [2025-09-25 02:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 02:25:26] Production.INFO: 31.25 MB #Memory Used# [2025-09-25 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 00:25:05 [end_date_ymd] => 2025-09-25 03:25:05 [RateCDR] => 1 ) [2025-09-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-09-25 00:25:05' and `end` < '2025-09-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-09-25 03:25:17] Production.INFO: count ==335 [2025-09-25 03:25:17] Production.ERROR: pbx CDR StartTime 2025-09-25 00:25:05 - End Time 2025-09-25 03:25:05 [2025-09-25 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15901328', 'tblTempUsageDetail_20' ) start [2025-09-25 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15901328', 'tblTempUsageDetail_20' ) end [2025-09-25 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15901328', 'tblTempVendorCDR_20' ) start [2025-09-25 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15901328', 'tblTempVendorCDR_20' ) end [2025-09-25 03:25:17] Production.INFO: ProcessCDR(1,15901328,1,1,2) [2025-09-25 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15901328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 03:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15901328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 03:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15901328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 03:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15901328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15901328', 'tblTempUsageDetail_20' ) start [2025-09-25 03:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15901328', 'tblTempUsageDetail_20' ) end [2025-09-25 03:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-25 03:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-25 03:25:25] Production.INFO: ==28147== Releasing lock... [2025-09-25 03:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 03:25:25] Production.INFO: 31 MB #Memory Used# [2025-09-25 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 01:25:05 [end_date_ymd] => 2025-09-25 04:25:05 [RateCDR] => 1 ) [2025-09-25 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-25 01:25:05' and `end` < '2025-09-25 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-25 04:25:17] Production.INFO: count ==227 [2025-09-25 04:25:17] Production.ERROR: pbx CDR StartTime 2025-09-25 01:25:05 - End Time 2025-09-25 04:25:05 [2025-09-25 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15901576', 'tblTempUsageDetail_20' ) start [2025-09-25 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15901576', 'tblTempUsageDetail_20' ) end [2025-09-25 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15901576', 'tblTempVendorCDR_20' ) start [2025-09-25 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15901576', 'tblTempVendorCDR_20' ) end [2025-09-25 04:25:17] Production.INFO: ProcessCDR(1,15901576,1,1,2) [2025-09-25 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15901576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 04:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15901576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 04:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15901576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 04:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15901576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15901576', 'tblTempUsageDetail_20' ) start [2025-09-25 04:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15901576', 'tblTempUsageDetail_20' ) end [2025-09-25 04:25:25] Production.ERROR: pbx prc_insertCDR start [2025-09-25 04:25:25] Production.ERROR: pbx prc_insertCDR end [2025-09-25 04:25:25] Production.INFO: ==709== Releasing lock... [2025-09-25 04:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 04:25:25] Production.INFO: 30.25 MB #Memory Used# [2025-09-25 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 02:25:06 [end_date_ymd] => 2025-09-25 05:25:06 [RateCDR] => 1 ) [2025-09-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-09-25 02:25:06' and `end` < '2025-09-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-09-25 05:25:18] Production.INFO: count ==155 [2025-09-25 05:25:18] Production.ERROR: pbx CDR StartTime 2025-09-25 02:25:06 - End Time 2025-09-25 05:25:06 [2025-09-25 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15901824', 'tblTempUsageDetail_20' ) start [2025-09-25 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15901824', 'tblTempUsageDetail_20' ) end [2025-09-25 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15901824', 'tblTempVendorCDR_20' ) start [2025-09-25 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15901824', 'tblTempVendorCDR_20' ) end [2025-09-25 05:25:18] Production.INFO: ProcessCDR(1,15901824,1,1,2) [2025-09-25 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15901824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 05:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15901824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 05:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15901824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 05:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15901824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15901824', 'tblTempUsageDetail_20' ) start [2025-09-25 05:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15901824', 'tblTempUsageDetail_20' ) end [2025-09-25 05:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-25 05:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-25 05:25:26] Production.INFO: ==5684== Releasing lock... [2025-09-25 05:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 05:25:26] Production.INFO: 29.5 MB #Memory Used# [2025-09-25 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 03:25:05 [end_date_ymd] => 2025-09-25 06:25:05 [RateCDR] => 1 ) [2025-09-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-09-25 03:25:05' and `end` < '2025-09-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-09-25 06:25:17] Production.INFO: count ==121 [2025-09-25 06:25:17] Production.ERROR: pbx CDR StartTime 2025-09-25 03:25:05 - End Time 2025-09-25 06:25:05 [2025-09-25 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15902071', 'tblTempUsageDetail_20' ) start [2025-09-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15902071', 'tblTempUsageDetail_20' ) end [2025-09-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15902071', 'tblTempVendorCDR_20' ) start [2025-09-25 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15902071', 'tblTempVendorCDR_20' ) end [2025-09-25 06:25:17] Production.INFO: ProcessCDR(1,15902071,1,1,2) [2025-09-25 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15902071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15902071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15902071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 06:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15902071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15902071', 'tblTempUsageDetail_20' ) start [2025-09-25 06:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15902071', 'tblTempUsageDetail_20' ) end [2025-09-25 06:25:23] Production.ERROR: pbx prc_insertCDR start [2025-09-25 06:25:23] Production.ERROR: pbx prc_insertCDR end [2025-09-25 06:25:23] Production.INFO: ==10711== Releasing lock... [2025-09-25 06:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 06:25:23] Production.INFO: 29 MB #Memory Used# [2025-09-25 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 04:25:05 [end_date_ymd] => 2025-09-25 07:25:05 [RateCDR] => 1 ) [2025-09-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-09-25 04:25:05' and `end` < '2025-09-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-09-25 07:25:17] Production.INFO: count ==129 [2025-09-25 07:25:17] Production.ERROR: pbx CDR StartTime 2025-09-25 04:25:05 - End Time 2025-09-25 07:25:05 [2025-09-25 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15902318', 'tblTempUsageDetail_20' ) start [2025-09-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15902318', 'tblTempUsageDetail_20' ) end [2025-09-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15902318', 'tblTempVendorCDR_20' ) start [2025-09-25 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15902318', 'tblTempVendorCDR_20' ) end [2025-09-25 07:25:18] Production.INFO: ProcessCDR(1,15902318,1,1,2) [2025-09-25 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15902318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 07:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15902318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 07:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15902318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 07:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15902318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 07:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15902318', 'tblTempUsageDetail_20' ) start [2025-09-25 07:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15902318', 'tblTempUsageDetail_20' ) end [2025-09-25 07:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-25 07:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-25 07:25:26] Production.INFO: ==16522== Releasing lock... [2025-09-25 07:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 07:25:26] Production.INFO: 29.25 MB #Memory Used# [2025-09-25 08:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 05:25:06 [end_date_ymd] => 2025-09-25 08:25:06 [RateCDR] => 1 ) [2025-09-25 08:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-25 05:25:06' and `end` < '2025-09-25 08:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-25 08:25:18] Production.INFO: count ==405 [2025-09-25 08:25:18] Production.ERROR: pbx CDR StartTime 2025-09-25 05:25:06 - End Time 2025-09-25 08:25:06 [2025-09-25 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15902565', 'tblTempUsageDetail_20' ) start [2025-09-25 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15902565', 'tblTempUsageDetail_20' ) end [2025-09-25 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15902565', 'tblTempVendorCDR_20' ) start [2025-09-25 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15902565', 'tblTempVendorCDR_20' ) end [2025-09-25 08:25:18] Production.INFO: ProcessCDR(1,15902565,1,1,2) [2025-09-25 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15902565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 08:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15902565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 08:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15902565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 08:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15902565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15902565', 'tblTempUsageDetail_20' ) start [2025-09-25 08:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15902565', 'tblTempUsageDetail_20' ) end [2025-09-25 08:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-25 08:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-25 08:25:26] Production.INFO: ==21554== Releasing lock... [2025-09-25 08:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 08:25:26] Production.INFO: 31.5 MB #Memory Used# [2025-09-25 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 06:25:05 [end_date_ymd] => 2025-09-25 09:25:05 [RateCDR] => 1 ) [2025-09-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-09-25 06:25:05' and `end` < '2025-09-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-09-25 09:25:18] Production.INFO: count ==1420 [2025-09-25 09:25:18] Production.ERROR: pbx CDR StartTime 2025-09-25 06:25:05 - End Time 2025-09-25 09:25:05 [2025-09-25 09:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 09:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15902812', 'tblTempUsageDetail_20' ) start [2025-09-25 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15902812', 'tblTempUsageDetail_20' ) end [2025-09-25 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15902812', 'tblTempVendorCDR_20' ) start [2025-09-25 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15902812', 'tblTempVendorCDR_20' ) end [2025-09-25 09:25:19] Production.INFO: ProcessCDR(1,15902812,1,1,2) [2025-09-25 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15902812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 09:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15902812,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 09:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15902812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 09:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15902812,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15902812', 'tblTempUsageDetail_20' ) start [2025-09-25 09:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15902812', 'tblTempUsageDetail_20' ) end [2025-09-25 09:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-25 09:25:28] Production.ERROR: pbx prc_insertCDR end [2025-09-25 09:25:28] Production.INFO: ==26385== Releasing lock... [2025-09-25 09:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 09:25:28] Production.INFO: 38.75 MB #Memory Used# [2025-09-25 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 07:25:05 [end_date_ymd] => 2025-09-25 10:25:05 [RateCDR] => 1 ) [2025-09-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-09-25 07:25:05' and `end` < '2025-09-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-09-25 10:25:18] Production.INFO: count ==2895 [2025-09-25 10:25:19] Production.ERROR: pbx CDR StartTime 2025-09-25 07:25:05 - End Time 2025-09-25 10:25:05 [2025-09-25 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15903059', 'tblTempUsageDetail_20' ) start [2025-09-25 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15903059', 'tblTempUsageDetail_20' ) end [2025-09-25 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15903059', 'tblTempVendorCDR_20' ) start [2025-09-25 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15903059', 'tblTempVendorCDR_20' ) end [2025-09-25 10:25:19] Production.INFO: ProcessCDR(1,15903059,1,1,2) [2025-09-25 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15903059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 10:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15903059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 10:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15903059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 10:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15903059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15903059', 'tblTempUsageDetail_20' ) start [2025-09-25 10:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15903059', 'tblTempUsageDetail_20' ) end [2025-09-25 10:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-25 10:25:32] Production.ERROR: pbx prc_insertCDR end [2025-09-25 10:25:32] Production.INFO: ==31509== Releasing lock... [2025-09-25 10:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 10:25:32] Production.INFO: 50 MB #Memory Used# [2025-09-25 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 08:25:05 [end_date_ymd] => 2025-09-25 11:25:05 [RateCDR] => 1 ) [2025-09-25 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-09-25 08:25:05' and `end` < '2025-09-25 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-09-25 11:25:19] Production.INFO: count ==4499 [2025-09-25 11:25:21] Production.ERROR: pbx CDR StartTime 2025-09-25 08:25:05 - End Time 2025-09-25 11:25:05 [2025-09-25 11:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15903306', 'tblTempUsageDetail_20' ) start [2025-09-25 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15903306', 'tblTempUsageDetail_20' ) end [2025-09-25 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15903306', 'tblTempVendorCDR_20' ) start [2025-09-25 11:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15903306', 'tblTempVendorCDR_20' ) end [2025-09-25 11:25:21] Production.INFO: ProcessCDR(1,15903306,1,1,2) [2025-09-25 11:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15903306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 11:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15903306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 11:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15903306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 11:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15903306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15903306', 'tblTempUsageDetail_20' ) start [2025-09-25 11:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15903306', 'tblTempUsageDetail_20' ) end [2025-09-25 11:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-25 11:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-25 11:25:34] Production.INFO: ==4520== Releasing lock... [2025-09-25 11:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 11:25:34] Production.INFO: 61.75 MB #Memory Used# [2025-09-25 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 09:25:05 [end_date_ymd] => 2025-09-25 12:25:05 [RateCDR] => 1 ) [2025-09-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-09-25 09:25:05' and `end` < '2025-09-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-09-25 12:25:18] Production.INFO: count ==5225 [2025-09-25 12:25:21] Production.ERROR: pbx CDR StartTime 2025-09-25 09:25:05 - End Time 2025-09-25 12:25:05 [2025-09-25 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15903553', 'tblTempUsageDetail_20' ) start [2025-09-25 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15903553', 'tblTempUsageDetail_20' ) end [2025-09-25 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15903553', 'tblTempVendorCDR_20' ) start [2025-09-25 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15903553', 'tblTempVendorCDR_20' ) end [2025-09-25 12:25:21] Production.INFO: ProcessCDR(1,15903553,1,1,2) [2025-09-25 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15903553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15903553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15903553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 12:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15903553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 12:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15903553', 'tblTempUsageDetail_20' ) start [2025-09-25 12:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15903553', 'tblTempUsageDetail_20' ) end [2025-09-25 12:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-25 12:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-25 12:25:34] Production.INFO: ==9142== Releasing lock... [2025-09-25 12:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 12:25:34] Production.INFO: 67.25 MB #Memory Used# [2025-09-25 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 10:25:05 [end_date_ymd] => 2025-09-25 13:25:05 [RateCDR] => 1 ) [2025-09-25 13:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-25 10:25:05' and `end` < '2025-09-25 13:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-25 13:25:21] Production.INFO: count ==5672 [2025-09-25 13:25:24] Production.ERROR: pbx CDR StartTime 2025-09-25 10:25:05 - End Time 2025-09-25 13:25:05 [2025-09-25 13:25:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15903800', 'tblTempUsageDetail_20' ) start [2025-09-25 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15903800', 'tblTempUsageDetail_20' ) end [2025-09-25 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15903800', 'tblTempVendorCDR_20' ) start [2025-09-25 13:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15903800', 'tblTempVendorCDR_20' ) end [2025-09-25 13:25:24] Production.INFO: ProcessCDR(1,15903800,1,1,2) [2025-09-25 13:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15903800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 13:25:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15903800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 13:25:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15903800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 13:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15903800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 13:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15903800', 'tblTempUsageDetail_20' ) start [2025-09-25 13:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15903800', 'tblTempUsageDetail_20' ) end [2025-09-25 13:25:35] Production.ERROR: pbx prc_insertCDR start [2025-09-25 13:25:37] Production.ERROR: pbx prc_insertCDR end [2025-09-25 13:25:37] Production.INFO: ==13534== Releasing lock... [2025-09-25 13:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 13:25:37] Production.INFO: 70.75 MB #Memory Used# [2025-09-25 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 11:25:05 [end_date_ymd] => 2025-09-25 14:25:05 [RateCDR] => 1 ) [2025-09-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-09-25 11:25:05' and `end` < '2025-09-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-09-25 14:25:18] Production.INFO: count ==5523 [2025-09-25 14:25:21] Production.ERROR: pbx CDR StartTime 2025-09-25 11:25:05 - End Time 2025-09-25 14:25:05 [2025-09-25 14:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15904047', 'tblTempUsageDetail_20' ) start [2025-09-25 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15904047', 'tblTempUsageDetail_20' ) end [2025-09-25 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15904047', 'tblTempVendorCDR_20' ) start [2025-09-25 14:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15904047', 'tblTempVendorCDR_20' ) end [2025-09-25 14:25:21] Production.INFO: ProcessCDR(1,15904047,1,1,2) [2025-09-25 14:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15904047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15904047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15904047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 14:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15904047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15904047', 'tblTempUsageDetail_20' ) start [2025-09-25 14:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15904047', 'tblTempUsageDetail_20' ) end [2025-09-25 14:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-25 14:25:33] Production.ERROR: pbx prc_insertCDR end [2025-09-25 14:25:33] Production.INFO: ==17767== Releasing lock... [2025-09-25 14:25:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 14:25:33] Production.INFO: 69.5 MB #Memory Used# [2025-09-25 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 12:25:05 [end_date_ymd] => 2025-09-25 15:25:05 [RateCDR] => 1 ) [2025-09-25 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-25 12:25:05' and `end` < '2025-09-25 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-25 15:25:21] Production.INFO: count ==5450 [2025-09-25 15:25:23] Production.ERROR: pbx CDR StartTime 2025-09-25 12:25:05 - End Time 2025-09-25 15:25:05 [2025-09-25 15:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15904294', 'tblTempUsageDetail_20' ) start [2025-09-25 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15904294', 'tblTempUsageDetail_20' ) end [2025-09-25 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15904294', 'tblTempVendorCDR_20' ) start [2025-09-25 15:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15904294', 'tblTempVendorCDR_20' ) end [2025-09-25 15:25:23] Production.INFO: ProcessCDR(1,15904294,1,1,2) [2025-09-25 15:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15904294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 15:25:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15904294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 15:25:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15904294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 15:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15904294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 15:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15904294', 'tblTempUsageDetail_20' ) start [2025-09-25 15:25:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15904294', 'tblTempUsageDetail_20' ) end [2025-09-25 15:25:33] Production.ERROR: pbx prc_insertCDR start [2025-09-25 15:25:35] Production.ERROR: pbx prc_insertCDR end [2025-09-25 15:25:35] Production.INFO: ==22075== Releasing lock... [2025-09-25 15:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 15:25:35] Production.INFO: 69 MB #Memory Used# [2025-09-25 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 13:25:05 [end_date_ymd] => 2025-09-25 16:25:05 [RateCDR] => 1 ) [2025-09-25 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-25 13:25:05' and `end` < '2025-09-25 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-25 16:25:18] Production.INFO: count ==5452 [2025-09-25 16:25:21] Production.ERROR: pbx CDR StartTime 2025-09-25 13:25:05 - End Time 2025-09-25 16:25:05 [2025-09-25 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15904541', 'tblTempUsageDetail_20' ) start [2025-09-25 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15904541', 'tblTempUsageDetail_20' ) end [2025-09-25 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15904541', 'tblTempVendorCDR_20' ) start [2025-09-25 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15904541', 'tblTempVendorCDR_20' ) end [2025-09-25 16:25:21] Production.INFO: ProcessCDR(1,15904541,1,1,2) [2025-09-25 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15904541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 16:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15904541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 16:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15904541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 16:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15904541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15904541', 'tblTempUsageDetail_20' ) start [2025-09-25 16:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15904541', 'tblTempUsageDetail_20' ) end [2025-09-25 16:25:31] Production.ERROR: pbx prc_insertCDR start [2025-09-25 16:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-25 16:25:34] Production.INFO: ==26298== Releasing lock... [2025-09-25 16:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 16:25:34] Production.INFO: 69 MB #Memory Used# [2025-09-25 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 14:25:05 [end_date_ymd] => 2025-09-25 17:25:05 [RateCDR] => 1 ) [2025-09-25 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-09-25 14:25:05' and `end` < '2025-09-25 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-09-25 17:25:20] Production.INFO: count ==5245 [2025-09-25 17:25:22] Production.ERROR: pbx CDR StartTime 2025-09-25 14:25:05 - End Time 2025-09-25 17:25:05 [2025-09-25 17:25:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15904788', 'tblTempUsageDetail_20' ) start [2025-09-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15904788', 'tblTempUsageDetail_20' ) end [2025-09-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15904788', 'tblTempVendorCDR_20' ) start [2025-09-25 17:25:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15904788', 'tblTempVendorCDR_20' ) end [2025-09-25 17:25:22] Production.INFO: ProcessCDR(1,15904788,1,1,2) [2025-09-25 17:25:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15904788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 17:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15904788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 17:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15904788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 17:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15904788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15904788', 'tblTempUsageDetail_20' ) start [2025-09-25 17:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15904788', 'tblTempUsageDetail_20' ) end [2025-09-25 17:25:32] Production.ERROR: pbx prc_insertCDR start [2025-09-25 17:25:34] Production.ERROR: pbx prc_insertCDR end [2025-09-25 17:25:34] Production.INFO: ==30533== Releasing lock... [2025-09-25 17:25:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 17:25:34] Production.INFO: 67.5 MB #Memory Used# [2025-09-25 18:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 15:25:06 [end_date_ymd] => 2025-09-25 18:25:06 [RateCDR] => 1 ) [2025-09-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-09-25 15:25:06' and `end` < '2025-09-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-09-25 18:25:19] Production.INFO: count ==4419 [2025-09-25 18:25:20] Production.ERROR: pbx CDR StartTime 2025-09-25 15:25:06 - End Time 2025-09-25 18:25:06 [2025-09-25 18:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 18:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15905035', 'tblTempUsageDetail_20' ) start [2025-09-25 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15905035', 'tblTempUsageDetail_20' ) end [2025-09-25 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15905035', 'tblTempVendorCDR_20' ) start [2025-09-25 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15905035', 'tblTempVendorCDR_20' ) end [2025-09-25 18:25:21] Production.INFO: ProcessCDR(1,15905035,1,1,2) [2025-09-25 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15905035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 18:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15905035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 18:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15905035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 18:25:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15905035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15905035', 'tblTempUsageDetail_20' ) start [2025-09-25 18:25:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15905035', 'tblTempUsageDetail_20' ) end [2025-09-25 18:25:29] Production.ERROR: pbx prc_insertCDR start [2025-09-25 18:25:30] Production.ERROR: pbx prc_insertCDR end [2025-09-25 18:25:30] Production.INFO: ==2408== Releasing lock... [2025-09-25 18:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 18:25:30] Production.INFO: 61.25 MB #Memory Used# [2025-09-25 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 16:25:05 [end_date_ymd] => 2025-09-25 19:25:05 [RateCDR] => 1 ) [2025-09-25 19:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-25 16:25:05' and `end` < '2025-09-25 19:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-25 19:25:18] Production.INFO: count ==3427 [2025-09-25 19:25:19] Production.ERROR: pbx CDR StartTime 2025-09-25 16:25:05 - End Time 2025-09-25 19:25:05 [2025-09-25 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15905279', 'tblTempUsageDetail_20' ) start [2025-09-25 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15905279', 'tblTempUsageDetail_20' ) end [2025-09-25 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15905279', 'tblTempVendorCDR_20' ) start [2025-09-25 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15905279', 'tblTempVendorCDR_20' ) end [2025-09-25 19:25:19] Production.INFO: ProcessCDR(1,15905279,1,1,2) [2025-09-25 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15905279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 19:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15905279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 19:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15905279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 19:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15905279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15905279', 'tblTempUsageDetail_20' ) start [2025-09-25 19:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15905279', 'tblTempUsageDetail_20' ) end [2025-09-25 19:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-25 19:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-25 19:25:29] Production.INFO: ==7041== Releasing lock... [2025-09-25 19:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 19:25:29] Production.INFO: 54.25 MB #Memory Used# [2025-09-25 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 17:25:06 [end_date_ymd] => 2025-09-25 20:25:06 [RateCDR] => 1 ) [2025-09-25 20:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-09-25 17:25:06' and `end` < '2025-09-25 20:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-09-25 20:25:18] Production.INFO: count ==2587 [2025-09-25 20:25:19] Production.ERROR: pbx CDR StartTime 2025-09-25 17:25:06 - End Time 2025-09-25 20:25:06 [2025-09-25 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15905526', 'tblTempUsageDetail_20' ) start [2025-09-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15905526', 'tblTempUsageDetail_20' ) end [2025-09-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15905526', 'tblTempVendorCDR_20' ) start [2025-09-25 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15905526', 'tblTempVendorCDR_20' ) end [2025-09-25 20:25:19] Production.INFO: ProcessCDR(1,15905526,1,1,2) [2025-09-25 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15905526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 20:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15905526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 20:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15905526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 20:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15905526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15905526', 'tblTempUsageDetail_20' ) start [2025-09-25 20:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15905526', 'tblTempUsageDetail_20' ) end [2025-09-25 20:25:28] Production.ERROR: pbx prc_insertCDR start [2025-09-25 20:25:29] Production.ERROR: pbx prc_insertCDR end [2025-09-25 20:25:29] Production.INFO: ==11881== Releasing lock... [2025-09-25 20:25:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 20:25:29] Production.INFO: 47.5 MB #Memory Used# [2025-09-25 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 18:25:05 [end_date_ymd] => 2025-09-25 21:25:05 [RateCDR] => 1 ) [2025-09-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-09-25 18:25:05' and `end` < '2025-09-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-09-25 21:25:17] Production.INFO: count ==2102 [2025-09-25 21:25:18] Production.ERROR: pbx CDR StartTime 2025-09-25 18:25:05 - End Time 2025-09-25 21:25:05 [2025-09-25 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15905773', 'tblTempUsageDetail_20' ) start [2025-09-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15905773', 'tblTempUsageDetail_20' ) end [2025-09-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15905773', 'tblTempVendorCDR_20' ) start [2025-09-25 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15905773', 'tblTempVendorCDR_20' ) end [2025-09-25 21:25:18] Production.INFO: ProcessCDR(1,15905773,1,1,2) [2025-09-25 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15905773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 21:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15905773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 21:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15905773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 21:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15905773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15905773', 'tblTempUsageDetail_20' ) start [2025-09-25 21:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15905773', 'tblTempUsageDetail_20' ) end [2025-09-25 21:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-25 21:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-25 21:25:27] Production.INFO: ==16801== Releasing lock... [2025-09-25 21:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 21:25:27] Production.INFO: 44 MB #Memory Used# [2025-09-25 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 19:25:05 [end_date_ymd] => 2025-09-25 22:25:05 [RateCDR] => 1 ) [2025-09-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-09-25 19:25:05' and `end` < '2025-09-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-09-25 22:25:17] Production.INFO: count ==1416 [2025-09-25 22:25:18] Production.ERROR: pbx CDR StartTime 2025-09-25 19:25:05 - End Time 2025-09-25 22:25:05 [2025-09-25 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15906020', 'tblTempUsageDetail_20' ) start [2025-09-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15906020', 'tblTempUsageDetail_20' ) end [2025-09-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15906020', 'tblTempVendorCDR_20' ) start [2025-09-25 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15906020', 'tblTempVendorCDR_20' ) end [2025-09-25 22:25:18] Production.INFO: ProcessCDR(1,15906020,1,1,2) [2025-09-25 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15906020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 22:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15906020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 22:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15906020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 22:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15906020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15906020', 'tblTempUsageDetail_20' ) start [2025-09-25 22:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15906020', 'tblTempUsageDetail_20' ) end [2025-09-25 22:25:26] Production.ERROR: pbx prc_insertCDR start [2025-09-25 22:25:26] Production.ERROR: pbx prc_insertCDR end [2025-09-25 22:25:26] Production.INFO: ==21569== Releasing lock... [2025-09-25 22:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 22:25:26] Production.INFO: 39 MB #Memory Used# [2025-09-25 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-09-25 20:25:06 [end_date_ymd] => 2025-09-25 23:25:06 [RateCDR] => 1 ) [2025-09-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-09-25 20:25:06' and `end` < '2025-09-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-09-25 23:25:18] Production.INFO: count ==986 [2025-09-25 23:25:18] Production.ERROR: pbx CDR StartTime 2025-09-25 20:25:06 - End Time 2025-09-25 23:25:06 [2025-09-25 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-09-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15906267', 'tblTempUsageDetail_20' ) start [2025-09-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '15906267', 'tblTempUsageDetail_20' ) end [2025-09-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15906267', 'tblTempVendorCDR_20' ) start [2025-09-25 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '15906267', 'tblTempVendorCDR_20' ) end [2025-09-25 23:25:18] Production.INFO: ProcessCDR(1,15906267,1,1,2) [2025-09-25 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,15906267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 23:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,15906267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-09-25 23:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,15906267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 23:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,15906267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-09-25 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15906267', 'tblTempUsageDetail_20' ) start [2025-09-25 23:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('15906267', 'tblTempUsageDetail_20' ) end [2025-09-25 23:25:27] Production.ERROR: pbx prc_insertCDR start [2025-09-25 23:25:27] Production.ERROR: pbx prc_insertCDR end [2025-09-25 23:25:27] Production.INFO: ==26291== Releasing lock... [2025-09-25 23:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-09-25 23:25:27] Production.INFO: 35.75 MB #Memory Used#