[2025-11-14 00:00:05] Production.INFO: next invoice date [2025-11-14 00:00:05] Production.INFO: 2025-12-14 [2025-11-14 00:00:05] Production.INFO: getdaysdiff [2025-11-14 00:00:05] Production.INFO: +30 [2025-11-14 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (43,10,2,30,30,'RMScheduler',2025-11-14 00:00:05,1,0,,,0) [2025-11-14 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 21:00:07 [end_date_ymd] => 2025-11-14 00:00:07 [RateCDR] => 1 ) [2025-11-14 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-13 21:00:07' and `end` < '2025-11-14 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-14 00:00:20] Production.INFO: count ==1067 [2025-11-14 00:00:21] Production.ERROR: pbx CDR StartTime 2025-11-13 21:00:07 - End Time 2025-11-14 00:00:07 [2025-11-14 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16197141', 'tblTempUsageDetail_20' ) start [2025-11-14 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16197141', 'tblTempUsageDetail_20' ) end [2025-11-14 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16197141', 'tblTempVendorCDR_20' ) start [2025-11-14 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16197141', 'tblTempVendorCDR_20' ) end [2025-11-14 00:00:21] Production.INFO: ProcessCDR(1,16197141,1,1,2) [2025-11-14 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16197141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 00:00:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16197141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 00:00:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16197141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 00:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16197141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 00:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16197141', 'tblTempUsageDetail_20' ) start [2025-11-14 00:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16197141', 'tblTempUsageDetail_20' ) end [2025-11-14 00:00:33] Production.ERROR: pbx prc_insertCDR start [2025-11-14 00:00:33] Production.ERROR: pbx prc_insertCDR end [2025-11-14 00:00:45] Production.INFO: ==30082== Releasing lock... [2025-11-14 00:00:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 00:00:45] Production.INFO: 39.5 MB #Memory Used# [2025-11-14 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 22:00:05 [end_date_ymd] => 2025-11-14 01:00:05 [RateCDR] => 1 ) [2025-11-14 01: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-13 22:00:05' and `end` < '2025-11-14 01: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-14 01:00:18] Production.INFO: count ==611 [2025-11-14 01:00:18] Production.ERROR: pbx CDR StartTime 2025-11-13 22:00:05 - End Time 2025-11-14 01:00:05 [2025-11-14 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16197388', 'tblTempUsageDetail_20' ) start [2025-11-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16197388', 'tblTempUsageDetail_20' ) end [2025-11-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16197388', 'tblTempVendorCDR_20' ) start [2025-11-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16197388', 'tblTempVendorCDR_20' ) end [2025-11-14 01:00:18] Production.INFO: ProcessCDR(1,16197388,1,1,2) [2025-11-14 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16197388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 01:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16197388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 01:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16197388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 01:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16197388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 01:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16197388', 'tblTempUsageDetail_20' ) start [2025-11-14 01:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16197388', 'tblTempUsageDetail_20' ) end [2025-11-14 01:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-14 01:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-14 01:00:28] Production.INFO: ==2021== Releasing lock... [2025-11-14 01:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 01:00:28] Production.INFO: 33.25 MB #Memory Used# [2025-11-14 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-13 23:00:07 [end_date_ymd] => 2025-11-14 02:00:07 [RateCDR] => 1 ) [2025-11-14 02: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-13 23:00:07' and `end` < '2025-11-14 02: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-14 02:00:19] Production.INFO: count ==547 [2025-11-14 02:00:19] Production.ERROR: pbx CDR StartTime 2025-11-13 23:00:07 - End Time 2025-11-14 02:00:07 [2025-11-14 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16197635', 'tblTempUsageDetail_20' ) start [2025-11-14 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16197635', 'tblTempUsageDetail_20' ) end [2025-11-14 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16197635', 'tblTempVendorCDR_20' ) start [2025-11-14 02:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16197635', 'tblTempVendorCDR_20' ) end [2025-11-14 02:00:20] Production.INFO: ProcessCDR(1,16197635,1,1,2) [2025-11-14 02:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16197635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 02:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16197635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 02:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16197635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 02:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16197635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 02:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16197635', 'tblTempUsageDetail_20' ) start [2025-11-14 02:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16197635', 'tblTempUsageDetail_20' ) end [2025-11-14 02:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-14 02:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-14 02:00:29] Production.INFO: ==6463== Releasing lock... [2025-11-14 02:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 02:00:29] Production.INFO: 32.5 MB #Memory Used# [2025-11-14 03:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 00:00:07 [end_date_ymd] => 2025-11-14 03:00:07 [RateCDR] => 1 ) [2025-11-14 03: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-14 00:00:07' and `end` < '2025-11-14 03: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-14 03:00:19] Production.INFO: count ==473 [2025-11-14 03:00:19] Production.ERROR: pbx CDR StartTime 2025-11-14 00:00:07 - End Time 2025-11-14 03:00:07 [2025-11-14 03:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16197881', 'tblTempUsageDetail_20' ) start [2025-11-14 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16197881', 'tblTempUsageDetail_20' ) end [2025-11-14 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16197881', 'tblTempVendorCDR_20' ) start [2025-11-14 03:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16197881', 'tblTempVendorCDR_20' ) end [2025-11-14 03:00:19] Production.INFO: ProcessCDR(1,16197881,1,1,2) [2025-11-14 03:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16197881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 03:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16197881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 03:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16197881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 03:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16197881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 03:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16197881', 'tblTempUsageDetail_20' ) start [2025-11-14 03:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16197881', 'tblTempUsageDetail_20' ) end [2025-11-14 03:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-14 03:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-14 03:00:29] Production.INFO: ==11195== Releasing lock... [2025-11-14 03:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 03:00:29] Production.INFO: 32.25 MB #Memory Used# [2025-11-14 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 01:00:06 [end_date_ymd] => 2025-11-14 04:00:06 [RateCDR] => 1 ) [2025-11-14 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-14 01:00:06' and `end` < '2025-11-14 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-14 04:00:18] Production.INFO: count ==322 [2025-11-14 04:00:18] Production.ERROR: pbx CDR StartTime 2025-11-14 01:00:06 - End Time 2025-11-14 04:00:06 [2025-11-14 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16198130', 'tblTempUsageDetail_20' ) start [2025-11-14 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16198130', 'tblTempUsageDetail_20' ) end [2025-11-14 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16198130', 'tblTempVendorCDR_20' ) start [2025-11-14 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16198130', 'tblTempVendorCDR_20' ) end [2025-11-14 04:00:18] Production.INFO: ProcessCDR(1,16198130,1,1,2) [2025-11-14 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16198130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 04:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16198130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 04:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16198130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 04:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16198130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 04:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16198130', 'tblTempUsageDetail_20' ) start [2025-11-14 04:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16198130', 'tblTempUsageDetail_20' ) end [2025-11-14 04:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-14 04:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-14 04:00:28] Production.INFO: ==15670== Releasing lock... [2025-11-14 04:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 04:00:28] Production.INFO: 30.5 MB #Memory Used# [2025-11-14 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 02:00:06 [end_date_ymd] => 2025-11-14 05:00:06 [RateCDR] => 1 ) [2025-11-14 05: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-14 02:00:06' and `end` < '2025-11-14 05: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-14 05:00:18] Production.INFO: count ==172 [2025-11-14 05:00:18] Production.ERROR: pbx CDR StartTime 2025-11-14 02:00:06 - End Time 2025-11-14 05:00:06 [2025-11-14 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16198378', 'tblTempUsageDetail_20' ) start [2025-11-14 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16198378', 'tblTempUsageDetail_20' ) end [2025-11-14 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16198378', 'tblTempVendorCDR_20' ) start [2025-11-14 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16198378', 'tblTempVendorCDR_20' ) end [2025-11-14 05:00:18] Production.INFO: ProcessCDR(1,16198378,1,1,2) [2025-11-14 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16198378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 05:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16198378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 05:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16198378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 05:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16198378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 05:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16198378', 'tblTempUsageDetail_20' ) start [2025-11-14 05:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16198378', 'tblTempUsageDetail_20' ) end [2025-11-14 05:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-14 05:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-14 05:00:28] Production.INFO: ==20124== Releasing lock... [2025-11-14 05:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 05:00:28] Production.INFO: 29.5 MB #Memory Used# [2025-11-14 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 03:00:06 [end_date_ymd] => 2025-11-14 06:00:06 [RateCDR] => 1 ) [2025-11-14 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-14 03:00:06' and `end` < '2025-11-14 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-14 06:00:18] Production.INFO: count ==120 [2025-11-14 06:00:18] Production.ERROR: pbx CDR StartTime 2025-11-14 03:00:06 - End Time 2025-11-14 06:00:06 [2025-11-14 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16198624', 'tblTempUsageDetail_20' ) start [2025-11-14 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16198624', 'tblTempUsageDetail_20' ) end [2025-11-14 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16198624', 'tblTempVendorCDR_20' ) start [2025-11-14 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16198624', 'tblTempVendorCDR_20' ) end [2025-11-14 06:00:18] Production.INFO: ProcessCDR(1,16198624,1,1,2) [2025-11-14 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16198624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 06:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16198624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 06:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16198624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 06:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16198624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16198624', 'tblTempUsageDetail_20' ) start [2025-11-14 06:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16198624', 'tblTempUsageDetail_20' ) end [2025-11-14 06:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-14 06:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-14 06:00:28] Production.INFO: ==24567== Releasing lock... [2025-11-14 06:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 06:00:28] Production.INFO: 28.75 MB #Memory Used# [2025-11-14 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 04:00:06 [end_date_ymd] => 2025-11-14 07:00:06 [RateCDR] => 1 ) [2025-11-14 07: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-14 04:00:06' and `end` < '2025-11-14 07: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-14 07:00:18] Production.INFO: count ==127 [2025-11-14 07:00:18] Production.ERROR: pbx CDR StartTime 2025-11-14 04:00:06 - End Time 2025-11-14 07:00:06 [2025-11-14 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16198872', 'tblTempUsageDetail_20' ) start [2025-11-14 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16198872', 'tblTempUsageDetail_20' ) end [2025-11-14 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16198872', 'tblTempVendorCDR_20' ) start [2025-11-14 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16198872', 'tblTempVendorCDR_20' ) end [2025-11-14 07:00:18] Production.INFO: ProcessCDR(1,16198872,1,1,2) [2025-11-14 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16198872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 07:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16198872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 07:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16198872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 07:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16198872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16198872', 'tblTempUsageDetail_20' ) start [2025-11-14 07:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16198872', 'tblTempUsageDetail_20' ) end [2025-11-14 07:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-14 07:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-14 07:00:28] Production.INFO: ==29355== Releasing lock... [2025-11-14 07:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 07:00:28] Production.INFO: 28.75 MB #Memory Used# [2025-11-14 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 05:00:06 [end_date_ymd] => 2025-11-14 08:00:06 [RateCDR] => 1 ) [2025-11-14 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-14 05:00:06' and `end` < '2025-11-14 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-14 08:00:18] Production.INFO: count ==186 [2025-11-14 08:00:18] Production.ERROR: pbx CDR StartTime 2025-11-14 05:00:06 - End Time 2025-11-14 08:00:06 [2025-11-14 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16199119', 'tblTempUsageDetail_20' ) start [2025-11-14 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16199119', 'tblTempUsageDetail_20' ) end [2025-11-14 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16199119', 'tblTempVendorCDR_20' ) start [2025-11-14 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16199119', 'tblTempVendorCDR_20' ) end [2025-11-14 08:00:18] Production.INFO: ProcessCDR(1,16199119,1,1,2) [2025-11-14 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16199119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 08:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16199119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 08:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16199119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 08:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16199119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16199119', 'tblTempUsageDetail_20' ) start [2025-11-14 08:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16199119', 'tblTempUsageDetail_20' ) end [2025-11-14 08:00:28] Production.ERROR: pbx prc_insertCDR start [2025-11-14 08:00:28] Production.ERROR: pbx prc_insertCDR end [2025-11-14 08:00:28] Production.INFO: ==1473== Releasing lock... [2025-11-14 08:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 08:00:28] Production.INFO: 29.25 MB #Memory Used# [2025-11-14 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 06:00:06 [end_date_ymd] => 2025-11-14 09:00:06 [RateCDR] => 1 ) [2025-11-14 09: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-14 06:00:06' and `end` < '2025-11-14 09: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-14 09:00:19] Production.INFO: count ==735 [2025-11-14 09:00:19] Production.ERROR: pbx CDR StartTime 2025-11-14 06:00:06 - End Time 2025-11-14 09:00:06 [2025-11-14 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16199366', 'tblTempUsageDetail_20' ) start [2025-11-14 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16199366', 'tblTempUsageDetail_20' ) end [2025-11-14 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16199366', 'tblTempVendorCDR_20' ) start [2025-11-14 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16199366', 'tblTempVendorCDR_20' ) end [2025-11-14 09:00:19] Production.INFO: ProcessCDR(1,16199366,1,1,2) [2025-11-14 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16199366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 09:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16199366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 09:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16199366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 09:00:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16199366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 09:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16199366', 'tblTempUsageDetail_20' ) start [2025-11-14 09:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16199366', 'tblTempUsageDetail_20' ) end [2025-11-14 09:00:29] Production.ERROR: pbx prc_insertCDR start [2025-11-14 09:00:29] Production.ERROR: pbx prc_insertCDR end [2025-11-14 09:00:29] Production.INFO: ==5960== Releasing lock... [2025-11-14 09:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 09:00:29] Production.INFO: 33.5 MB #Memory Used# [2025-11-14 10:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 07:00:07 [end_date_ymd] => 2025-11-14 10:00:07 [RateCDR] => 1 ) [2025-11-14 10: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-14 07:00:07' and `end` < '2025-11-14 10: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-14 10:00:23] Production.INFO: count ==2123 [2025-11-14 10:00:23] Production.ERROR: pbx CDR StartTime 2025-11-14 07:00:07 - End Time 2025-11-14 10:00:07 [2025-11-14 10:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 10:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16199613', 'tblTempUsageDetail_20' ) start [2025-11-14 10:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16199613', 'tblTempUsageDetail_20' ) end [2025-11-14 10:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16199613', 'tblTempVendorCDR_20' ) start [2025-11-14 10:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16199613', 'tblTempVendorCDR_20' ) end [2025-11-14 10:00:24] Production.INFO: ProcessCDR(1,16199613,1,1,2) [2025-11-14 10:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16199613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 10:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16199613,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 10:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16199613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 10:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16199613,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 10:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16199613', 'tblTempUsageDetail_20' ) start [2025-11-14 10:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16199613', 'tblTempUsageDetail_20' ) end [2025-11-14 10:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-14 10:00:37] Production.ERROR: pbx prc_insertCDR end [2025-11-14 10:00:37] Production.INFO: ==10315== Releasing lock... [2025-11-14 10:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 10:00:37] Production.INFO: 44 MB #Memory Used# [2025-11-14 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 08:00:06 [end_date_ymd] => 2025-11-14 11:00:06 [RateCDR] => 1 ) [2025-11-14 11: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-14 08:00:06' and `end` < '2025-11-14 11: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-14 11:00:19] Production.INFO: count ==3544 [2025-11-14 11:00:21] Production.ERROR: pbx CDR StartTime 2025-11-14 08:00:06 - End Time 2025-11-14 11:00:06 [2025-11-14 11:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16199860', 'tblTempUsageDetail_20' ) start [2025-11-14 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16199860', 'tblTempUsageDetail_20' ) end [2025-11-14 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16199860', 'tblTempVendorCDR_20' ) start [2025-11-14 11:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16199860', 'tblTempVendorCDR_20' ) end [2025-11-14 11:00:21] Production.INFO: ProcessCDR(1,16199860,1,1,2) [2025-11-14 11:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16199860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 11:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16199860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 11:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16199860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 11:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16199860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 11:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16199860', 'tblTempUsageDetail_20' ) start [2025-11-14 11:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16199860', 'tblTempUsageDetail_20' ) end [2025-11-14 11:00:33] Production.ERROR: pbx prc_insertCDR start [2025-11-14 11:00:35] Production.ERROR: pbx prc_insertCDR end [2025-11-14 11:00:35] Production.INFO: ==14722== Releasing lock... [2025-11-14 11:00:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 11:00:35] Production.INFO: 54.75 MB #Memory Used# [2025-11-14 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 09:00:06 [end_date_ymd] => 2025-11-14 12:00:06 [RateCDR] => 1 ) [2025-11-14 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-14 09:00:06' and `end` < '2025-11-14 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-14 12:00:22] Production.INFO: count ==4613 [2025-11-14 12:00:24] Production.ERROR: pbx CDR StartTime 2025-11-14 09:00:06 - End Time 2025-11-14 12:00:06 [2025-11-14 12:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 12:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16200107', 'tblTempUsageDetail_20' ) start [2025-11-14 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16200107', 'tblTempUsageDetail_20' ) end [2025-11-14 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16200107', 'tblTempVendorCDR_20' ) start [2025-11-14 12:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16200107', 'tblTempVendorCDR_20' ) end [2025-11-14 12:00:25] Production.INFO: ProcessCDR(1,16200107,1,1,2) [2025-11-14 12:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16200107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 12:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16200107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 12:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16200107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 12:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16200107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 12:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16200107', 'tblTempUsageDetail_20' ) start [2025-11-14 12:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16200107', 'tblTempUsageDetail_20' ) end [2025-11-14 12:00:36] Production.ERROR: pbx prc_insertCDR start [2025-11-14 12:00:39] Production.ERROR: pbx prc_insertCDR end [2025-11-14 12:00:39] Production.INFO: ==18932== Releasing lock... [2025-11-14 12:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 12:00:39] Production.INFO: 62.75 MB #Memory Used# [2025-11-14 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 10:00:06 [end_date_ymd] => 2025-11-14 13:00:06 [RateCDR] => 1 ) [2025-11-14 13: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-14 10:00:06' and `end` < '2025-11-14 13: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-14 13:00:21] Production.INFO: count ==4897 [2025-11-14 13:00:23] Production.ERROR: pbx CDR StartTime 2025-11-14 10:00:06 - End Time 2025-11-14 13:00:06 [2025-11-14 13:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 13:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16200354', 'tblTempUsageDetail_20' ) start [2025-11-14 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16200354', 'tblTempUsageDetail_20' ) end [2025-11-14 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16200354', 'tblTempVendorCDR_20' ) start [2025-11-14 13:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16200354', 'tblTempVendorCDR_20' ) end [2025-11-14 13:00:24] Production.INFO: ProcessCDR(1,16200354,1,1,2) [2025-11-14 13:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16200354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 13:00:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16200354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 13:00:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16200354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 13:00:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16200354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 13:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16200354', 'tblTempUsageDetail_20' ) start [2025-11-14 13:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16200354', 'tblTempUsageDetail_20' ) end [2025-11-14 13:00:36] Production.ERROR: pbx prc_insertCDR start [2025-11-14 13:00:39] Production.ERROR: pbx prc_insertCDR end [2025-11-14 13:00:39] Production.INFO: ==23261== Releasing lock... [2025-11-14 13:00:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 13:00:39] Production.INFO: 65 MB #Memory Used# [2025-11-14 14:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 11:00:05 [end_date_ymd] => 2025-11-14 14:00:05 [RateCDR] => 1 ) [2025-11-14 14: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-14 11:00:05' and `end` < '2025-11-14 14: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-14 14:00:20] Production.INFO: count ==5072 [2025-11-14 14:00:23] Production.ERROR: pbx CDR StartTime 2025-11-14 11:00:05 - End Time 2025-11-14 14:00:05 [2025-11-14 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16200601', 'tblTempUsageDetail_20' ) start [2025-11-14 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16200601', 'tblTempUsageDetail_20' ) end [2025-11-14 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16200601', 'tblTempVendorCDR_20' ) start [2025-11-14 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16200601', 'tblTempVendorCDR_20' ) end [2025-11-14 14:00:23] Production.INFO: ProcessCDR(1,16200601,1,1,2) [2025-11-14 14:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16200601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 14:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16200601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 14:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16200601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 14:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16200601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 14:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16200601', 'tblTempUsageDetail_20' ) start [2025-11-14 14:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16200601', 'tblTempUsageDetail_20' ) end [2025-11-14 14:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-14 14:00:36] Production.ERROR: pbx prc_insertCDR end [2025-11-14 14:00:36] Production.INFO: ==27992== Releasing lock... [2025-11-14 14:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 14:00:36] Production.INFO: 66.25 MB #Memory Used# [2025-11-14 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 12:00:06 [end_date_ymd] => 2025-11-14 15:00:06 [RateCDR] => 1 ) [2025-11-14 15: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-14 12:00:06' and `end` < '2025-11-14 15: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-14 15:00:20] Production.INFO: count ==5112 [2025-11-14 15:00:23] Production.ERROR: pbx CDR StartTime 2025-11-14 12:00:06 - End Time 2025-11-14 15:00:06 [2025-11-14 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16200848', 'tblTempUsageDetail_20' ) start [2025-11-14 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16200848', 'tblTempUsageDetail_20' ) end [2025-11-14 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16200848', 'tblTempVendorCDR_20' ) start [2025-11-14 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16200848', 'tblTempVendorCDR_20' ) end [2025-11-14 15:00:23] Production.INFO: ProcessCDR(1,16200848,1,1,2) [2025-11-14 15:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16200848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 15:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16200848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 15:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16200848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 15:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16200848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 15:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16200848', 'tblTempUsageDetail_20' ) start [2025-11-14 15:00:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16200848', 'tblTempUsageDetail_20' ) end [2025-11-14 15:00:35] Production.ERROR: pbx prc_insertCDR start [2025-11-14 15:00:38] Production.ERROR: pbx prc_insertCDR end [2025-11-14 15:00:38] Production.INFO: ==32255== Releasing lock... [2025-11-14 15:00:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 15:00:38] Production.INFO: 66.5 MB #Memory Used# [2025-11-14 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 13:00:06 [end_date_ymd] => 2025-11-14 16:00:06 [RateCDR] => 1 ) [2025-11-14 16: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-14 13:00:06' and `end` < '2025-11-14 16: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-14 16:00:22] Production.INFO: count ==5356 [2025-11-14 16:00:25] Production.ERROR: pbx CDR StartTime 2025-11-14 13:00:06 - End Time 2025-11-14 16:00:06 [2025-11-14 16:00:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 16:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16201094', 'tblTempUsageDetail_20' ) start [2025-11-14 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16201094', 'tblTempUsageDetail_20' ) end [2025-11-14 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16201094', 'tblTempVendorCDR_20' ) start [2025-11-14 16:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16201094', 'tblTempVendorCDR_20' ) end [2025-11-14 16:00:26] Production.INFO: ProcessCDR(1,16201094,1,1,2) [2025-11-14 16:00:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16201094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 16:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16201094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 16:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16201094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 16:00:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16201094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 16:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16201094', 'tblTempUsageDetail_20' ) start [2025-11-14 16:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16201094', 'tblTempUsageDetail_20' ) end [2025-11-14 16:00:38] Production.ERROR: pbx prc_insertCDR start [2025-11-14 16:00:41] Production.ERROR: pbx prc_insertCDR end [2025-11-14 16:00:41] Production.INFO: ==5332== Releasing lock... [2025-11-14 16:00:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 16:00:41] Production.INFO: 68.25 MB #Memory Used# [2025-11-14 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 14:00:06 [end_date_ymd] => 2025-11-14 17:00:06 [RateCDR] => 1 ) [2025-11-14 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-14 14:00:06' and `end` < '2025-11-14 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-14 17:00:21] Production.INFO: count ==5642 [2025-11-14 17:00:24] Production.ERROR: pbx CDR StartTime 2025-11-14 14:00:06 - End Time 2025-11-14 17:00:06 [2025-11-14 17:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 17:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16201342', 'tblTempUsageDetail_20' ) start [2025-11-14 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16201342', 'tblTempUsageDetail_20' ) end [2025-11-14 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16201342', 'tblTempVendorCDR_20' ) start [2025-11-14 17:00:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16201342', 'tblTempVendorCDR_20' ) end [2025-11-14 17:00:25] Production.INFO: ProcessCDR(1,16201342,1,1,2) [2025-11-14 17:00:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16201342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 17:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16201342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 17:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16201342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 17:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16201342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 17:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16201342', 'tblTempUsageDetail_20' ) start [2025-11-14 17:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16201342', 'tblTempUsageDetail_20' ) end [2025-11-14 17:00:38] Production.ERROR: pbx prc_insertCDR start [2025-11-14 17:00:41] Production.ERROR: pbx prc_insertCDR end [2025-11-14 17:00:41] Production.INFO: ==9691== Releasing lock... [2025-11-14 17:00:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 17:00:41] Production.INFO: 70.5 MB #Memory Used# [2025-11-14 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 15:00:06 [end_date_ymd] => 2025-11-14 18:00:06 [RateCDR] => 1 ) [2025-11-14 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-14 15:00:06' and `end` < '2025-11-14 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-14 18:00:25] Production.INFO: count ==5400 [2025-11-14 18:00:27] Production.ERROR: pbx CDR StartTime 2025-11-14 15:00:06 - End Time 2025-11-14 18:00:06 [2025-11-14 18:00:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 18:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16201586', 'tblTempUsageDetail_20' ) start [2025-11-14 18:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16201586', 'tblTempUsageDetail_20' ) end [2025-11-14 18:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16201586', 'tblTempVendorCDR_20' ) start [2025-11-14 18:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16201586', 'tblTempVendorCDR_20' ) end [2025-11-14 18:00:27] Production.INFO: ProcessCDR(1,16201586,1,1,2) [2025-11-14 18:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16201586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 18:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16201586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 18:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16201586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 18:00:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16201586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 18:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16201586', 'tblTempUsageDetail_20' ) start [2025-11-14 18:00:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16201586', 'tblTempUsageDetail_20' ) end [2025-11-14 18:00:39] Production.ERROR: pbx prc_insertCDR start [2025-11-14 18:00:40] Production.ERROR: pbx prc_insertCDR end [2025-11-14 18:00:40] Production.INFO: ==14383== Releasing lock... [2025-11-14 18:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 18:00:40] Production.INFO: 68.75 MB #Memory Used# [2025-11-14 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 16:00:06 [end_date_ymd] => 2025-11-14 19:00:06 [RateCDR] => 1 ) [2025-11-14 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-14 16:00:06' and `end` < '2025-11-14 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-14 19:00:19] Production.INFO: count ==4791 [2025-11-14 19:00:21] Production.ERROR: pbx CDR StartTime 2025-11-14 16:00:06 - End Time 2025-11-14 19:00:06 [2025-11-14 19:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 19:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16201833', 'tblTempUsageDetail_20' ) start [2025-11-14 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16201833', 'tblTempUsageDetail_20' ) end [2025-11-14 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16201833', 'tblTempVendorCDR_20' ) start [2025-11-14 19:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16201833', 'tblTempVendorCDR_20' ) end [2025-11-14 19:00:22] Production.INFO: ProcessCDR(1,16201833,1,1,2) [2025-11-14 19:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16201833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 19:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16201833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 19:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16201833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 19:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16201833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 19:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16201833', 'tblTempUsageDetail_20' ) start [2025-11-14 19:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16201833', 'tblTempUsageDetail_20' ) end [2025-11-14 19:00:32] Production.ERROR: pbx prc_insertCDR start [2025-11-14 19:00:34] Production.ERROR: pbx prc_insertCDR end [2025-11-14 19:00:34] Production.INFO: ==18889== Releasing lock... [2025-11-14 19:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 19:00:34] Production.INFO: 64 MB #Memory Used# [2025-11-14 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 17:00:06 [end_date_ymd] => 2025-11-14 20:00:06 [RateCDR] => 1 ) [2025-11-14 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-14 17:00:06' and `end` < '2025-11-14 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-14 20:00:19] Production.INFO: count ==3804 [2025-11-14 20:00:20] Production.ERROR: pbx CDR StartTime 2025-11-14 17:00:06 - End Time 2025-11-14 20:00:06 [2025-11-14 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16202080', 'tblTempUsageDetail_20' ) start [2025-11-14 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16202080', 'tblTempUsageDetail_20' ) end [2025-11-14 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16202080', 'tblTempVendorCDR_20' ) start [2025-11-14 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16202080', 'tblTempVendorCDR_20' ) end [2025-11-14 20:00:20] Production.INFO: ProcessCDR(1,16202080,1,1,2) [2025-11-14 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16202080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 20:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16202080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 20:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16202080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 20:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16202080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 20:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16202080', 'tblTempUsageDetail_20' ) start [2025-11-14 20:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16202080', 'tblTempUsageDetail_20' ) end [2025-11-14 20:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-14 20:00:32] Production.ERROR: pbx prc_insertCDR end [2025-11-14 20:00:32] Production.INFO: ==23707== Releasing lock... [2025-11-14 20:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 20:00:32] Production.INFO: 56.5 MB #Memory Used# [2025-11-14 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 18:00:06 [end_date_ymd] => 2025-11-14 21:00:06 [RateCDR] => 1 ) [2025-11-14 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-14 18:00:06' and `end` < '2025-11-14 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-14 21:00:19] Production.INFO: count ==3128 [2025-11-14 21:00:20] Production.ERROR: pbx CDR StartTime 2025-11-14 18:00:06 - End Time 2025-11-14 21:00:06 [2025-11-14 21:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16202327', 'tblTempUsageDetail_20' ) start [2025-11-14 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16202327', 'tblTempUsageDetail_20' ) end [2025-11-14 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16202327', 'tblTempVendorCDR_20' ) start [2025-11-14 21:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16202327', 'tblTempVendorCDR_20' ) end [2025-11-14 21:00:20] Production.INFO: ProcessCDR(1,16202327,1,1,2) [2025-11-14 21:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16202327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 21:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16202327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 21:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16202327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 21:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16202327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 21:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16202327', 'tblTempUsageDetail_20' ) start [2025-11-14 21:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16202327', 'tblTempUsageDetail_20' ) end [2025-11-14 21:00:32] Production.ERROR: pbx prc_insertCDR start [2025-11-14 21:00:32] Production.ERROR: pbx prc_insertCDR end [2025-11-14 21:00:32] Production.INFO: ==28275== Releasing lock... [2025-11-14 21:00:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 21:00:32] Production.INFO: 51.5 MB #Memory Used# [2025-11-14 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 19:00:06 [end_date_ymd] => 2025-11-14 22:00:06 [RateCDR] => 1 ) [2025-11-14 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-14 19:00:06' and `end` < '2025-11-14 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-14 22:00:20] Production.INFO: count ==2431 [2025-11-14 22:00:21] Production.ERROR: pbx CDR StartTime 2025-11-14 19:00:06 - End Time 2025-11-14 22:00:06 [2025-11-14 22:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16202574', 'tblTempUsageDetail_20' ) start [2025-11-14 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16202574', 'tblTempUsageDetail_20' ) end [2025-11-14 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16202574', 'tblTempVendorCDR_20' ) start [2025-11-14 22:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16202574', 'tblTempVendorCDR_20' ) end [2025-11-14 22:00:21] Production.INFO: ProcessCDR(1,16202574,1,1,2) [2025-11-14 22:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16202574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 22:00:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16202574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 22:00:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16202574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 22:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16202574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 22:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16202574', 'tblTempUsageDetail_20' ) start [2025-11-14 22:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16202574', 'tblTempUsageDetail_20' ) end [2025-11-14 22:00:32] Production.ERROR: pbx prc_insertCDR start [2025-11-14 22:00:33] Production.ERROR: pbx prc_insertCDR end [2025-11-14 22:00:33] Production.INFO: ==457== Releasing lock... [2025-11-14 22:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 22:00:33] Production.INFO: 46.5 MB #Memory Used# [2025-11-14 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-11-14 20:00:06 [end_date_ymd] => 2025-11-14 23:00:06 [RateCDR] => 1 ) [2025-11-14 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-14 20:00:06' and `end` < '2025-11-14 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-14 23:00:19] Production.INFO: count ==1946 [2025-11-14 23:00:19] Production.ERROR: pbx CDR StartTime 2025-11-14 20:00:06 - End Time 2025-11-14 23:00:06 [2025-11-14 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-11-14 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16202821', 'tblTempUsageDetail_20' ) start [2025-11-14 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16202821', 'tblTempUsageDetail_20' ) end [2025-11-14 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16202821', 'tblTempVendorCDR_20' ) start [2025-11-14 23:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16202821', 'tblTempVendorCDR_20' ) end [2025-11-14 23:00:20] Production.INFO: ProcessCDR(1,16202821,1,1,2) [2025-11-14 23:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16202821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 23:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16202821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-11-14 23:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16202821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 23:00:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16202821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-11-14 23:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16202821', 'tblTempUsageDetail_20' ) start [2025-11-14 23:00:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16202821', 'tblTempUsageDetail_20' ) end [2025-11-14 23:00:31] Production.ERROR: pbx prc_insertCDR start [2025-11-14 23:00:31] Production.ERROR: pbx prc_insertCDR end [2025-11-14 23:00:31] Production.INFO: ==5274== Releasing lock... [2025-11-14 23:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-11-14 23:00:31] Production.INFO: 43 MB #Memory Used#