[2025-11-16 00:00:05] Production.INFO: next invoice date [2025-11-16 00:00:05] Production.INFO: 2025-12-16 [2025-11-16 00:00:05] Production.INFO: getdaysdiff [2025-11-16 00:00:05] Production.INFO: +30 [2025-11-16 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (107,16,1,30,30,'RMScheduler',2025-11-16 00:00:05,1,0,,,0) [2025-11-16 00:00:05] Production.INFO: next invoice date [2025-11-16 00:00:05] Production.INFO: 2025-12-16 [2025-11-16 00:00:05] Production.INFO: getdaysdiff [2025-11-16 00:00:05] Production.INFO: +30 [2025-11-16 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (140,16,1,30,30,'RMScheduler',2025-11-16 00:00:05,1,0,,,0) [2025-11-16 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 21:00:07 [end_date_ymd] => 2025-11-16 00:00:07 [RateCDR] => 1 ) [2025-11-16 00:00:07] 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-11-15 21:00:07' and `end` < '2025-11-16 00:00:07' 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-11-16 00:00:20] Production.INFO: count ==1686 [2025-11-16 00:00:22] Production.ERROR: pbx CDR StartTime 2025-11-15 21:00:07 - End Time 2025-11-16 00:00:07 [2025-11-16 00:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16208996', 'tblTempUsageDetail_20' ) start [2025-11-16 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16208996', 'tblTempUsageDetail_20' ) end [2025-11-16 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16208996', 'tblTempVendorCDR_20' ) start [2025-11-16 00:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16208996', 'tblTempVendorCDR_20' ) end [2025-11-16 00:00:22] Production.INFO: ProcessCDR(1,16208996,1,1,2) [2025-11-16 00:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16208996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 00:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16208996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 00:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16208996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 00:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16208996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 00:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16208996', 'tblTempUsageDetail_20' ) start [2025-11-16 00:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16208996', 'tblTempUsageDetail_20' ) end [2025-11-16 00:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-16 00:00:36] Production.ERROR: pbx prc_insertCDR end [2025-11-16 00:00:39] Production.INFO: ==22392== Releasing lock... [2025-11-16 00:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 00:00:39] Production.INFO: 42.25 MB #Memory Used# [2025-11-16 01:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 22:00:07 [end_date_ymd] => 2025-11-16 01:00:07 [RateCDR] => 1 ) [2025-11-16 01:00:07] 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-11-15 22:00:07' and `end` < '2025-11-16 01:00:07' 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-11-16 01:00:21] Production.INFO: count ==906 [2025-11-16 01:00:21] Production.ERROR: pbx CDR StartTime 2025-11-15 22:00:07 - End Time 2025-11-16 01:00:07 [2025-11-16 01:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16209243', 'tblTempUsageDetail_20' ) start [2025-11-16 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16209243', 'tblTempUsageDetail_20' ) end [2025-11-16 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16209243', 'tblTempVendorCDR_20' ) start [2025-11-16 01:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16209243', 'tblTempVendorCDR_20' ) end [2025-11-16 01:00:21] Production.INFO: ProcessCDR(1,16209243,1,1,2) [2025-11-16 01:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16209243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 01:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16209243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 01:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16209243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 01:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16209243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 01:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16209243', 'tblTempUsageDetail_20' ) start [2025-11-16 01:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16209243', 'tblTempUsageDetail_20' ) end [2025-11-16 01:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-16 01:00:32] Production.ERROR: pbx prc_insertCDR end [2025-11-16 01:00:32] Production.INFO: ==27193== Releasing lock... [2025-11-16 01:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 01:00:32] Production.INFO: 35.5 MB #Memory Used# [2025-11-16 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-15 23:00:06 [end_date_ymd] => 2025-11-16 02:00:06 [RateCDR] => 1 ) [2025-11-16 02:00: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-11-15 23:00:06' and `end` < '2025-11-16 02:00: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-11-16 02:00:18] Production.INFO: count ==919 [2025-11-16 02:00:19] Production.ERROR: pbx CDR StartTime 2025-11-15 23:00:06 - End Time 2025-11-16 02:00:06 [2025-11-16 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16209490', 'tblTempUsageDetail_20' ) start [2025-11-16 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16209490', 'tblTempUsageDetail_20' ) end [2025-11-16 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16209490', 'tblTempVendorCDR_20' ) start [2025-11-16 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16209490', 'tblTempVendorCDR_20' ) end [2025-11-16 02:00:19] Production.INFO: ProcessCDR(1,16209490,1,1,2) [2025-11-16 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16209490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 02:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16209490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 02:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16209490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 02:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16209490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 02:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16209490', 'tblTempUsageDetail_20' ) start [2025-11-16 02:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16209490', 'tblTempUsageDetail_20' ) end [2025-11-16 02:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-16 02:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-16 02:00:30] Production.INFO: ==32235== Releasing lock... [2025-11-16 02:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 02:00:30] Production.INFO: 35.75 MB #Memory Used# [2025-11-16 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 00:00:06 [end_date_ymd] => 2025-11-16 03:00:06 [RateCDR] => 1 ) [2025-11-16 03:00: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-11-16 00:00:06' and `end` < '2025-11-16 03:00: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-11-16 03:00:18] Production.INFO: count ==861 [2025-11-16 03:00:18] Production.ERROR: pbx CDR StartTime 2025-11-16 00:00:06 - End Time 2025-11-16 03:00:06 [2025-11-16 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16209737', 'tblTempUsageDetail_20' ) start [2025-11-16 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16209737', 'tblTempUsageDetail_20' ) end [2025-11-16 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16209737', 'tblTempVendorCDR_20' ) start [2025-11-16 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16209737', 'tblTempVendorCDR_20' ) end [2025-11-16 03:00:18] Production.INFO: ProcessCDR(1,16209737,1,1,2) [2025-11-16 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16209737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 03:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16209737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 03:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16209737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 03:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16209737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 03:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16209737', 'tblTempUsageDetail_20' ) start [2025-11-16 03:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16209737', 'tblTempUsageDetail_20' ) end [2025-11-16 03:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-16 03:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-16 03:00:29] Production.INFO: ==4304== Releasing lock... [2025-11-16 03:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 03:00:29] Production.INFO: 34.75 MB #Memory Used# [2025-11-16 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 01:00:06 [end_date_ymd] => 2025-11-16 04:00:06 [RateCDR] => 1 ) [2025-11-16 04:00: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-11-16 01:00:06' and `end` < '2025-11-16 04:00: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-11-16 04:00:18] Production.INFO: count ==603 [2025-11-16 04:00:19] Production.ERROR: pbx CDR StartTime 2025-11-16 01:00:06 - End Time 2025-11-16 04:00:06 [2025-11-16 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16209985', 'tblTempUsageDetail_20' ) start [2025-11-16 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16209985', 'tblTempUsageDetail_20' ) end [2025-11-16 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16209985', 'tblTempVendorCDR_20' ) start [2025-11-16 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16209985', 'tblTempVendorCDR_20' ) end [2025-11-16 04:00:19] Production.INFO: ProcessCDR(1,16209985,1,1,2) [2025-11-16 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16209985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 04:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16209985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 04:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16209985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 04:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16209985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 04:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16209985', 'tblTempUsageDetail_20' ) start [2025-11-16 04:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16209985', 'tblTempUsageDetail_20' ) end [2025-11-16 04:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-16 04:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-16 04:00:29] Production.INFO: ==9529== Releasing lock... [2025-11-16 04:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 04:00:29] Production.INFO: 33.25 MB #Memory Used# [2025-11-16 05:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 02:00:07 [end_date_ymd] => 2025-11-16 05:00:07 [RateCDR] => 1 ) [2025-11-16 05:00:07] 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-11-16 02:00:07' and `end` < '2025-11-16 05:00:07' 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-11-16 05:00:19] Production.INFO: count ==417 [2025-11-16 05:00:20] Production.ERROR: pbx CDR StartTime 2025-11-16 02:00:07 - End Time 2025-11-16 05:00:07 [2025-11-16 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16210233', 'tblTempUsageDetail_20' ) start [2025-11-16 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16210233', 'tblTempUsageDetail_20' ) end [2025-11-16 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16210233', 'tblTempVendorCDR_20' ) start [2025-11-16 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16210233', 'tblTempVendorCDR_20' ) end [2025-11-16 05:00:20] Production.INFO: ProcessCDR(1,16210233,1,1,2) [2025-11-16 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16210233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 05:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16210233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 05:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16210233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 05:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16210233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 05:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16210233', 'tblTempUsageDetail_20' ) start [2025-11-16 05:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16210233', 'tblTempUsageDetail_20' ) end [2025-11-16 05:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-16 05:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-16 05:00:30] Production.INFO: ==14722== Releasing lock... [2025-11-16 05:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 05:00:30] Production.INFO: 32 MB #Memory Used# [2025-11-16 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 03:00:06 [end_date_ymd] => 2025-11-16 06:00:06 [RateCDR] => 1 ) [2025-11-16 06:00: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-11-16 03:00:06' and `end` < '2025-11-16 06:00: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-11-16 06:00:18] Production.INFO: count ==244 [2025-11-16 06:00:18] Production.ERROR: pbx CDR StartTime 2025-11-16 03:00:06 - End Time 2025-11-16 06:00:06 [2025-11-16 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16210480', 'tblTempUsageDetail_20' ) start [2025-11-16 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16210480', 'tblTempUsageDetail_20' ) end [2025-11-16 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16210480', 'tblTempVendorCDR_20' ) start [2025-11-16 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16210480', 'tblTempVendorCDR_20' ) end [2025-11-16 06:00:18] Production.INFO: ProcessCDR(1,16210480,1,1,2) [2025-11-16 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16210480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 06:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16210480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 06:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16210480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 06:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16210480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16210480', 'tblTempUsageDetail_20' ) start [2025-11-16 06:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16210480', 'tblTempUsageDetail_20' ) end [2025-11-16 06:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-16 06:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-16 06:00:29] Production.INFO: ==19589== Releasing lock... [2025-11-16 06:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 06:00:29] Production.INFO: 30.25 MB #Memory Used# [2025-11-16 07:00:08] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 04:00:07 [end_date_ymd] => 2025-11-16 07:00:07 [RateCDR] => 1 ) [2025-11-16 07:00:08] 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-11-16 04:00:07' and `end` < '2025-11-16 07:00:07' 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-11-16 07:00:19] Production.INFO: count ==204 [2025-11-16 07:00:20] Production.ERROR: pbx CDR StartTime 2025-11-16 04:00:07 - End Time 2025-11-16 07:00:07 [2025-11-16 07:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16210727', 'tblTempUsageDetail_20' ) start [2025-11-16 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16210727', 'tblTempUsageDetail_20' ) end [2025-11-16 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16210727', 'tblTempVendorCDR_20' ) start [2025-11-16 07:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16210727', 'tblTempVendorCDR_20' ) end [2025-11-16 07:00:20] Production.INFO: ProcessCDR(1,16210727,1,1,2) [2025-11-16 07:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16210727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 07:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16210727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 07:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16210727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 07:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16210727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 07:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16210727', 'tblTempUsageDetail_20' ) start [2025-11-16 07:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16210727', 'tblTempUsageDetail_20' ) end [2025-11-16 07:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-16 07:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-16 07:00:30] Production.INFO: ==24468== Releasing lock... [2025-11-16 07:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 07:00:30] Production.INFO: 30 MB #Memory Used# [2025-11-16 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 05:00:06 [end_date_ymd] => 2025-11-16 08:00:06 [RateCDR] => 1 ) [2025-11-16 08:00: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-11-16 05:00:06' and `end` < '2025-11-16 08:00: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-11-16 08:00:18] Production.INFO: count ==157 [2025-11-16 08:00:18] Production.ERROR: pbx CDR StartTime 2025-11-16 05:00:06 - End Time 2025-11-16 08:00:06 [2025-11-16 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16210974', 'tblTempUsageDetail_20' ) start [2025-11-16 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16210974', 'tblTempUsageDetail_20' ) end [2025-11-16 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16210974', 'tblTempVendorCDR_20' ) start [2025-11-16 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16210974', 'tblTempVendorCDR_20' ) end [2025-11-16 08:00:18] Production.INFO: ProcessCDR(1,16210974,1,1,2) [2025-11-16 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16210974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 08:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16210974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 08:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16210974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 08:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16210974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16210974', 'tblTempUsageDetail_20' ) start [2025-11-16 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16210974', 'tblTempUsageDetail_20' ) end [2025-11-16 08:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-16 08:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-16 08:00:28] Production.INFO: ==30937== Releasing lock... [2025-11-16 08:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 08:00:28] Production.INFO: 29.5 MB #Memory Used# [2025-11-16 09:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 06:00:07 [end_date_ymd] => 2025-11-16 09:00:07 [RateCDR] => 1 ) [2025-11-16 09:00:07] 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-11-16 06:00:07' and `end` < '2025-11-16 09:00:07' 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-11-16 09:00:19] Production.INFO: count ==169 [2025-11-16 09:00:19] Production.ERROR: pbx CDR StartTime 2025-11-16 06:00:07 - End Time 2025-11-16 09:00:07 [2025-11-16 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16211221', 'tblTempUsageDetail_20' ) start [2025-11-16 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16211221', 'tblTempUsageDetail_20' ) end [2025-11-16 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16211221', 'tblTempVendorCDR_20' ) start [2025-11-16 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16211221', 'tblTempVendorCDR_20' ) end [2025-11-16 09:00:19] Production.INFO: ProcessCDR(1,16211221,1,1,2) [2025-11-16 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16211221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 09:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16211221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 09:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16211221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 09:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16211221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 09:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16211221', 'tblTempUsageDetail_20' ) start [2025-11-16 09:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16211221', 'tblTempUsageDetail_20' ) end [2025-11-16 09:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-16 09:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-16 09:00:28] Production.INFO: ==3366== Releasing lock... [2025-11-16 09:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 09:00:28] Production.INFO: 29.25 MB #Memory Used# [2025-11-16 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 07:00:06 [end_date_ymd] => 2025-11-16 10:00:06 [RateCDR] => 1 ) [2025-11-16 10:00: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-11-16 07:00:06' and `end` < '2025-11-16 10:00: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-11-16 10:00:18] Production.INFO: count ==214 [2025-11-16 10:00:18] Production.ERROR: pbx CDR StartTime 2025-11-16 07:00:06 - End Time 2025-11-16 10:00:06 [2025-11-16 10:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16211468', 'tblTempUsageDetail_20' ) start [2025-11-16 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16211468', 'tblTempUsageDetail_20' ) end [2025-11-16 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16211468', 'tblTempVendorCDR_20' ) start [2025-11-16 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16211468', 'tblTempVendorCDR_20' ) end [2025-11-16 10:00:18] Production.INFO: ProcessCDR(1,16211468,1,1,2) [2025-11-16 10:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16211468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16211468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16211468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 10:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16211468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 10:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16211468', 'tblTempUsageDetail_20' ) start [2025-11-16 10:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16211468', 'tblTempUsageDetail_20' ) end [2025-11-16 10:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-16 10:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-16 10:00:28] Production.INFO: ==8147== Releasing lock... [2025-11-16 10:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 10:00:28] Production.INFO: 30.5 MB #Memory Used# [2025-11-16 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 08:00:07 [end_date_ymd] => 2025-11-16 11:00:07 [RateCDR] => 1 ) [2025-11-16 11:00:07] 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-11-16 08:00:07' and `end` < '2025-11-16 11:00:07' 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-11-16 11:00:19] Production.INFO: count ==438 [2025-11-16 11:00:19] Production.ERROR: pbx CDR StartTime 2025-11-16 08:00:07 - End Time 2025-11-16 11:00:07 [2025-11-16 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16211715', 'tblTempUsageDetail_20' ) start [2025-11-16 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16211715', 'tblTempUsageDetail_20' ) end [2025-11-16 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16211715', 'tblTempVendorCDR_20' ) start [2025-11-16 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16211715', 'tblTempVendorCDR_20' ) end [2025-11-16 11:00:19] Production.INFO: ProcessCDR(1,16211715,1,1,2) [2025-11-16 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16211715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 11:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16211715,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 11:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16211715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 11:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16211715,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16211715', 'tblTempUsageDetail_20' ) start [2025-11-16 11:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16211715', 'tblTempUsageDetail_20' ) end [2025-11-16 11:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-16 11:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-16 11:00:29] Production.INFO: ==12596== Releasing lock... [2025-11-16 11:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 11:00:29] Production.INFO: 31.75 MB #Memory Used# [2025-11-16 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 09:00:06 [end_date_ymd] => 2025-11-16 12:00:06 [RateCDR] => 1 ) [2025-11-16 12:00: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-11-16 09:00:06' and `end` < '2025-11-16 12:00: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-11-16 12:00:18] Production.INFO: count ==750 [2025-11-16 12:00:18] Production.ERROR: pbx CDR StartTime 2025-11-16 09:00:06 - End Time 2025-11-16 12:00:06 [2025-11-16 12:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16211962', 'tblTempUsageDetail_20' ) start [2025-11-16 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16211962', 'tblTempUsageDetail_20' ) end [2025-11-16 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16211962', 'tblTempVendorCDR_20' ) start [2025-11-16 12:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16211962', 'tblTempVendorCDR_20' ) end [2025-11-16 12:00:18] Production.INFO: ProcessCDR(1,16211962,1,1,2) [2025-11-16 12:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16211962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 12:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16211962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 12:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16211962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 12:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16211962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16211962', 'tblTempUsageDetail_20' ) start [2025-11-16 12:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16211962', 'tblTempUsageDetail_20' ) end [2025-11-16 12:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-16 12:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-16 12:00:30] Production.INFO: ==17011== Releasing lock... [2025-11-16 12:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 12:00:30] Production.INFO: 34.5 MB #Memory Used# [2025-11-16 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 10:00:05 [end_date_ymd] => 2025-11-16 13:00:05 [RateCDR] => 1 ) [2025-11-16 13:00: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-11-16 10:00:05' and `end` < '2025-11-16 13:00: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-11-16 13:00:18] Production.INFO: count ==1046 [2025-11-16 13:00:18] Production.ERROR: pbx CDR StartTime 2025-11-16 10:00:05 - End Time 2025-11-16 13:00:05 [2025-11-16 13:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16212209', 'tblTempUsageDetail_20' ) start [2025-11-16 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16212209', 'tblTempUsageDetail_20' ) end [2025-11-16 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16212209', 'tblTempVendorCDR_20' ) start [2025-11-16 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16212209', 'tblTempVendorCDR_20' ) end [2025-11-16 13:00:18] Production.INFO: ProcessCDR(1,16212209,1,1,2) [2025-11-16 13:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16212209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 13:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16212209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 13:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16212209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 13:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16212209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 13:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16212209', 'tblTempUsageDetail_20' ) start [2025-11-16 13:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16212209', 'tblTempUsageDetail_20' ) end [2025-11-16 13:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-16 13:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-16 13:00:30] Production.INFO: ==21600== Releasing lock... [2025-11-16 13:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 13:00:30] Production.INFO: 37.25 MB #Memory Used# [2025-11-16 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 11:00:06 [end_date_ymd] => 2025-11-16 14:00:06 [RateCDR] => 1 ) [2025-11-16 14:00: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-11-16 11:00:06' and `end` < '2025-11-16 14:00: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-11-16 14:00:18] Production.INFO: count ==1091 [2025-11-16 14:00:19] Production.ERROR: pbx CDR StartTime 2025-11-16 11:00:06 - End Time 2025-11-16 14:00:06 [2025-11-16 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16212456', 'tblTempUsageDetail_20' ) start [2025-11-16 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16212456', 'tblTempUsageDetail_20' ) end [2025-11-16 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16212456', 'tblTempVendorCDR_20' ) start [2025-11-16 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16212456', 'tblTempVendorCDR_20' ) end [2025-11-16 14:00:19] Production.INFO: ProcessCDR(1,16212456,1,1,2) [2025-11-16 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16212456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 14:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16212456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 14:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16212456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 14:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16212456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 14:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16212456', 'tblTempUsageDetail_20' ) start [2025-11-16 14:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16212456', 'tblTempUsageDetail_20' ) end [2025-11-16 14:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-16 14:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-16 14:00:30] Production.INFO: ==26878== Releasing lock... [2025-11-16 14:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 14:00:30] Production.INFO: 37.5 MB #Memory Used# [2025-11-16 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 12:00:05 [end_date_ymd] => 2025-11-16 15:00:05 [RateCDR] => 1 ) [2025-11-16 15:00: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-11-16 12:00:05' and `end` < '2025-11-16 15:00: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-11-16 15:00:17] Production.INFO: count ==1120 [2025-11-16 15:00:18] Production.ERROR: pbx CDR StartTime 2025-11-16 12:00:05 - End Time 2025-11-16 15:00:05 [2025-11-16 15:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16212703', 'tblTempUsageDetail_20' ) start [2025-11-16 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16212703', 'tblTempUsageDetail_20' ) end [2025-11-16 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16212703', 'tblTempVendorCDR_20' ) start [2025-11-16 15:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16212703', 'tblTempVendorCDR_20' ) end [2025-11-16 15:00:18] Production.INFO: ProcessCDR(1,16212703,1,1,2) [2025-11-16 15:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16212703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 15:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16212703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 15:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16212703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 15:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16212703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16212703', 'tblTempUsageDetail_20' ) start [2025-11-16 15:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16212703', 'tblTempUsageDetail_20' ) end [2025-11-16 15:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-16 15:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-16 15:00:29] Production.INFO: ==31306== Releasing lock... [2025-11-16 15:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 15:00:29] Production.INFO: 37 MB #Memory Used# [2025-11-16 16:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 13:00:07 [end_date_ymd] => 2025-11-16 16:00:07 [RateCDR] => 1 ) [2025-11-16 16:00:07] 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-11-16 13:00:07' and `end` < '2025-11-16 16:00:07' 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-11-16 16:00:19] Production.INFO: count ==1203 [2025-11-16 16:00:19] Production.ERROR: pbx CDR StartTime 2025-11-16 13:00:07 - End Time 2025-11-16 16:00:07 [2025-11-16 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16212950', 'tblTempUsageDetail_20' ) start [2025-11-16 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16212950', 'tblTempUsageDetail_20' ) end [2025-11-16 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16212950', 'tblTempVendorCDR_20' ) start [2025-11-16 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16212950', 'tblTempVendorCDR_20' ) end [2025-11-16 16:00:19] Production.INFO: ProcessCDR(1,16212950,1,1,2) [2025-11-16 16:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16212950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 16:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16212950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 16:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16212950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 16:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16212950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 16:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16212950', 'tblTempUsageDetail_20' ) start [2025-11-16 16:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16212950', 'tblTempUsageDetail_20' ) end [2025-11-16 16:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-16 16:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-16 16:00:31] Production.INFO: ==3436== Releasing lock... [2025-11-16 16:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 16:00:31] Production.INFO: 37.5 MB #Memory Used# [2025-11-16 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 14:00:06 [end_date_ymd] => 2025-11-16 17:00:06 [RateCDR] => 1 ) [2025-11-16 17:00: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-11-16 14:00:06' and `end` < '2025-11-16 17:00: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-11-16 17:00:18] Production.INFO: count ==1453 [2025-11-16 17:00:19] Production.ERROR: pbx CDR StartTime 2025-11-16 14:00:06 - End Time 2025-11-16 17:00:06 [2025-11-16 17:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16213197', 'tblTempUsageDetail_20' ) start [2025-11-16 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16213197', 'tblTempUsageDetail_20' ) end [2025-11-16 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16213197', 'tblTempVendorCDR_20' ) start [2025-11-16 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16213197', 'tblTempVendorCDR_20' ) end [2025-11-16 17:00:19] Production.INFO: ProcessCDR(1,16213197,1,1,2) [2025-11-16 17:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16213197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 17:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16213197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 17:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16213197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 17:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16213197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 17:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16213197', 'tblTempUsageDetail_20' ) start [2025-11-16 17:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16213197', 'tblTempUsageDetail_20' ) end [2025-11-16 17:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-16 17:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-16 17:00:31] Production.INFO: ==7974== Releasing lock... [2025-11-16 17:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 17:00:31] Production.INFO: 39.25 MB #Memory Used# [2025-11-16 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 15:00:06 [end_date_ymd] => 2025-11-16 18:00:06 [RateCDR] => 1 ) [2025-11-16 18:00: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-11-16 15:00:06' and `end` < '2025-11-16 18:00: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-11-16 18:00:19] Production.INFO: count ==1858 [2025-11-16 18:00:20] Production.ERROR: pbx CDR StartTime 2025-11-16 15:00:06 - End Time 2025-11-16 18:00:06 [2025-11-16 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16213442', 'tblTempUsageDetail_20' ) start [2025-11-16 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16213442', 'tblTempUsageDetail_20' ) end [2025-11-16 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16213442', 'tblTempVendorCDR_20' ) start [2025-11-16 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16213442', 'tblTempVendorCDR_20' ) end [2025-11-16 18:00:20] Production.INFO: ProcessCDR(1,16213442,1,1,2) [2025-11-16 18:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16213442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16213442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16213442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 18:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16213442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 18:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16213442', 'tblTempUsageDetail_20' ) start [2025-11-16 18:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16213442', 'tblTempUsageDetail_20' ) end [2025-11-16 18:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-16 18:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-16 18:00:31] Production.INFO: ==12776== Releasing lock... [2025-11-16 18:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 18:00:31] Production.INFO: 42 MB #Memory Used# [2025-11-16 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 16:00:06 [end_date_ymd] => 2025-11-16 19:00:06 [RateCDR] => 1 ) [2025-11-16 19:00: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-11-16 16:00:06' and `end` < '2025-11-16 19:00: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-11-16 19:00:18] Production.INFO: count ==2189 [2025-11-16 19:00:19] Production.ERROR: pbx CDR StartTime 2025-11-16 16:00:06 - End Time 2025-11-16 19:00:06 [2025-11-16 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16213688', 'tblTempUsageDetail_20' ) start [2025-11-16 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16213688', 'tblTempUsageDetail_20' ) end [2025-11-16 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16213688', 'tblTempVendorCDR_20' ) start [2025-11-16 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16213688', 'tblTempVendorCDR_20' ) end [2025-11-16 19:00:19] Production.INFO: ProcessCDR(1,16213688,1,1,2) [2025-11-16 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16213688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 19:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16213688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 19:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16213688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 19:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16213688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 19:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16213688', 'tblTempUsageDetail_20' ) start [2025-11-16 19:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16213688', 'tblTempUsageDetail_20' ) end [2025-11-16 19:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-16 19:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-16 19:00:30] Production.INFO: ==17178== Releasing lock... [2025-11-16 19:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 19:00:30] Production.INFO: 44.75 MB #Memory Used# [2025-11-16 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 17:00:06 [end_date_ymd] => 2025-11-16 20:00:06 [RateCDR] => 1 ) [2025-11-16 20:00: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-11-16 17:00:06' and `end` < '2025-11-16 20:00: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-11-16 20:00:19] Production.INFO: count ==2148 [2025-11-16 20:00:20] Production.ERROR: pbx CDR StartTime 2025-11-16 17:00:06 - End Time 2025-11-16 20:00:06 [2025-11-16 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16213936', 'tblTempUsageDetail_20' ) start [2025-11-16 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16213936', 'tblTempUsageDetail_20' ) end [2025-11-16 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16213936', 'tblTempVendorCDR_20' ) start [2025-11-16 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16213936', 'tblTempVendorCDR_20' ) end [2025-11-16 20:00:20] Production.INFO: ProcessCDR(1,16213936,1,1,2) [2025-11-16 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16213936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 20:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16213936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 20:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16213936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 20:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16213936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 20:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16213936', 'tblTempUsageDetail_20' ) start [2025-11-16 20:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16213936', 'tblTempUsageDetail_20' ) end [2025-11-16 20:00:30] Production.ERROR: pbx prc_insertCDR start [2025-11-16 20:00:30] Production.ERROR: pbx prc_insertCDR end [2025-11-16 20:00:30] Production.INFO: ==21590== Releasing lock... [2025-11-16 20:00:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 20:00:30] Production.INFO: 44.5 MB #Memory Used# [2025-11-16 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 18:00:06 [end_date_ymd] => 2025-11-16 21:00:06 [RateCDR] => 1 ) [2025-11-16 21:00: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-11-16 18:00:06' and `end` < '2025-11-16 21:00: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-11-16 21:00:19] Production.INFO: count ==1968 [2025-11-16 21:00:19] Production.ERROR: pbx CDR StartTime 2025-11-16 18:00:06 - End Time 2025-11-16 21:00:06 [2025-11-16 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16214182', 'tblTempUsageDetail_20' ) start [2025-11-16 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16214182', 'tblTempUsageDetail_20' ) end [2025-11-16 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16214182', 'tblTempVendorCDR_20' ) start [2025-11-16 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16214182', 'tblTempVendorCDR_20' ) end [2025-11-16 21:00:20] Production.INFO: ProcessCDR(1,16214182,1,1,2) [2025-11-16 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16214182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 21:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16214182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 21:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16214182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 21:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16214182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 21:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16214182', 'tblTempUsageDetail_20' ) start [2025-11-16 21:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16214182', 'tblTempUsageDetail_20' ) end [2025-11-16 21:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-16 21:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-16 21:00:31] Production.INFO: ==26382== Releasing lock... [2025-11-16 21:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 21:00:31] Production.INFO: 43 MB #Memory Used# [2025-11-16 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 19:00:06 [end_date_ymd] => 2025-11-16 22:00:06 [RateCDR] => 1 ) [2025-11-16 22:00: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-11-16 19:00:06' and `end` < '2025-11-16 22:00: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-11-16 22:00:18] Production.INFO: count ==1514 [2025-11-16 22:00:19] Production.ERROR: pbx CDR StartTime 2025-11-16 19:00:06 - End Time 2025-11-16 22:00:06 [2025-11-16 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16214430', 'tblTempUsageDetail_20' ) start [2025-11-16 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16214430', 'tblTempUsageDetail_20' ) end [2025-11-16 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16214430', 'tblTempVendorCDR_20' ) start [2025-11-16 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16214430', 'tblTempVendorCDR_20' ) end [2025-11-16 22:00:19] Production.INFO: ProcessCDR(1,16214430,1,1,2) [2025-11-16 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16214430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 22:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16214430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 22:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16214430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 22:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16214430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 22:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16214430', 'tblTempUsageDetail_20' ) start [2025-11-16 22:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16214430', 'tblTempUsageDetail_20' ) end [2025-11-16 22:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-16 22:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-16 22:00:29] Production.INFO: ==31375== Releasing lock... [2025-11-16 22:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 22:00:29] Production.INFO: 39.5 MB #Memory Used# [2025-11-16 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-16 20:00:06 [end_date_ymd] => 2025-11-16 23:00:06 [RateCDR] => 1 ) [2025-11-16 23:00: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-11-16 20:00:06' and `end` < '2025-11-16 23:00: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-11-16 23:00:18] Production.INFO: count ==1266 [2025-11-16 23:00:19] Production.ERROR: pbx CDR StartTime 2025-11-16 20:00:06 - End Time 2025-11-16 23:00:06 [2025-11-16 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-16 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16214677', 'tblTempUsageDetail_20' ) start [2025-11-16 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16214677', 'tblTempUsageDetail_20' ) end [2025-11-16 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16214677', 'tblTempVendorCDR_20' ) start [2025-11-16 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16214677', 'tblTempVendorCDR_20' ) end [2025-11-16 23:00:19] Production.INFO: ProcessCDR(1,16214677,1,1,2) [2025-11-16 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16214677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 23:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16214677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-16 23:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16214677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 23:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16214677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-16 23:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16214677', 'tblTempUsageDetail_20' ) start [2025-11-16 23:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16214677', 'tblTempUsageDetail_20' ) end [2025-11-16 23:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-16 23:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-16 23:00:29] Production.INFO: ==4384== Releasing lock... [2025-11-16 23:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-16 23:00:29] Production.INFO: 38 MB #Memory Used#