[2026-01-20 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-19 21:02:05 [end_date_ymd] => 2026-01-20 00:02:05 [RateCDR] => 1 ) [2026-01-20 00:02: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` >= '2026-01-19 21:02:05' and `end` < '2026-01-20 00:02: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 ,'') [2026-01-20 00:02:38] Production.INFO: count ==446 [2026-01-20 00:02:38] Production.ERROR: pbx CDR StartTime 2026-01-19 21:02:05 - End Time 2026-01-20 00:02:05 [2026-01-20 00:02:38] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 00:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16594303', 'tblTempUsageDetail_20' ) start [2026-01-20 00:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16594303', 'tblTempUsageDetail_20' ) end [2026-01-20 00:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16594303', 'tblTempVendorCDR_20' ) start [2026-01-20 00:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16594303', 'tblTempVendorCDR_20' ) end [2026-01-20 00:02:38] Production.INFO: ProcessCDR(1,16594303,1,1,2) [2026-01-20 00:02:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16594303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 00:05:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16594303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 00:05:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16594303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 00:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16594303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 00:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16594303', 'tblTempUsageDetail_20' ) start [2026-01-20 00:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16594303', 'tblTempUsageDetail_20' ) end [2026-01-20 00:09:30] Production.ERROR: pbx prc_insertCDR start [2026-01-20 00:09:30] Production.ERROR: pbx prc_insertCDR end [2026-01-20 00:09:31] Production.INFO: ==20540== Releasing lock... [2026-01-20 00:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 00:09:31] Production.INFO: 35.75 MB #Memory Used# [2026-01-20 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-19 22:02:05 [end_date_ymd] => 2026-01-20 01:02:05 [RateCDR] => 1 ) [2026-01-20 01:02: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` >= '2026-01-19 22:02:05' and `end` < '2026-01-20 01:02: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 ,'') [2026-01-20 01:02:17] Production.INFO: count ==434 [2026-01-20 01:02:17] Production.ERROR: pbx CDR StartTime 2026-01-19 22:02:05 - End Time 2026-01-20 01:02:05 [2026-01-20 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16594550', 'tblTempUsageDetail_20' ) start [2026-01-20 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16594550', 'tblTempUsageDetail_20' ) end [2026-01-20 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16594550', 'tblTempVendorCDR_20' ) start [2026-01-20 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16594550', 'tblTempVendorCDR_20' ) end [2026-01-20 01:02:17] Production.INFO: ProcessCDR(1,16594550,1,1,2) [2026-01-20 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16594550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 01:05:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16594550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 01:05:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16594550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 01:09:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16594550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 01:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16594550', 'tblTempUsageDetail_20' ) start [2026-01-20 01:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16594550', 'tblTempUsageDetail_20' ) end [2026-01-20 01:09:36] Production.ERROR: pbx prc_insertCDR start [2026-01-20 01:09:36] Production.ERROR: pbx prc_insertCDR end [2026-01-20 01:09:36] Production.INFO: ==25045== Releasing lock... [2026-01-20 01:09:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 01:09:36] Production.INFO: 31.5 MB #Memory Used# [2026-01-20 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-19 23:02:06 [end_date_ymd] => 2026-01-20 02:02:06 [RateCDR] => 1 ) [2026-01-20 02:02: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` >= '2026-01-19 23:02:06' and `end` < '2026-01-20 02:02: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 ,'') [2026-01-20 02:02:18] Production.INFO: count ==516 [2026-01-20 02:02:18] Production.ERROR: pbx CDR StartTime 2026-01-19 23:02:06 - End Time 2026-01-20 02:02:06 [2026-01-20 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16594797', 'tblTempUsageDetail_20' ) start [2026-01-20 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16594797', 'tblTempUsageDetail_20' ) end [2026-01-20 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16594797', 'tblTempVendorCDR_20' ) start [2026-01-20 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16594797', 'tblTempVendorCDR_20' ) end [2026-01-20 02:02:18] Production.INFO: ProcessCDR(1,16594797,1,1,2) [2026-01-20 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16594797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 02:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16594797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 02:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16594797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 02:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16594797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16594797', 'tblTempUsageDetail_20' ) start [2026-01-20 02:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16594797', 'tblTempUsageDetail_20' ) end [2026-01-20 02:09:20] Production.ERROR: pbx prc_insertCDR start [2026-01-20 02:09:20] Production.ERROR: pbx prc_insertCDR end [2026-01-20 02:09:20] Production.INFO: ==29426== Releasing lock... [2026-01-20 02:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 02:09:20] Production.INFO: 32.5 MB #Memory Used# [2026-01-20 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 00:02:06 [end_date_ymd] => 2026-01-20 03:02:06 [RateCDR] => 1 ) [2026-01-20 03:02: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` >= '2026-01-20 00:02:06' and `end` < '2026-01-20 03:02: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 ,'') [2026-01-20 03:02:18] Production.INFO: count ==526 [2026-01-20 03:02:18] Production.ERROR: pbx CDR StartTime 2026-01-20 00:02:06 - End Time 2026-01-20 03:02:06 [2026-01-20 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16595044', 'tblTempUsageDetail_20' ) start [2026-01-20 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16595044', 'tblTempUsageDetail_20' ) end [2026-01-20 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16595044', 'tblTempVendorCDR_20' ) start [2026-01-20 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16595044', 'tblTempVendorCDR_20' ) end [2026-01-20 03:02:18] Production.INFO: ProcessCDR(1,16595044,1,1,2) [2026-01-20 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16595044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 03:05:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16595044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 03:05:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16595044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 03:09:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16595044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 03:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16595044', 'tblTempUsageDetail_20' ) start [2026-01-20 03:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16595044', 'tblTempUsageDetail_20' ) end [2026-01-20 03:09:36] Production.ERROR: pbx prc_insertCDR start [2026-01-20 03:09:36] Production.ERROR: pbx prc_insertCDR end [2026-01-20 03:09:36] Production.INFO: ==1762== Releasing lock... [2026-01-20 03:09:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 03:09:36] Production.INFO: 31.75 MB #Memory Used# [2026-01-20 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 01:02:06 [end_date_ymd] => 2026-01-20 04:02:06 [RateCDR] => 1 ) [2026-01-20 04:02: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` >= '2026-01-20 01:02:06' and `end` < '2026-01-20 04:02: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 ,'') [2026-01-20 04:02:18] Production.INFO: count ==374 [2026-01-20 04:02:18] Production.ERROR: pbx CDR StartTime 2026-01-20 01:02:06 - End Time 2026-01-20 04:02:06 [2026-01-20 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16595292', 'tblTempUsageDetail_20' ) start [2026-01-20 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16595292', 'tblTempUsageDetail_20' ) end [2026-01-20 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16595292', 'tblTempVendorCDR_20' ) start [2026-01-20 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16595292', 'tblTempVendorCDR_20' ) end [2026-01-20 04:02:18] Production.INFO: ProcessCDR(1,16595292,1,1,2) [2026-01-20 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16595292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 04:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16595292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 04:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16595292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16595292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16595292', 'tblTempUsageDetail_20' ) start [2026-01-20 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16595292', 'tblTempUsageDetail_20' ) end [2026-01-20 04:09:22] Production.ERROR: pbx prc_insertCDR start [2026-01-20 04:09:22] Production.ERROR: pbx prc_insertCDR end [2026-01-20 04:09:22] Production.INFO: ==6851== Releasing lock... [2026-01-20 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 04:09:22] Production.INFO: 31.75 MB #Memory Used# [2026-01-20 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 02:02:05 [end_date_ymd] => 2026-01-20 05:02:05 [RateCDR] => 1 ) [2026-01-20 05:02: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` >= '2026-01-20 02:02:05' and `end` < '2026-01-20 05:02: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 ,'') [2026-01-20 05:02:18] Production.INFO: count ==192 [2026-01-20 05:02:18] Production.ERROR: pbx CDR StartTime 2026-01-20 02:02:05 - End Time 2026-01-20 05:02:05 [2026-01-20 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16595540', 'tblTempUsageDetail_20' ) start [2026-01-20 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16595540', 'tblTempUsageDetail_20' ) end [2026-01-20 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16595540', 'tblTempVendorCDR_20' ) start [2026-01-20 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16595540', 'tblTempVendorCDR_20' ) end [2026-01-20 05:02:18] Production.INFO: ProcessCDR(1,16595540,1,1,2) [2026-01-20 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16595540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 05:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16595540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 05:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16595540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16595540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16595540', 'tblTempUsageDetail_20' ) start [2026-01-20 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16595540', 'tblTempUsageDetail_20' ) end [2026-01-20 05:09:20] Production.ERROR: pbx prc_insertCDR start [2026-01-20 05:09:20] Production.ERROR: pbx prc_insertCDR end [2026-01-20 05:09:20] Production.INFO: ==11741== Releasing lock... [2026-01-20 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 05:09:20] Production.INFO: 29.5 MB #Memory Used# [2026-01-20 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 03:02:05 [end_date_ymd] => 2026-01-20 06:02:05 [RateCDR] => 1 ) [2026-01-20 06:02: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` >= '2026-01-20 03:02:05' and `end` < '2026-01-20 06:02: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 ,'') [2026-01-20 06:02:17] Production.INFO: count ==100 [2026-01-20 06:02:17] Production.ERROR: pbx CDR StartTime 2026-01-20 03:02:05 - End Time 2026-01-20 06:02:05 [2026-01-20 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16595787', 'tblTempUsageDetail_20' ) start [2026-01-20 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16595787', 'tblTempUsageDetail_20' ) end [2026-01-20 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16595787', 'tblTempVendorCDR_20' ) start [2026-01-20 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16595787', 'tblTempVendorCDR_20' ) end [2026-01-20 06:02:17] Production.INFO: ProcessCDR(1,16595787,1,1,2) [2026-01-20 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16595787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 06:05:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16595787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 06:05:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16595787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 06:09:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16595787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 06:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16595787', 'tblTempUsageDetail_20' ) start [2026-01-20 06:09:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16595787', 'tblTempUsageDetail_20' ) end [2026-01-20 06:09:36] Production.ERROR: pbx prc_insertCDR start [2026-01-20 06:09:36] Production.ERROR: pbx prc_insertCDR end [2026-01-20 06:09:36] Production.INFO: ==16270== Releasing lock... [2026-01-20 06:09:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 06:09:36] Production.INFO: 28.75 MB #Memory Used# [2026-01-20 07:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 04:02:06 [end_date_ymd] => 2026-01-20 07:02:06 [RateCDR] => 1 ) [2026-01-20 07:02: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` >= '2026-01-20 04:02:06' and `end` < '2026-01-20 07:02: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 ,'') [2026-01-20 07:02:18] Production.INFO: count ==110 [2026-01-20 07:02:18] Production.ERROR: pbx CDR StartTime 2026-01-20 04:02:06 - End Time 2026-01-20 07:02:06 [2026-01-20 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16596034', 'tblTempUsageDetail_20' ) start [2026-01-20 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16596034', 'tblTempUsageDetail_20' ) end [2026-01-20 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16596034', 'tblTempVendorCDR_20' ) start [2026-01-20 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16596034', 'tblTempVendorCDR_20' ) end [2026-01-20 07:02:18] Production.INFO: ProcessCDR(1,16596034,1,1,2) [2026-01-20 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16596034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 07:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16596034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 07:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16596034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 07:09:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16596034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 07:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16596034', 'tblTempUsageDetail_20' ) start [2026-01-20 07:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16596034', 'tblTempUsageDetail_20' ) end [2026-01-20 07:09:33] Production.ERROR: pbx prc_insertCDR start [2026-01-20 07:09:33] Production.ERROR: pbx prc_insertCDR end [2026-01-20 07:09:33] Production.INFO: ==22361== Releasing lock... [2026-01-20 07:09:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 07:09:33] Production.INFO: 28.75 MB #Memory Used# [2026-01-20 08:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 05:02:06 [end_date_ymd] => 2026-01-20 08:02:06 [RateCDR] => 1 ) [2026-01-20 08:02: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` >= '2026-01-20 05:02:06' and `end` < '2026-01-20 08:02: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 ,'') [2026-01-20 08:02:18] Production.INFO: count ==200 [2026-01-20 08:02:18] Production.ERROR: pbx CDR StartTime 2026-01-20 05:02:06 - End Time 2026-01-20 08:02:06 [2026-01-20 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16596281', 'tblTempUsageDetail_20' ) start [2026-01-20 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16596281', 'tblTempUsageDetail_20' ) end [2026-01-20 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16596281', 'tblTempVendorCDR_20' ) start [2026-01-20 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16596281', 'tblTempVendorCDR_20' ) end [2026-01-20 08:02:18] Production.INFO: ProcessCDR(1,16596281,1,1,2) [2026-01-20 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16596281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 08:05:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16596281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 08:05:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16596281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 08:09:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16596281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 08:09:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16596281', 'tblTempUsageDetail_20' ) start [2026-01-20 08:09:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16596281', 'tblTempUsageDetail_20' ) end [2026-01-20 08:09:44] Production.ERROR: pbx prc_insertCDR start [2026-01-20 08:09:44] Production.ERROR: pbx prc_insertCDR end [2026-01-20 08:09:44] Production.INFO: ==27049== Releasing lock... [2026-01-20 08:09:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 08:09:44] Production.INFO: 29.75 MB #Memory Used# [2026-01-20 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 06:02:05 [end_date_ymd] => 2026-01-20 09:02:05 [RateCDR] => 1 ) [2026-01-20 09:02: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` >= '2026-01-20 06:02:05' and `end` < '2026-01-20 09:02: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 ,'') [2026-01-20 09:02:17] Production.INFO: count ==901 [2026-01-20 09:02:17] Production.ERROR: pbx CDR StartTime 2026-01-20 06:02:05 - End Time 2026-01-20 09:02:05 [2026-01-20 09:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16596528', 'tblTempUsageDetail_20' ) start [2026-01-20 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16596528', 'tblTempUsageDetail_20' ) end [2026-01-20 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16596528', 'tblTempVendorCDR_20' ) start [2026-01-20 09:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16596528', 'tblTempVendorCDR_20' ) end [2026-01-20 09:02:17] Production.INFO: ProcessCDR(1,16596528,1,1,2) [2026-01-20 09:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16596528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 09:05:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16596528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 09:05:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16596528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 09:09:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16596528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 09:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16596528', 'tblTempUsageDetail_20' ) start [2026-01-20 09:09:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16596528', 'tblTempUsageDetail_20' ) end [2026-01-20 09:09:35] Production.ERROR: pbx prc_insertCDR start [2026-01-20 09:09:35] Production.ERROR: pbx prc_insertCDR end [2026-01-20 09:09:35] Production.INFO: ==31567== Releasing lock... [2026-01-20 09:09:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 09:09:35] Production.INFO: 34.75 MB #Memory Used# [2026-01-20 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 07:02:06 [end_date_ymd] => 2026-01-20 10:02:06 [RateCDR] => 1 ) [2026-01-20 10:02: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` >= '2026-01-20 07:02:06' and `end` < '2026-01-20 10:02: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 ,'') [2026-01-20 10:02:22] Production.INFO: count ==2374 [2026-01-20 10:02:23] Production.ERROR: pbx CDR StartTime 2026-01-20 07:02:06 - End Time 2026-01-20 10:02:06 [2026-01-20 10:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 10:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16596775', 'tblTempUsageDetail_20' ) start [2026-01-20 10:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16596775', 'tblTempUsageDetail_20' ) end [2026-01-20 10:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16596775', 'tblTempVendorCDR_20' ) start [2026-01-20 10:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16596775', 'tblTempVendorCDR_20' ) end [2026-01-20 10:02:24] Production.INFO: ProcessCDR(1,16596775,1,1,2) [2026-01-20 10:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16596775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 10:05:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16596775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 10:05:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16596775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 10:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16596775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 10:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16596775', 'tblTempUsageDetail_20' ) start [2026-01-20 10:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16596775', 'tblTempUsageDetail_20' ) end [2026-01-20 10:09:29] Production.ERROR: pbx prc_insertCDR start [2026-01-20 10:09:31] Production.ERROR: pbx prc_insertCDR end [2026-01-20 10:09:31] Production.INFO: ==4022== Releasing lock... [2026-01-20 10:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 10:09:31] Production.INFO: 46.25 MB #Memory Used# [2026-01-20 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 08:02:05 [end_date_ymd] => 2026-01-20 11:02:05 [RateCDR] => 1 ) [2026-01-20 11:02: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` >= '2026-01-20 08:02:05' and `end` < '2026-01-20 11:02: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 ,'') [2026-01-20 11:02:19] Production.INFO: count ==4055 [2026-01-20 11:02:21] Production.ERROR: pbx CDR StartTime 2026-01-20 08:02:05 - End Time 2026-01-20 11:02:05 [2026-01-20 11:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16597022', 'tblTempUsageDetail_20' ) start [2026-01-20 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16597022', 'tblTempUsageDetail_20' ) end [2026-01-20 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16597022', 'tblTempVendorCDR_20' ) start [2026-01-20 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16597022', 'tblTempVendorCDR_20' ) end [2026-01-20 11:02:21] Production.INFO: ProcessCDR(1,16597022,1,1,2) [2026-01-20 11:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16597022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 11:05:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16597022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 11:05:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16597022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 11:09:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16597022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 11:09:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16597022', 'tblTempUsageDetail_20' ) start [2026-01-20 11:09:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16597022', 'tblTempUsageDetail_20' ) end [2026-01-20 11:09:47] Production.ERROR: pbx prc_insertCDR start [2026-01-20 11:09:49] Production.ERROR: pbx prc_insertCDR end [2026-01-20 11:09:50] Production.INFO: ==9660== Releasing lock... [2026-01-20 11:09:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 11:09:50] Production.INFO: 58.5 MB #Memory Used# [2026-01-20 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 09:02:05 [end_date_ymd] => 2026-01-20 12:02:05 [RateCDR] => 1 ) [2026-01-20 12:02: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` >= '2026-01-20 09:02:05' and `end` < '2026-01-20 12:02: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 ,'') [2026-01-20 12:02:24] Production.INFO: count ==5306 [2026-01-20 12:02:27] Production.ERROR: pbx CDR StartTime 2026-01-20 09:02:05 - End Time 2026-01-20 12:02:05 [2026-01-20 12:02:27] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 12:02:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16597269', 'tblTempUsageDetail_20' ) start [2026-01-20 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16597269', 'tblTempUsageDetail_20' ) end [2026-01-20 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16597269', 'tblTempVendorCDR_20' ) start [2026-01-20 12:02:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16597269', 'tblTempVendorCDR_20' ) end [2026-01-20 12:02:28] Production.INFO: ProcessCDR(1,16597269,1,1,2) [2026-01-20 12:02:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16597269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 12:05:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16597269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 12:05:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16597269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 12:09:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16597269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 12:09:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16597269', 'tblTempUsageDetail_20' ) start [2026-01-20 12:09:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16597269', 'tblTempUsageDetail_20' ) end [2026-01-20 12:09:47] Production.ERROR: pbx prc_insertCDR start [2026-01-20 12:09:50] Production.ERROR: pbx prc_insertCDR end [2026-01-20 12:09:50] Production.INFO: ==15008== Releasing lock... [2026-01-20 12:09:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 12:09:50] Production.INFO: 68 MB #Memory Used# [2026-01-20 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 10:02:05 [end_date_ymd] => 2026-01-20 13:02:05 [RateCDR] => 1 ) [2026-01-20 13:02: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` >= '2026-01-20 10:02:05' and `end` < '2026-01-20 13:02: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 ,'') [2026-01-20 13:02:20] Production.INFO: count ==5683 [2026-01-20 13:02:23] Production.ERROR: pbx CDR StartTime 2026-01-20 10:02:05 - End Time 2026-01-20 13:02:05 [2026-01-20 13:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16597516', 'tblTempUsageDetail_20' ) start [2026-01-20 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16597516', 'tblTempUsageDetail_20' ) end [2026-01-20 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16597516', 'tblTempVendorCDR_20' ) start [2026-01-20 13:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16597516', 'tblTempVendorCDR_20' ) end [2026-01-20 13:02:23] Production.INFO: ProcessCDR(1,16597516,1,1,2) [2026-01-20 13:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16597516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 13:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16597516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 13:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16597516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 13:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16597516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 13:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16597516', 'tblTempUsageDetail_20' ) start [2026-01-20 13:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16597516', 'tblTempUsageDetail_20' ) end [2026-01-20 13:09:19] Production.ERROR: pbx prc_insertCDR start [2026-01-20 13:09:21] Production.ERROR: pbx prc_insertCDR end [2026-01-20 13:09:21] Production.INFO: ==19225== Releasing lock... [2026-01-20 13:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 13:09:21] Production.INFO: 70.75 MB #Memory Used# [2026-01-20 14:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 11:02:06 [end_date_ymd] => 2026-01-20 14:02:06 [RateCDR] => 1 ) [2026-01-20 14:02: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` >= '2026-01-20 11:02:06' and `end` < '2026-01-20 14:02: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 ,'') [2026-01-20 14:02:19] Production.INFO: count ==5587 [2026-01-20 14:02:22] Production.ERROR: pbx CDR StartTime 2026-01-20 11:02:06 - End Time 2026-01-20 14:02:06 [2026-01-20 14:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 14:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16597763', 'tblTempUsageDetail_20' ) start [2026-01-20 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16597763', 'tblTempUsageDetail_20' ) end [2026-01-20 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16597763', 'tblTempVendorCDR_20' ) start [2026-01-20 14:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16597763', 'tblTempVendorCDR_20' ) end [2026-01-20 14:02:23] Production.INFO: ProcessCDR(1,16597763,1,1,2) [2026-01-20 14:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16597763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 14:05:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16597763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 14:05:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16597763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 14:09:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16597763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 14:09:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16597763', 'tblTempUsageDetail_20' ) start [2026-01-20 14:09:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16597763', 'tblTempUsageDetail_20' ) end [2026-01-20 14:09:47] Production.ERROR: pbx prc_insertCDR start [2026-01-20 14:09:51] Production.ERROR: pbx prc_insertCDR end [2026-01-20 14:09:51] Production.INFO: ==23522== Releasing lock... [2026-01-20 14:09:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 14:09:51] Production.INFO: 70 MB #Memory Used# [2026-01-20 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 12:02:06 [end_date_ymd] => 2026-01-20 15:02:06 [RateCDR] => 1 ) [2026-01-20 15:02: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` >= '2026-01-20 12:02:06' and `end` < '2026-01-20 15:02: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 ,'') [2026-01-20 15:02:31] Production.INFO: count ==5537 [2026-01-20 15:02:34] Production.ERROR: pbx CDR StartTime 2026-01-20 12:02:06 - End Time 2026-01-20 15:02:06 [2026-01-20 15:02:34] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 15:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16598010', 'tblTempUsageDetail_20' ) start [2026-01-20 15:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16598010', 'tblTempUsageDetail_20' ) end [2026-01-20 15:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16598010', 'tblTempVendorCDR_20' ) start [2026-01-20 15:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16598010', 'tblTempVendorCDR_20' ) end [2026-01-20 15:02:34] Production.INFO: ProcessCDR(1,16598010,1,1,2) [2026-01-20 15:02:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16598010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 15:05:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16598010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 15:05:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16598010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 15:09:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16598010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 15:09:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16598010', 'tblTempUsageDetail_20' ) start [2026-01-20 15:09:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16598010', 'tblTempUsageDetail_20' ) end [2026-01-20 15:09:45] Production.ERROR: pbx prc_insertCDR start [2026-01-20 15:09:49] Production.ERROR: pbx prc_insertCDR end [2026-01-20 15:09:49] Production.INFO: ==28117== Releasing lock... [2026-01-20 15:09:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 15:09:49] Production.INFO: 69.75 MB #Memory Used# [2026-01-20 16:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 13:02:06 [end_date_ymd] => 2026-01-20 16:02:06 [RateCDR] => 1 ) [2026-01-20 16:02: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` >= '2026-01-20 13:02:06' and `end` < '2026-01-20 16:02: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 ,'') [2026-01-20 16:02:19] Production.INFO: count ==5596 [2026-01-20 16:02:22] Production.ERROR: pbx CDR StartTime 2026-01-20 13:02:06 - End Time 2026-01-20 16:02:06 [2026-01-20 16:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 16:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16598257', 'tblTempUsageDetail_20' ) start [2026-01-20 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16598257', 'tblTempUsageDetail_20' ) end [2026-01-20 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16598257', 'tblTempVendorCDR_20' ) start [2026-01-20 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16598257', 'tblTempVendorCDR_20' ) end [2026-01-20 16:02:23] Production.INFO: ProcessCDR(1,16598257,1,1,2) [2026-01-20 16:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16598257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 16:05:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16598257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 16:05:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16598257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16598257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16598257', 'tblTempUsageDetail_20' ) start [2026-01-20 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16598257', 'tblTempUsageDetail_20' ) end [2026-01-20 16:09:27] Production.ERROR: pbx prc_insertCDR start [2026-01-20 16:09:30] Production.ERROR: pbx prc_insertCDR end [2026-01-20 16:09:30] Production.INFO: ==32566== Releasing lock... [2026-01-20 16:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 16:09:30] Production.INFO: 70.25 MB #Memory Used# [2026-01-20 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 14:02:05 [end_date_ymd] => 2026-01-20 17:02:05 [RateCDR] => 1 ) [2026-01-20 17:02: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` >= '2026-01-20 14:02:05' and `end` < '2026-01-20 17:02: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 ,'') [2026-01-20 17:02:21] Production.INFO: count ==5895 [2026-01-20 17:02:24] Production.ERROR: pbx CDR StartTime 2026-01-20 14:02:05 - End Time 2026-01-20 17:02:05 [2026-01-20 17:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 17:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16598504', 'tblTempUsageDetail_20' ) start [2026-01-20 17:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16598504', 'tblTempUsageDetail_20' ) end [2026-01-20 17:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16598504', 'tblTempVendorCDR_20' ) start [2026-01-20 17:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16598504', 'tblTempVendorCDR_20' ) end [2026-01-20 17:02:25] Production.INFO: ProcessCDR(1,16598504,1,1,2) [2026-01-20 17:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16598504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 17:05:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16598504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 17:05:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16598504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 17:09:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16598504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 17:09:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16598504', 'tblTempUsageDetail_20' ) start [2026-01-20 17:09:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16598504', 'tblTempUsageDetail_20' ) end [2026-01-20 17:09:40] Production.ERROR: pbx prc_insertCDR start [2026-01-20 17:09:42] Production.ERROR: pbx prc_insertCDR end [2026-01-20 17:09:42] Production.INFO: ==5858== Releasing lock... [2026-01-20 17:09:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 17:09:42] Production.INFO: 72.75 MB #Memory Used# [2026-01-20 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 15:02:05 [end_date_ymd] => 2026-01-20 18:02:05 [RateCDR] => 1 ) [2026-01-20 18:02: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` >= '2026-01-20 15:02:05' and `end` < '2026-01-20 18:02: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 ,'') [2026-01-20 18:02:18] Production.INFO: count ==4891 [2026-01-20 18:02:20] Production.ERROR: pbx CDR StartTime 2026-01-20 15:02:05 - End Time 2026-01-20 18:02:05 [2026-01-20 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16598749', 'tblTempUsageDetail_20' ) start [2026-01-20 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16598749', 'tblTempUsageDetail_20' ) end [2026-01-20 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16598749', 'tblTempVendorCDR_20' ) start [2026-01-20 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16598749', 'tblTempVendorCDR_20' ) end [2026-01-20 18:02:21] Production.INFO: ProcessCDR(1,16598749,1,1,2) [2026-01-20 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16598749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 18:05:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16598749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 18:05:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16598749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 18:09:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16598749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 18:09:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16598749', 'tblTempUsageDetail_20' ) start [2026-01-20 18:09:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16598749', 'tblTempUsageDetail_20' ) end [2026-01-20 18:09:41] Production.ERROR: pbx prc_insertCDR start [2026-01-20 18:09:42] Production.ERROR: pbx prc_insertCDR end [2026-01-20 18:09:42] Production.INFO: ==11039== Releasing lock... [2026-01-20 18:09:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 18:09:42] Production.INFO: 64.75 MB #Memory Used# [2026-01-20 19:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 16:02:06 [end_date_ymd] => 2026-01-20 19:02:06 [RateCDR] => 1 ) [2026-01-20 19:02: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` >= '2026-01-20 16:02:06' and `end` < '2026-01-20 19:02: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 ,'') [2026-01-20 19:02:19] Production.INFO: count ==3768 [2026-01-20 19:02:20] Production.ERROR: pbx CDR StartTime 2026-01-20 16:02:06 - End Time 2026-01-20 19:02:06 [2026-01-20 19:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16598996', 'tblTempUsageDetail_20' ) start [2026-01-20 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16598996', 'tblTempUsageDetail_20' ) end [2026-01-20 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16598996', 'tblTempVendorCDR_20' ) start [2026-01-20 19:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16598996', 'tblTempVendorCDR_20' ) end [2026-01-20 19:02:21] Production.INFO: ProcessCDR(1,16598996,1,1,2) [2026-01-20 19:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16598996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 19:05:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16598996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 19:05:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16598996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 19:09:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16598996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 19:09:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16598996', 'tblTempUsageDetail_20' ) start [2026-01-20 19:09:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16598996', 'tblTempUsageDetail_20' ) end [2026-01-20 19:09:38] Production.ERROR: pbx prc_insertCDR start [2026-01-20 19:09:39] Production.ERROR: pbx prc_insertCDR end [2026-01-20 19:09:39] Production.INFO: ==15874== Releasing lock... [2026-01-20 19:09:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 19:09:39] Production.INFO: 56.25 MB #Memory Used# [2026-01-20 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 17:02:05 [end_date_ymd] => 2026-01-20 20:02:05 [RateCDR] => 1 ) [2026-01-20 20:02: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` >= '2026-01-20 17:02:05' and `end` < '2026-01-20 20:02: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 ,'') [2026-01-20 20:02:18] Production.INFO: count ==2355 [2026-01-20 20:02:19] Production.ERROR: pbx CDR StartTime 2026-01-20 17:02:05 - End Time 2026-01-20 20:02:05 [2026-01-20 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16599243', 'tblTempUsageDetail_20' ) start [2026-01-20 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16599243', 'tblTempUsageDetail_20' ) end [2026-01-20 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16599243', 'tblTempVendorCDR_20' ) start [2026-01-20 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16599243', 'tblTempVendorCDR_20' ) end [2026-01-20 20:02:19] Production.INFO: ProcessCDR(1,16599243,1,1,2) [2026-01-20 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16599243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 20:05:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16599243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 20:05:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16599243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 20:09:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16599243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 20:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16599243', 'tblTempUsageDetail_20' ) start [2026-01-20 20:09:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16599243', 'tblTempUsageDetail_20' ) end [2026-01-20 20:09:34] Production.ERROR: pbx prc_insertCDR start [2026-01-20 20:09:34] Production.ERROR: pbx prc_insertCDR end [2026-01-20 20:09:34] Production.INFO: ==20333== Releasing lock... [2026-01-20 20:09:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 20:09:34] Production.INFO: 45.75 MB #Memory Used# [2026-01-20 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 18:02:05 [end_date_ymd] => 2026-01-20 21:02:05 [RateCDR] => 1 ) [2026-01-20 21:02: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` >= '2026-01-20 18:02:05' and `end` < '2026-01-20 21:02: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 ,'') [2026-01-20 21:02:17] Production.INFO: count ==1778 [2026-01-20 21:02:17] Production.ERROR: pbx CDR StartTime 2026-01-20 18:02:05 - End Time 2026-01-20 21:02:05 [2026-01-20 21:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16599490', 'tblTempUsageDetail_20' ) start [2026-01-20 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16599490', 'tblTempUsageDetail_20' ) end [2026-01-20 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16599490', 'tblTempVendorCDR_20' ) start [2026-01-20 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16599490', 'tblTempVendorCDR_20' ) end [2026-01-20 21:02:18] Production.INFO: ProcessCDR(1,16599490,1,1,2) [2026-01-20 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16599490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 21:05:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16599490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 21:05:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16599490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 21:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16599490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 21:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16599490', 'tblTempUsageDetail_20' ) start [2026-01-20 21:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16599490', 'tblTempUsageDetail_20' ) end [2026-01-20 21:09:30] Production.ERROR: pbx prc_insertCDR start [2026-01-20 21:09:30] Production.ERROR: pbx prc_insertCDR end [2026-01-20 21:09:30] Production.INFO: ==25113== Releasing lock... [2026-01-20 21:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 21:09:30] Production.INFO: 41.5 MB #Memory Used# [2026-01-20 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 19:02:06 [end_date_ymd] => 2026-01-20 22:02:06 [RateCDR] => 1 ) [2026-01-20 22:02: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` >= '2026-01-20 19:02:06' and `end` < '2026-01-20 22:02: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 ,'') [2026-01-20 22:02:18] Production.INFO: count ==1343 [2026-01-20 22:02:19] Production.ERROR: pbx CDR StartTime 2026-01-20 19:02:06 - End Time 2026-01-20 22:02:06 [2026-01-20 22:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16599737', 'tblTempUsageDetail_20' ) start [2026-01-20 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16599737', 'tblTempUsageDetail_20' ) end [2026-01-20 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16599737', 'tblTempVendorCDR_20' ) start [2026-01-20 22:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16599737', 'tblTempVendorCDR_20' ) end [2026-01-20 22:02:19] Production.INFO: ProcessCDR(1,16599737,1,1,2) [2026-01-20 22:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16599737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 22:05:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16599737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 22:05:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16599737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 22:09:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16599737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 22:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16599737', 'tblTempUsageDetail_20' ) start [2026-01-20 22:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16599737', 'tblTempUsageDetail_20' ) end [2026-01-20 22:09:33] Production.ERROR: pbx prc_insertCDR start [2026-01-20 22:09:33] Production.ERROR: pbx prc_insertCDR end [2026-01-20 22:09:33] Production.INFO: ==30408== Releasing lock... [2026-01-20 22:09:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 22:09:33] Production.INFO: 38.25 MB #Memory Used# [2026-01-20 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-20 20:02:06 [end_date_ymd] => 2026-01-20 23:02:06 [RateCDR] => 1 ) [2026-01-20 23:02: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` >= '2026-01-20 20:02:06' and `end` < '2026-01-20 23:02: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 ,'') [2026-01-20 23:02:18] Production.INFO: count ==1108 [2026-01-20 23:02:19] Production.ERROR: pbx CDR StartTime 2026-01-20 20:02:06 - End Time 2026-01-20 23:02:06 [2026-01-20 23:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-20 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16599984', 'tblTempUsageDetail_20' ) start [2026-01-20 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16599984', 'tblTempUsageDetail_20' ) end [2026-01-20 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16599984', 'tblTempVendorCDR_20' ) start [2026-01-20 23:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16599984', 'tblTempVendorCDR_20' ) end [2026-01-20 23:02:19] Production.INFO: ProcessCDR(1,16599984,1,1,2) [2026-01-20 23:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16599984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 23:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16599984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-20 23:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16599984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 23:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16599984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-20 23:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16599984', 'tblTempUsageDetail_20' ) start [2026-01-20 23:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16599984', 'tblTempUsageDetail_20' ) end [2026-01-20 23:09:29] Production.ERROR: pbx prc_insertCDR start [2026-01-20 23:09:29] Production.ERROR: pbx prc_insertCDR end [2026-01-20 23:09:29] Production.INFO: ==2363== Releasing lock... [2026-01-20 23:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-20 23:09:29] Production.INFO: 37 MB #Memory Used#