[2026-01-03 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2026-01-02 21:00:07 [end_date_ymd] => 2026-01-03 00:00:07 [RateCDR] => 1 ) [2026-01-03 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` >= '2026-01-02 21:00:07' and `end` < '2026-01-03 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 ,'') [2026-01-03 00:00:21] Production.INFO: count ==866 [2026-01-03 00:00:21] Production.ERROR: pbx CDR StartTime 2026-01-02 21:00:07 - End Time 2026-01-03 00:00:07 [2026-01-03 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16493516', 'tblTempUsageDetail_20' ) start [2026-01-03 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16493516', 'tblTempUsageDetail_20' ) end [2026-01-03 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16493516', 'tblTempVendorCDR_20' ) start [2026-01-03 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16493516', 'tblTempVendorCDR_20' ) end [2026-01-03 00:00:21] Production.INFO: ProcessCDR(1,16493516,1,1,2) [2026-01-03 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16493516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 00:03:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16493516,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 00:03:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16493516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 00:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16493516,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 00:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16493516', 'tblTempUsageDetail_20' ) start [2026-01-03 00:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16493516', 'tblTempUsageDetail_20' ) end [2026-01-03 00:07:19] Production.ERROR: pbx prc_insertCDR start [2026-01-03 00:07:20] Production.ERROR: pbx prc_insertCDR end [2026-01-03 00:07:23] Production.INFO: ==8914== Releasing lock... [2026-01-03 00:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 00:07:23] Production.INFO: 37.5 MB #Memory Used# [2026-01-03 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-02 22:00:06 [end_date_ymd] => 2026-01-03 01:00:06 [RateCDR] => 1 ) [2026-01-03 01: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` >= '2026-01-02 22:00:06' and `end` < '2026-01-03 01: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 ,'') [2026-01-03 01:00:28] Production.INFO: count ==568 [2026-01-03 01:00:28] Production.ERROR: pbx CDR StartTime 2026-01-02 22:00:06 - End Time 2026-01-03 01:00:06 [2026-01-03 01:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 01:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16493763', 'tblTempUsageDetail_20' ) start [2026-01-03 01:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16493763', 'tblTempUsageDetail_20' ) end [2026-01-03 01:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16493763', 'tblTempVendorCDR_20' ) start [2026-01-03 01:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16493763', 'tblTempVendorCDR_20' ) end [2026-01-03 01:00:28] Production.INFO: ProcessCDR(1,16493763,1,1,2) [2026-01-03 01:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16493763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 01:03:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16493763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 01:03:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16493763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 01:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16493763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 01:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16493763', 'tblTempUsageDetail_20' ) start [2026-01-03 01:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16493763', 'tblTempUsageDetail_20' ) end [2026-01-03 01:07:30] Production.ERROR: pbx prc_insertCDR start [2026-01-03 01:07:31] Production.ERROR: pbx prc_insertCDR end [2026-01-03 01:07:31] Production.INFO: ==13214== Releasing lock... [2026-01-03 01:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 01:07:31] Production.INFO: 33.25 MB #Memory Used# [2026-01-03 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-02 23:00:06 [end_date_ymd] => 2026-01-03 02:00:06 [RateCDR] => 1 ) [2026-01-03 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-02 23:00:06' and `end` < '2026-01-03 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-03 02:00:18] Production.INFO: count ==668 [2026-01-03 02:00:19] Production.ERROR: pbx CDR StartTime 2026-01-02 23:00:06 - End Time 2026-01-03 02:00:06 [2026-01-03 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16494010', 'tblTempUsageDetail_20' ) start [2026-01-03 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16494010', 'tblTempUsageDetail_20' ) end [2026-01-03 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16494010', 'tblTempVendorCDR_20' ) start [2026-01-03 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16494010', 'tblTempVendorCDR_20' ) end [2026-01-03 02:00:19] Production.INFO: ProcessCDR(1,16494010,1,1,2) [2026-01-03 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16494010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 02:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16494010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 02:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16494010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 02:07:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16494010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 02:07:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16494010', 'tblTempUsageDetail_20' ) start [2026-01-03 02:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16494010', 'tblTempUsageDetail_20' ) end [2026-01-03 02:07:19] Production.ERROR: pbx prc_insertCDR start [2026-01-03 02:07:19] Production.ERROR: pbx prc_insertCDR end [2026-01-03 02:07:19] Production.INFO: ==17614== Releasing lock... [2026-01-03 02:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 02:07:19] Production.INFO: 33.5 MB #Memory Used# [2026-01-03 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 00:00:06 [end_date_ymd] => 2026-01-03 03:00:06 [RateCDR] => 1 ) [2026-01-03 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-03 00:00:06' and `end` < '2026-01-03 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-03 03:00:18] Production.INFO: count ==781 [2026-01-03 03:00:18] Production.ERROR: pbx CDR StartTime 2026-01-03 00:00:06 - End Time 2026-01-03 03:00:06 [2026-01-03 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16494257', 'tblTempUsageDetail_20' ) start [2026-01-03 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16494257', 'tblTempUsageDetail_20' ) end [2026-01-03 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16494257', 'tblTempVendorCDR_20' ) start [2026-01-03 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16494257', 'tblTempVendorCDR_20' ) end [2026-01-03 03:00:18] Production.INFO: ProcessCDR(1,16494257,1,1,2) [2026-01-03 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16494257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 03:03:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16494257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 03:03:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16494257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 03:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16494257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 03:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16494257', 'tblTempUsageDetail_20' ) start [2026-01-03 03:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16494257', 'tblTempUsageDetail_20' ) end [2026-01-03 03:07:31] Production.ERROR: pbx prc_insertCDR start [2026-01-03 03:07:31] Production.ERROR: pbx prc_insertCDR end [2026-01-03 03:07:31] Production.INFO: ==22724== Releasing lock... [2026-01-03 03:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 03:07:31] Production.INFO: 34 MB #Memory Used# [2026-01-03 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 01:00:05 [end_date_ymd] => 2026-01-03 04:00:05 [RateCDR] => 1 ) [2026-01-03 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` >= '2026-01-03 01:00:05' and `end` < '2026-01-03 04: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 ,'') [2026-01-03 04:00:18] Production.INFO: count ==628 [2026-01-03 04:00:18] Production.ERROR: pbx CDR StartTime 2026-01-03 01:00:05 - End Time 2026-01-03 04:00:05 [2026-01-03 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16494505', 'tblTempUsageDetail_20' ) start [2026-01-03 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16494505', 'tblTempUsageDetail_20' ) end [2026-01-03 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16494505', 'tblTempVendorCDR_20' ) start [2026-01-03 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16494505', 'tblTempVendorCDR_20' ) end [2026-01-03 04:00:18] Production.INFO: ProcessCDR(1,16494505,1,1,2) [2026-01-03 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16494505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 04:03:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16494505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 04:03:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16494505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 04:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16494505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 04:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16494505', 'tblTempUsageDetail_20' ) start [2026-01-03 04:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16494505', 'tblTempUsageDetail_20' ) end [2026-01-03 04:07:31] Production.ERROR: pbx prc_insertCDR start [2026-01-03 04:07:31] Production.ERROR: pbx prc_insertCDR end [2026-01-03 04:07:31] Production.INFO: ==29427== Releasing lock... [2026-01-03 04:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 04:07:31] Production.INFO: 33 MB #Memory Used# [2026-01-03 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 02:00:05 [end_date_ymd] => 2026-01-03 05:00:05 [RateCDR] => 1 ) [2026-01-03 05: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` >= '2026-01-03 02:00:05' and `end` < '2026-01-03 05: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 ,'') [2026-01-03 05:00:18] Production.INFO: count ==447 [2026-01-03 05:00:18] Production.ERROR: pbx CDR StartTime 2026-01-03 02:00:05 - End Time 2026-01-03 05:00:05 [2026-01-03 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16494753', 'tblTempUsageDetail_20' ) start [2026-01-03 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16494753', 'tblTempUsageDetail_20' ) end [2026-01-03 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16494753', 'tblTempVendorCDR_20' ) start [2026-01-03 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16494753', 'tblTempVendorCDR_20' ) end [2026-01-03 05:00:18] Production.INFO: ProcessCDR(1,16494753,1,1,2) [2026-01-03 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16494753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 05:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16494753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 05:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16494753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 05:06:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16494753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 05:06:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16494753', 'tblTempUsageDetail_20' ) start [2026-01-03 05:06:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16494753', 'tblTempUsageDetail_20' ) end [2026-01-03 05:06:49] Production.ERROR: pbx prc_insertCDR start [2026-01-03 05:06:49] Production.ERROR: pbx prc_insertCDR end [2026-01-03 05:06:49] Production.INFO: ==2554== Releasing lock... [2026-01-03 05:06:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 05:06:49] Production.INFO: 31.75 MB #Memory Used# [2026-01-03 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 03:00:05 [end_date_ymd] => 2026-01-03 06:00:05 [RateCDR] => 1 ) [2026-01-03 06: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` >= '2026-01-03 03:00:05' and `end` < '2026-01-03 06: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 ,'') [2026-01-03 06:00:17] Production.INFO: count ==218 [2026-01-03 06:00:17] Production.ERROR: pbx CDR StartTime 2026-01-03 03:00:05 - End Time 2026-01-03 06:00:05 [2026-01-03 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16495000', 'tblTempUsageDetail_20' ) start [2026-01-03 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16495000', 'tblTempUsageDetail_20' ) end [2026-01-03 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16495000', 'tblTempVendorCDR_20' ) start [2026-01-03 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16495000', 'tblTempVendorCDR_20' ) end [2026-01-03 06:00:17] Production.INFO: ProcessCDR(1,16495000,1,1,2) [2026-01-03 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16495000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 06:02:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16495000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 06:02:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16495000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 06:06:15] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16495000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 06:06:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16495000', 'tblTempUsageDetail_20' ) start [2026-01-03 06:06:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16495000', 'tblTempUsageDetail_20' ) end [2026-01-03 06:06:15] Production.ERROR: pbx prc_insertCDR start [2026-01-03 06:06:15] Production.ERROR: pbx prc_insertCDR end [2026-01-03 06:06:15] Production.INFO: ==7050== Releasing lock... [2026-01-03 06:06:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 06:06:15] Production.INFO: 30 MB #Memory Used# [2026-01-03 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 04:00:06 [end_date_ymd] => 2026-01-03 07:00:06 [RateCDR] => 1 ) [2026-01-03 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` >= '2026-01-03 04:00:06' and `end` < '2026-01-03 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 ,'') [2026-01-03 07:00:17] Production.INFO: count ==122 [2026-01-03 07:00:17] Production.ERROR: pbx CDR StartTime 2026-01-03 04:00:06 - End Time 2026-01-03 07:00:06 [2026-01-03 07:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16495247', 'tblTempUsageDetail_20' ) start [2026-01-03 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16495247', 'tblTempUsageDetail_20' ) end [2026-01-03 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16495247', 'tblTempVendorCDR_20' ) start [2026-01-03 07:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16495247', 'tblTempVendorCDR_20' ) end [2026-01-03 07:00:17] Production.INFO: ProcessCDR(1,16495247,1,1,2) [2026-01-03 07:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16495247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 07:02:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16495247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 07:02:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16495247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 07:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16495247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 07:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16495247', 'tblTempUsageDetail_20' ) start [2026-01-03 07:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16495247', 'tblTempUsageDetail_20' ) end [2026-01-03 07:06:28] Production.ERROR: pbx prc_insertCDR start [2026-01-03 07:06:28] Production.ERROR: pbx prc_insertCDR end [2026-01-03 07:06:28] Production.INFO: ==12348== Releasing lock... [2026-01-03 07:06:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 07:06:28] Production.INFO: 28.75 MB #Memory Used# [2026-01-03 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 05:00:06 [end_date_ymd] => 2026-01-03 08:00:06 [RateCDR] => 1 ) [2026-01-03 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` >= '2026-01-03 05:00:06' and `end` < '2026-01-03 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 ,'') [2026-01-03 08:00:18] Production.INFO: count ==88 [2026-01-03 08:00:18] Production.ERROR: pbx CDR StartTime 2026-01-03 05:00:06 - End Time 2026-01-03 08:00:06 [2026-01-03 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16495494', 'tblTempUsageDetail_20' ) start [2026-01-03 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16495494', 'tblTempUsageDetail_20' ) end [2026-01-03 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16495494', 'tblTempVendorCDR_20' ) start [2026-01-03 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16495494', 'tblTempVendorCDR_20' ) end [2026-01-03 08:00:18] Production.INFO: ProcessCDR(1,16495494,1,1,2) [2026-01-03 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16495494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 08:03:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16495494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 08:03:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16495494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 08:06:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16495494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 08:06:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16495494', 'tblTempUsageDetail_20' ) start [2026-01-03 08:06:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16495494', 'tblTempUsageDetail_20' ) end [2026-01-03 08:06:59] Production.ERROR: pbx prc_insertCDR start [2026-01-03 08:06:59] Production.ERROR: pbx prc_insertCDR end [2026-01-03 08:06:59] Production.INFO: ==16676== Releasing lock... [2026-01-03 08:06:59] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 08:06:59] Production.INFO: 28.5 MB #Memory Used# [2026-01-03 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 06:00:05 [end_date_ymd] => 2026-01-03 09:00:05 [RateCDR] => 1 ) [2026-01-03 09: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` >= '2026-01-03 06:00:05' and `end` < '2026-01-03 09: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 ,'') [2026-01-03 09:00:17] Production.INFO: count ==253 [2026-01-03 09:00:17] Production.ERROR: pbx CDR StartTime 2026-01-03 06:00:05 - End Time 2026-01-03 09:00:05 [2026-01-03 09:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16495741', 'tblTempUsageDetail_20' ) start [2026-01-03 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16495741', 'tblTempUsageDetail_20' ) end [2026-01-03 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16495741', 'tblTempVendorCDR_20' ) start [2026-01-03 09:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16495741', 'tblTempVendorCDR_20' ) end [2026-01-03 09:00:17] Production.INFO: ProcessCDR(1,16495741,1,1,2) [2026-01-03 09:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16495741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 09:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16495741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 09:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16495741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 09:07:04] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16495741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 09:07:04] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16495741', 'tblTempUsageDetail_20' ) start [2026-01-03 09:07:05] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16495741', 'tblTempUsageDetail_20' ) end [2026-01-03 09:07:05] Production.ERROR: pbx prc_insertCDR start [2026-01-03 09:07:05] Production.ERROR: pbx prc_insertCDR end [2026-01-03 09:07:05] Production.INFO: ==21225== Releasing lock... [2026-01-03 09:07:05] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 09:07:05] Production.INFO: 30 MB #Memory Used# [2026-01-03 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 07:00:06 [end_date_ymd] => 2026-01-03 10:00:06 [RateCDR] => 1 ) [2026-01-03 10:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-03 07:00:06' and `end` < '2026-01-03 10:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-03 10:00:18] Production.INFO: count ==935 [2026-01-03 10:00:18] Production.ERROR: pbx CDR StartTime 2026-01-03 07:00:06 - End Time 2026-01-03 10:00:06 [2026-01-03 10:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 10:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16495988', 'tblTempUsageDetail_20' ) start [2026-01-03 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16495988', 'tblTempUsageDetail_20' ) end [2026-01-03 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16495988', 'tblTempVendorCDR_20' ) start [2026-01-03 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16495988', 'tblTempVendorCDR_20' ) end [2026-01-03 10:00:19] Production.INFO: ProcessCDR(1,16495988,1,1,2) [2026-01-03 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16495988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 10:03:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16495988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 10:03:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16495988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 10:07:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16495988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 10:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16495988', 'tblTempUsageDetail_20' ) start [2026-01-03 10:07:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16495988', 'tblTempUsageDetail_20' ) end [2026-01-03 10:07:19] Production.ERROR: pbx prc_insertCDR start [2026-01-03 10:07:20] Production.ERROR: pbx prc_insertCDR end [2026-01-03 10:07:20] Production.INFO: ==25751== Releasing lock... [2026-01-03 10:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 10:07:20] Production.INFO: 36 MB #Memory Used# [2026-01-03 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 08:00:06 [end_date_ymd] => 2026-01-03 11:00:06 [RateCDR] => 1 ) [2026-01-03 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` >= '2026-01-03 08:00:06' and `end` < '2026-01-03 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 ,'') [2026-01-03 11:00:18] Production.INFO: count ==1593 [2026-01-03 11:00:19] Production.ERROR: pbx CDR StartTime 2026-01-03 08:00:06 - End Time 2026-01-03 11:00:06 [2026-01-03 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16496235', 'tblTempUsageDetail_20' ) start [2026-01-03 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16496235', 'tblTempUsageDetail_20' ) end [2026-01-03 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16496235', 'tblTempVendorCDR_20' ) start [2026-01-03 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16496235', 'tblTempVendorCDR_20' ) end [2026-01-03 11:00:19] Production.INFO: ProcessCDR(1,16496235,1,1,2) [2026-01-03 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16496235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 11:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16496235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 11:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16496235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 11:07:15] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16496235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 11:07:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16496235', 'tblTempUsageDetail_20' ) start [2026-01-03 11:07:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16496235', 'tblTempUsageDetail_20' ) end [2026-01-03 11:07:16] Production.ERROR: pbx prc_insertCDR start [2026-01-03 11:07:17] Production.ERROR: pbx prc_insertCDR end [2026-01-03 11:07:17] Production.INFO: ==30190== Releasing lock... [2026-01-03 11:07:17] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 11:07:17] Production.INFO: 40 MB #Memory Used# [2026-01-03 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 09:00:06 [end_date_ymd] => 2026-01-03 12:00:06 [RateCDR] => 1 ) [2026-01-03 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` >= '2026-01-03 09:00:06' and `end` < '2026-01-03 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 ,'') [2026-01-03 12:00:19] Production.INFO: count ==2181 [2026-01-03 12:00:20] Production.ERROR: pbx CDR StartTime 2026-01-03 09:00:06 - End Time 2026-01-03 12:00:06 [2026-01-03 12:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16496482', 'tblTempUsageDetail_20' ) start [2026-01-03 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16496482', 'tblTempUsageDetail_20' ) end [2026-01-03 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16496482', 'tblTempVendorCDR_20' ) start [2026-01-03 12:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16496482', 'tblTempVendorCDR_20' ) end [2026-01-03 12:00:20] Production.INFO: ProcessCDR(1,16496482,1,1,2) [2026-01-03 12:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16496482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 12:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16496482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 12:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16496482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 12:06:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16496482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 12:06:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16496482', 'tblTempUsageDetail_20' ) start [2026-01-03 12:06:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16496482', 'tblTempUsageDetail_20' ) end [2026-01-03 12:06:57] Production.ERROR: pbx prc_insertCDR start [2026-01-03 12:06:58] Production.ERROR: pbx prc_insertCDR end [2026-01-03 12:06:58] Production.INFO: ==2309== Releasing lock... [2026-01-03 12:06:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 12:06:58] Production.INFO: 44.5 MB #Memory Used# [2026-01-03 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 10:00:05 [end_date_ymd] => 2026-01-03 13:00:05 [RateCDR] => 1 ) [2026-01-03 13:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-03 10:00:05' and `end` < '2026-01-03 13:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-03 13:00:18] Production.INFO: count ==2119 [2026-01-03 13:00:18] Production.ERROR: pbx CDR StartTime 2026-01-03 10:00:05 - End Time 2026-01-03 13:00:05 [2026-01-03 13:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 13:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16496729', 'tblTempUsageDetail_20' ) start [2026-01-03 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16496729', 'tblTempUsageDetail_20' ) end [2026-01-03 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16496729', 'tblTempVendorCDR_20' ) start [2026-01-03 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16496729', 'tblTempVendorCDR_20' ) end [2026-01-03 13:00:19] Production.INFO: ProcessCDR(1,16496729,1,1,2) [2026-01-03 13:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16496729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 13:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16496729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 13:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16496729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 13:06:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16496729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 13:06:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16496729', 'tblTempUsageDetail_20' ) start [2026-01-03 13:06:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16496729', 'tblTempUsageDetail_20' ) end [2026-01-03 13:06:53] Production.ERROR: pbx prc_insertCDR start [2026-01-03 13:06:54] Production.ERROR: pbx prc_insertCDR end [2026-01-03 13:06:54] Production.INFO: ==6787== Releasing lock... [2026-01-03 13:06:54] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 13:06:54] Production.INFO: 44 MB #Memory Used# [2026-01-03 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 11:00:06 [end_date_ymd] => 2026-01-03 14:00:06 [RateCDR] => 1 ) [2026-01-03 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-03 11:00:06' and `end` < '2026-01-03 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-03 14:00:18] Production.INFO: count ==2120 [2026-01-03 14:00:19] Production.ERROR: pbx CDR StartTime 2026-01-03 11:00:06 - End Time 2026-01-03 14:00:06 [2026-01-03 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16496976', 'tblTempUsageDetail_20' ) start [2026-01-03 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16496976', 'tblTempUsageDetail_20' ) end [2026-01-03 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16496976', 'tblTempVendorCDR_20' ) start [2026-01-03 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16496976', 'tblTempVendorCDR_20' ) end [2026-01-03 14:00:19] Production.INFO: ProcessCDR(1,16496976,1,1,2) [2026-01-03 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16496976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 14:03:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16496976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 14:03:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16496976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 14:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16496976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 14:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16496976', 'tblTempUsageDetail_20' ) start [2026-01-03 14:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16496976', 'tblTempUsageDetail_20' ) end [2026-01-03 14:07:29] Production.ERROR: pbx prc_insertCDR start [2026-01-03 14:07:29] Production.ERROR: pbx prc_insertCDR end [2026-01-03 14:07:29] Production.INFO: ==11540== Releasing lock... [2026-01-03 14:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 14:07:29] Production.INFO: 44 MB #Memory Used# [2026-01-03 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 12:00:06 [end_date_ymd] => 2026-01-03 15:00:06 [RateCDR] => 1 ) [2026-01-03 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` >= '2026-01-03 12:00:06' and `end` < '2026-01-03 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 ,'') [2026-01-03 15:00:18] Production.INFO: count ==1902 [2026-01-03 15:00:19] Production.ERROR: pbx CDR StartTime 2026-01-03 12:00:06 - End Time 2026-01-03 15:00:06 [2026-01-03 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16497223', 'tblTempUsageDetail_20' ) start [2026-01-03 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16497223', 'tblTempUsageDetail_20' ) end [2026-01-03 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16497223', 'tblTempVendorCDR_20' ) start [2026-01-03 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16497223', 'tblTempVendorCDR_20' ) end [2026-01-03 15:00:19] Production.INFO: ProcessCDR(1,16497223,1,1,2) [2026-01-03 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16497223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 15:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16497223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 15:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16497223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 15:06:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16497223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 15:06:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16497223', 'tblTempUsageDetail_20' ) start [2026-01-03 15:06:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16497223', 'tblTempUsageDetail_20' ) end [2026-01-03 15:06:57] Production.ERROR: pbx prc_insertCDR start [2026-01-03 15:06:57] Production.ERROR: pbx prc_insertCDR end [2026-01-03 15:06:57] Production.INFO: ==16705== Releasing lock... [2026-01-03 15:06:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 15:06:57] Production.INFO: 42.5 MB #Memory Used# [2026-01-03 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 13:00:05 [end_date_ymd] => 2026-01-03 16:00:05 [RateCDR] => 1 ) [2026-01-03 16: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` >= '2026-01-03 13:00:05' and `end` < '2026-01-03 16: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 ,'') [2026-01-03 16:00:18] Production.INFO: count ==1743 [2026-01-03 16:00:18] Production.ERROR: pbx CDR StartTime 2026-01-03 13:00:05 - End Time 2026-01-03 16:00:05 [2026-01-03 16:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16497470', 'tblTempUsageDetail_20' ) start [2026-01-03 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16497470', 'tblTempUsageDetail_20' ) end [2026-01-03 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16497470', 'tblTempVendorCDR_20' ) start [2026-01-03 16:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16497470', 'tblTempVendorCDR_20' ) end [2026-01-03 16:00:18] Production.INFO: ProcessCDR(1,16497470,1,1,2) [2026-01-03 16:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16497470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 16:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16497470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 16:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16497470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 16:07:12] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16497470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 16:07:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16497470', 'tblTempUsageDetail_20' ) start [2026-01-03 16:07:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16497470', 'tblTempUsageDetail_20' ) end [2026-01-03 16:07:14] Production.ERROR: pbx prc_insertCDR start [2026-01-03 16:07:15] Production.ERROR: pbx prc_insertCDR end [2026-01-03 16:07:15] Production.INFO: ==21049== Releasing lock... [2026-01-03 16:07:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 16:07:15] Production.INFO: 41.25 MB #Memory Used# [2026-01-03 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 14:00:06 [end_date_ymd] => 2026-01-03 17:00:06 [RateCDR] => 1 ) [2026-01-03 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` >= '2026-01-03 14:00:06' and `end` < '2026-01-03 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 ,'') [2026-01-03 17:00:19] Production.INFO: count ==1765 [2026-01-03 17:00:19] Production.ERROR: pbx CDR StartTime 2026-01-03 14:00:06 - End Time 2026-01-03 17:00:06 [2026-01-03 17:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16497717', 'tblTempUsageDetail_20' ) start [2026-01-03 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16497717', 'tblTempUsageDetail_20' ) end [2026-01-03 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16497717', 'tblTempVendorCDR_20' ) start [2026-01-03 17:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16497717', 'tblTempVendorCDR_20' ) end [2026-01-03 17:00:20] Production.INFO: ProcessCDR(1,16497717,1,1,2) [2026-01-03 17:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16497717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 17:03:50] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16497717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 17:03:50] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16497717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 17:07:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16497717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 17:07:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16497717', 'tblTempUsageDetail_20' ) start [2026-01-03 17:07:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16497717', 'tblTempUsageDetail_20' ) end [2026-01-03 17:07:40] Production.ERROR: pbx prc_insertCDR start [2026-01-03 17:07:42] Production.ERROR: pbx prc_insertCDR end [2026-01-03 17:07:42] Production.INFO: ==25616== Releasing lock... [2026-01-03 17:07:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 17:07:42] Production.INFO: 41.5 MB #Memory Used# [2026-01-03 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 15:00:05 [end_date_ymd] => 2026-01-03 18:00:05 [RateCDR] => 1 ) [2026-01-03 18: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` >= '2026-01-03 15:00:05' and `end` < '2026-01-03 18: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 ,'') [2026-01-03 18:00:17] Production.INFO: count ==1849 [2026-01-03 18:00:18] Production.ERROR: pbx CDR StartTime 2026-01-03 15:00:05 - End Time 2026-01-03 18:00:05 [2026-01-03 18:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16497963', 'tblTempUsageDetail_20' ) start [2026-01-03 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16497963', 'tblTempUsageDetail_20' ) end [2026-01-03 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16497963', 'tblTempVendorCDR_20' ) start [2026-01-03 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16497963', 'tblTempVendorCDR_20' ) end [2026-01-03 18:00:18] Production.INFO: ProcessCDR(1,16497963,1,1,2) [2026-01-03 18:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16497963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 18:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16497963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 18:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16497963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 18:07:08] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16497963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 18:07:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16497963', 'tblTempUsageDetail_20' ) start [2026-01-03 18:07:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16497963', 'tblTempUsageDetail_20' ) end [2026-01-03 18:07:09] Production.ERROR: pbx prc_insertCDR start [2026-01-03 18:07:11] Production.ERROR: pbx prc_insertCDR end [2026-01-03 18:07:11] Production.INFO: ==29911== Releasing lock... [2026-01-03 18:07:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 18:07:11] Production.INFO: 42.5 MB #Memory Used# [2026-01-03 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 16:00:05 [end_date_ymd] => 2026-01-03 19:00:05 [RateCDR] => 1 ) [2026-01-03 19: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` >= '2026-01-03 16:00:05' and `end` < '2026-01-03 19: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 ,'') [2026-01-03 19:00:18] Production.INFO: count ==1914 [2026-01-03 19:00:18] Production.ERROR: pbx CDR StartTime 2026-01-03 16:00:05 - End Time 2026-01-03 19:00:05 [2026-01-03 19:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16498210', 'tblTempUsageDetail_20' ) start [2026-01-03 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16498210', 'tblTempUsageDetail_20' ) end [2026-01-03 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16498210', 'tblTempVendorCDR_20' ) start [2026-01-03 19:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16498210', 'tblTempVendorCDR_20' ) end [2026-01-03 19:00:18] Production.INFO: ProcessCDR(1,16498210,1,1,2) [2026-01-03 19:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16498210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 19:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16498210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 19:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16498210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 19:07:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16498210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 19:07:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16498210', 'tblTempUsageDetail_20' ) start [2026-01-03 19:07:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16498210', 'tblTempUsageDetail_20' ) end [2026-01-03 19:07:17] Production.ERROR: pbx prc_insertCDR start [2026-01-03 19:07:18] Production.ERROR: pbx prc_insertCDR end [2026-01-03 19:07:18] Production.INFO: ==2040== Releasing lock... [2026-01-03 19:07:18] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 19:07:18] Production.INFO: 42.5 MB #Memory Used# [2026-01-03 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 17:00:05 [end_date_ymd] => 2026-01-03 20:00:05 [RateCDR] => 1 ) [2026-01-03 20: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` >= '2026-01-03 17:00:05' and `end` < '2026-01-03 20: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 ,'') [2026-01-03 20:00:17] Production.INFO: count ==1824 [2026-01-03 20:00:18] Production.ERROR: pbx CDR StartTime 2026-01-03 17:00:05 - End Time 2026-01-03 20:00:05 [2026-01-03 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16498457', 'tblTempUsageDetail_20' ) start [2026-01-03 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16498457', 'tblTempUsageDetail_20' ) end [2026-01-03 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16498457', 'tblTempVendorCDR_20' ) start [2026-01-03 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16498457', 'tblTempVendorCDR_20' ) end [2026-01-03 20:00:18] Production.INFO: ProcessCDR(1,16498457,1,1,2) [2026-01-03 20:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16498457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 20:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16498457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 20:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16498457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 20:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16498457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 20:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16498457', 'tblTempUsageDetail_20' ) start [2026-01-03 20:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16498457', 'tblTempUsageDetail_20' ) end [2026-01-03 20:07:20] Production.ERROR: pbx prc_insertCDR start [2026-01-03 20:07:20] Production.ERROR: pbx prc_insertCDR end [2026-01-03 20:07:20] Production.INFO: ==7581== Releasing lock... [2026-01-03 20:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 20:07:20] Production.INFO: 41.75 MB #Memory Used# [2026-01-03 21:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 18:00:05 [end_date_ymd] => 2026-01-03 21:00:05 [RateCDR] => 1 ) [2026-01-03 21: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` >= '2026-01-03 18:00:05' and `end` < '2026-01-03 21: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 ,'') [2026-01-03 21:00:18] Production.INFO: count ==1580 [2026-01-03 21:00:18] Production.ERROR: pbx CDR StartTime 2026-01-03 18:00:05 - End Time 2026-01-03 21:00:05 [2026-01-03 21:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16498704', 'tblTempUsageDetail_20' ) start [2026-01-03 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16498704', 'tblTempUsageDetail_20' ) end [2026-01-03 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16498704', 'tblTempVendorCDR_20' ) start [2026-01-03 21:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16498704', 'tblTempVendorCDR_20' ) end [2026-01-03 21:00:18] Production.INFO: ProcessCDR(1,16498704,1,1,2) [2026-01-03 21:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16498704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 21:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16498704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 21:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16498704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 21:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16498704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 21:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16498704', 'tblTempUsageDetail_20' ) start [2026-01-03 21:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16498704', 'tblTempUsageDetail_20' ) end [2026-01-03 21:07:20] Production.ERROR: pbx prc_insertCDR start [2026-01-03 21:07:21] Production.ERROR: pbx prc_insertCDR end [2026-01-03 21:07:21] Production.INFO: ==12410== Releasing lock... [2026-01-03 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 21:07:21] Production.INFO: 40 MB #Memory Used# [2026-01-03 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 19:00:06 [end_date_ymd] => 2026-01-03 22:00:06 [RateCDR] => 1 ) [2026-01-03 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` >= '2026-01-03 19:00:06' and `end` < '2026-01-03 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 ,'') [2026-01-03 22:00:18] Production.INFO: count ==1418 [2026-01-03 22:00:18] Production.ERROR: pbx CDR StartTime 2026-01-03 19:00:06 - End Time 2026-01-03 22:00:06 [2026-01-03 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16498951', 'tblTempUsageDetail_20' ) start [2026-01-03 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16498951', 'tblTempUsageDetail_20' ) end [2026-01-03 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16498951', 'tblTempVendorCDR_20' ) start [2026-01-03 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16498951', 'tblTempVendorCDR_20' ) end [2026-01-03 22:00:18] Production.INFO: ProcessCDR(1,16498951,1,1,2) [2026-01-03 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16498951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16498951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16498951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 22:07:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16498951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 22:07:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16498951', 'tblTempUsageDetail_20' ) start [2026-01-03 22:07:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16498951', 'tblTempUsageDetail_20' ) end [2026-01-03 22:07:00] Production.ERROR: pbx prc_insertCDR start [2026-01-03 22:07:00] Production.ERROR: pbx prc_insertCDR end [2026-01-03 22:07:00] Production.INFO: ==16674== Releasing lock... [2026-01-03 22:07:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 22:07:00] Production.INFO: 39 MB #Memory Used# [2026-01-03 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-03 20:00:05 [end_date_ymd] => 2026-01-03 23:00:05 [RateCDR] => 1 ) [2026-01-03 23: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` >= '2026-01-03 20:00:05' and `end` < '2026-01-03 23: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 ,'') [2026-01-03 23:00:18] Production.INFO: count ==1100 [2026-01-03 23:00:18] Production.ERROR: pbx CDR StartTime 2026-01-03 20:00:05 - End Time 2026-01-03 23:00:05 [2026-01-03 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-03 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16499198', 'tblTempUsageDetail_20' ) start [2026-01-03 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16499198', 'tblTempUsageDetail_20' ) end [2026-01-03 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16499198', 'tblTempVendorCDR_20' ) start [2026-01-03 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16499198', 'tblTempVendorCDR_20' ) end [2026-01-03 23:00:18] Production.INFO: ProcessCDR(1,16499198,1,1,2) [2026-01-03 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16499198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 23:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16499198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-03 23:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16499198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 23:07:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16499198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-03 23:07:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16499198', 'tblTempUsageDetail_20' ) start [2026-01-03 23:07:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16499198', 'tblTempUsageDetail_20' ) end [2026-01-03 23:07:01] Production.ERROR: pbx prc_insertCDR start [2026-01-03 23:07:02] Production.ERROR: pbx prc_insertCDR end [2026-01-03 23:07:02] Production.INFO: ==20987== Releasing lock... [2026-01-03 23:07:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-03 23:07:02] Production.INFO: 36.75 MB #Memory Used#