[2026-01-09 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 21:01:06 [end_date_ymd] => 2026-01-09 00:01:06 [RateCDR] => 1 ) [2026-01-09 00:01: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-08 21:01:06' and `end` < '2026-01-09 00:01: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-09 00:01:27] Production.INFO: count ==693 [2026-01-09 00:01:27] Production.ERROR: pbx CDR StartTime 2026-01-08 21:01:06 - End Time 2026-01-09 00:01:06 [2026-01-09 00:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 00:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16529086', 'tblTempUsageDetail_20' ) start [2026-01-09 00:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16529086', 'tblTempUsageDetail_20' ) end [2026-01-09 00:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16529086', 'tblTempVendorCDR_20' ) start [2026-01-09 00:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16529086', 'tblTempVendorCDR_20' ) end [2026-01-09 00:01:27] Production.INFO: ProcessCDR(1,16529086,1,1,2) [2026-01-09 00:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16529086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 00:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16529086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 00:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16529086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 00:08:09] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16529086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 00:08:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16529086', 'tblTempUsageDetail_20' ) start [2026-01-09 00:08:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16529086', 'tblTempUsageDetail_20' ) end [2026-01-09 00:08:10] Production.ERROR: pbx prc_insertCDR start [2026-01-09 00:08:10] Production.ERROR: pbx prc_insertCDR end [2026-01-09 00:08:17] Production.INFO: ==13133== Releasing lock... [2026-01-09 00:08:17] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 00:08:17] Production.INFO: 37 MB #Memory Used# [2026-01-09 01:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 22:01:06 [end_date_ymd] => 2026-01-09 01:01:06 [RateCDR] => 1 ) [2026-01-09 01:01: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-08 22:01:06' and `end` < '2026-01-09 01:01: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-09 01:01:22] Production.INFO: count ==531 [2026-01-09 01:01:23] Production.ERROR: pbx CDR StartTime 2026-01-08 22:01:06 - End Time 2026-01-09 01:01:06 [2026-01-09 01:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 01:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16529334', 'tblTempUsageDetail_20' ) start [2026-01-09 01:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16529334', 'tblTempUsageDetail_20' ) end [2026-01-09 01:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16529334', 'tblTempVendorCDR_20' ) start [2026-01-09 01:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16529334', 'tblTempVendorCDR_20' ) end [2026-01-09 01:01:23] Production.INFO: ProcessCDR(1,16529334,1,1,2) [2026-01-09 01:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16529334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 01:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16529334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 01:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16529334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 01:08:11] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16529334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 01:08:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16529334', 'tblTempUsageDetail_20' ) start [2026-01-09 01:08:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16529334', 'tblTempUsageDetail_20' ) end [2026-01-09 01:08:12] Production.ERROR: pbx prc_insertCDR start [2026-01-09 01:08:12] Production.ERROR: pbx prc_insertCDR end [2026-01-09 01:08:12] Production.INFO: ==17536== Releasing lock... [2026-01-09 01:08:12] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 01:08:12] Production.INFO: 32.75 MB #Memory Used# [2026-01-09 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 23:01:06 [end_date_ymd] => 2026-01-09 02:01:06 [RateCDR] => 1 ) [2026-01-09 02:01: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-08 23:01:06' and `end` < '2026-01-09 02:01: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-09 02:01:19] Production.INFO: count ==596 [2026-01-09 02:01:19] Production.ERROR: pbx CDR StartTime 2026-01-08 23:01:06 - End Time 2026-01-09 02:01:06 [2026-01-09 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16529581', 'tblTempUsageDetail_20' ) start [2026-01-09 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16529581', 'tblTempUsageDetail_20' ) end [2026-01-09 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16529581', 'tblTempVendorCDR_20' ) start [2026-01-09 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16529581', 'tblTempVendorCDR_20' ) end [2026-01-09 02:01:19] Production.INFO: ProcessCDR(1,16529581,1,1,2) [2026-01-09 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16529581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 02:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16529581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 02:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16529581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 02:08:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16529581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 02:08:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16529581', 'tblTempUsageDetail_20' ) start [2026-01-09 02:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16529581', 'tblTempUsageDetail_20' ) end [2026-01-09 02:08:19] Production.ERROR: pbx prc_insertCDR start [2026-01-09 02:08:19] Production.ERROR: pbx prc_insertCDR end [2026-01-09 02:08:19] Production.INFO: ==22142== Releasing lock... [2026-01-09 02:08:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 02:08:19] Production.INFO: 32.75 MB #Memory Used# [2026-01-09 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 00:01:06 [end_date_ymd] => 2026-01-09 03:01:06 [RateCDR] => 1 ) [2026-01-09 03:01: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-09 00:01:06' and `end` < '2026-01-09 03:01: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-09 03:01:18] Production.INFO: count ==601 [2026-01-09 03:01:18] Production.ERROR: pbx CDR StartTime 2026-01-09 00:01:06 - End Time 2026-01-09 03:01:06 [2026-01-09 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16529828', 'tblTempUsageDetail_20' ) start [2026-01-09 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16529828', 'tblTempUsageDetail_20' ) end [2026-01-09 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16529828', 'tblTempVendorCDR_20' ) start [2026-01-09 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16529828', 'tblTempVendorCDR_20' ) end [2026-01-09 03:01:18] Production.INFO: ProcessCDR(1,16529828,1,1,2) [2026-01-09 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16529828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 03:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16529828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 03:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16529828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 03:07:55] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16529828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 03:07:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16529828', 'tblTempUsageDetail_20' ) start [2026-01-09 03:07:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16529828', 'tblTempUsageDetail_20' ) end [2026-01-09 03:07:55] Production.ERROR: pbx prc_insertCDR start [2026-01-09 03:07:55] Production.ERROR: pbx prc_insertCDR end [2026-01-09 03:07:55] Production.INFO: ==26437== Releasing lock... [2026-01-09 03:07:55] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 03:07:55] Production.INFO: 33.25 MB #Memory Used# [2026-01-09 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 01:01:06 [end_date_ymd] => 2026-01-09 04:01:06 [RateCDR] => 1 ) [2026-01-09 04:01: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-09 01:01:06' and `end` < '2026-01-09 04:01: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-09 04:01:18] Production.INFO: count ==402 [2026-01-09 04:01:19] Production.ERROR: pbx CDR StartTime 2026-01-09 01:01:06 - End Time 2026-01-09 04:01:06 [2026-01-09 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16530075', 'tblTempUsageDetail_20' ) start [2026-01-09 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16530075', 'tblTempUsageDetail_20' ) end [2026-01-09 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16530075', 'tblTempVendorCDR_20' ) start [2026-01-09 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16530075', 'tblTempVendorCDR_20' ) end [2026-01-09 04:01:19] Production.INFO: ProcessCDR(1,16530075,1,1,2) [2026-01-09 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16530075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 04:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16530075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 04:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16530075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 04:07:54] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16530075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 04:07:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16530075', 'tblTempUsageDetail_20' ) start [2026-01-09 04:07:54] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16530075', 'tblTempUsageDetail_20' ) end [2026-01-09 04:07:54] Production.ERROR: pbx prc_insertCDR start [2026-01-09 04:07:54] Production.ERROR: pbx prc_insertCDR end [2026-01-09 04:07:54] Production.INFO: ==30722== Releasing lock... [2026-01-09 04:07:54] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 04:07:54] Production.INFO: 31.5 MB #Memory Used# [2026-01-09 05:01:07] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 02:01:07 [end_date_ymd] => 2026-01-09 05:01:07 [RateCDR] => 1 ) [2026-01-09 05:01: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-09 02:01:07' and `end` < '2026-01-09 05:01: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-09 05:01:19] Production.INFO: count ==234 [2026-01-09 05:01:19] Production.ERROR: pbx CDR StartTime 2026-01-09 02:01:07 - End Time 2026-01-09 05:01:07 [2026-01-09 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16530324', 'tblTempUsageDetail_20' ) start [2026-01-09 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16530324', 'tblTempUsageDetail_20' ) end [2026-01-09 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16530324', 'tblTempVendorCDR_20' ) start [2026-01-09 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16530324', 'tblTempVendorCDR_20' ) end [2026-01-09 05:01:19] Production.INFO: ProcessCDR(1,16530324,1,1,2) [2026-01-09 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16530324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 05:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16530324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 05:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16530324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 05:08:00] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16530324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 05:08:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16530324', 'tblTempUsageDetail_20' ) start [2026-01-09 05:08:00] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16530324', 'tblTempUsageDetail_20' ) end [2026-01-09 05:08:00] Production.ERROR: pbx prc_insertCDR start [2026-01-09 05:08:00] Production.ERROR: pbx prc_insertCDR end [2026-01-09 05:08:00] Production.INFO: ==2699== Releasing lock... [2026-01-09 05:08:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 05:08:00] Production.INFO: 30.25 MB #Memory Used# [2026-01-09 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 03:01:06 [end_date_ymd] => 2026-01-09 06:01:06 [RateCDR] => 1 ) [2026-01-09 06:01: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-09 03:01:06' and `end` < '2026-01-09 06:01: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-09 06:01:18] Production.INFO: count ==151 [2026-01-09 06:01:18] Production.ERROR: pbx CDR StartTime 2026-01-09 03:01:06 - End Time 2026-01-09 06:01:06 [2026-01-09 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16530571', 'tblTempUsageDetail_20' ) start [2026-01-09 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16530571', 'tblTempUsageDetail_20' ) end [2026-01-09 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16530571', 'tblTempVendorCDR_20' ) start [2026-01-09 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16530571', 'tblTempVendorCDR_20' ) end [2026-01-09 06:01:18] Production.INFO: ProcessCDR(1,16530571,1,1,2) [2026-01-09 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16530571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16530571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16530571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 06:07:52] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16530571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 06:07:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16530571', 'tblTempUsageDetail_20' ) start [2026-01-09 06:07:52] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16530571', 'tblTempUsageDetail_20' ) end [2026-01-09 06:07:52] Production.ERROR: pbx prc_insertCDR start [2026-01-09 06:07:52] Production.ERROR: pbx prc_insertCDR end [2026-01-09 06:07:52] Production.INFO: ==7076== Releasing lock... [2026-01-09 06:07:52] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 06:07:52] Production.INFO: 29.25 MB #Memory Used# [2026-01-09 07:01:07] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 04:01:07 [end_date_ymd] => 2026-01-09 07:01:07 [RateCDR] => 1 ) [2026-01-09 07:01: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-09 04:01:07' and `end` < '2026-01-09 07:01: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-09 07:01:19] Production.INFO: count ==119 [2026-01-09 07:01:19] Production.ERROR: pbx CDR StartTime 2026-01-09 04:01:07 - End Time 2026-01-09 07:01:07 [2026-01-09 07:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16530818', 'tblTempUsageDetail_20' ) start [2026-01-09 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16530818', 'tblTempUsageDetail_20' ) end [2026-01-09 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16530818', 'tblTempVendorCDR_20' ) start [2026-01-09 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16530818', 'tblTempVendorCDR_20' ) end [2026-01-09 07:01:19] Production.INFO: ProcessCDR(1,16530818,1,1,2) [2026-01-09 07:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16530818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 07:03:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16530818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 07:03:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16530818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 07:07:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16530818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 07:07:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16530818', 'tblTempUsageDetail_20' ) start [2026-01-09 07:07:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16530818', 'tblTempUsageDetail_20' ) end [2026-01-09 07:07:39] Production.ERROR: pbx prc_insertCDR start [2026-01-09 07:07:39] Production.ERROR: pbx prc_insertCDR end [2026-01-09 07:07:39] Production.INFO: ==11730== Releasing lock... [2026-01-09 07:07:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 07:07:39] Production.INFO: 28.75 MB #Memory Used# [2026-01-09 08:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 05:01:06 [end_date_ymd] => 2026-01-09 08:01:06 [RateCDR] => 1 ) [2026-01-09 08:01: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-09 05:01:06' and `end` < '2026-01-09 08:01: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-09 08:01:18] Production.INFO: count ==186 [2026-01-09 08:01:18] Production.ERROR: pbx CDR StartTime 2026-01-09 05:01:06 - End Time 2026-01-09 08:01:06 [2026-01-09 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16531065', 'tblTempUsageDetail_20' ) start [2026-01-09 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16531065', 'tblTempUsageDetail_20' ) end [2026-01-09 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16531065', 'tblTempVendorCDR_20' ) start [2026-01-09 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16531065', 'tblTempVendorCDR_20' ) end [2026-01-09 08:01:18] Production.INFO: ProcessCDR(1,16531065,1,1,2) [2026-01-09 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16531065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16531065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16531065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 08:08:03] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16531065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 08:08:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16531065', 'tblTempUsageDetail_20' ) start [2026-01-09 08:08:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16531065', 'tblTempUsageDetail_20' ) end [2026-01-09 08:08:03] Production.ERROR: pbx prc_insertCDR start [2026-01-09 08:08:04] Production.ERROR: pbx prc_insertCDR end [2026-01-09 08:08:04] Production.INFO: ==16483== Releasing lock... [2026-01-09 08:08:04] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 08:08:04] Production.INFO: 29.75 MB #Memory Used# [2026-01-09 09:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 06:01:06 [end_date_ymd] => 2026-01-09 09:01:06 [RateCDR] => 1 ) [2026-01-09 09:01: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-09 06:01:06' and `end` < '2026-01-09 09:01: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-09 09:01:18] Production.INFO: count ==879 [2026-01-09 09:01:19] Production.ERROR: pbx CDR StartTime 2026-01-09 06:01:06 - End Time 2026-01-09 09:01:06 [2026-01-09 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16531312', 'tblTempUsageDetail_20' ) start [2026-01-09 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16531312', 'tblTempUsageDetail_20' ) end [2026-01-09 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16531312', 'tblTempVendorCDR_20' ) start [2026-01-09 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16531312', 'tblTempVendorCDR_20' ) end [2026-01-09 09:01:19] Production.INFO: ProcessCDR(1,16531312,1,1,2) [2026-01-09 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16531312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 09:04:55] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16531312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 09:04:55] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16531312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 09:08:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16531312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 09:08:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16531312', 'tblTempUsageDetail_20' ) start [2026-01-09 09:08:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16531312', 'tblTempUsageDetail_20' ) end [2026-01-09 09:08:39] Production.ERROR: pbx prc_insertCDR start [2026-01-09 09:08:40] Production.ERROR: pbx prc_insertCDR end [2026-01-09 09:08:40] Production.INFO: ==20908== Releasing lock... [2026-01-09 09:08:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 09:08:40] Production.INFO: 35 MB #Memory Used# [2026-01-09 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 07:01:05 [end_date_ymd] => 2026-01-09 10:01:05 [RateCDR] => 1 ) [2026-01-09 10:01: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-09 07:01:05' and `end` < '2026-01-09 10:01: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-09 10:01:19] Production.INFO: count ==2418 [2026-01-09 10:01:20] Production.ERROR: pbx CDR StartTime 2026-01-09 07:01:05 - End Time 2026-01-09 10:01:05 [2026-01-09 10:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16531559', 'tblTempUsageDetail_20' ) start [2026-01-09 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16531559', 'tblTempUsageDetail_20' ) end [2026-01-09 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16531559', 'tblTempVendorCDR_20' ) start [2026-01-09 10:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16531559', 'tblTempVendorCDR_20' ) end [2026-01-09 10:01:20] Production.INFO: ProcessCDR(1,16531559,1,1,2) [2026-01-09 10:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16531559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 10:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16531559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 10:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16531559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 10:08:11] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16531559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 10:08:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16531559', 'tblTempUsageDetail_20' ) start [2026-01-09 10:08:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16531559', 'tblTempUsageDetail_20' ) end [2026-01-09 10:08:12] Production.ERROR: pbx prc_insertCDR start [2026-01-09 10:08:14] Production.ERROR: pbx prc_insertCDR end [2026-01-09 10:08:14] Production.INFO: ==25178== Releasing lock... [2026-01-09 10:08:14] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 10:08:14] Production.INFO: 46.75 MB #Memory Used# [2026-01-09 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 08:01:05 [end_date_ymd] => 2026-01-09 11:01:05 [RateCDR] => 1 ) [2026-01-09 11:01: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-09 08:01:05' and `end` < '2026-01-09 11:01: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-09 11:01:19] Production.INFO: count ==4328 [2026-01-09 11:01:21] Production.ERROR: pbx CDR StartTime 2026-01-09 08:01:05 - End Time 2026-01-09 11:01:05 [2026-01-09 11:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16531805', 'tblTempUsageDetail_20' ) start [2026-01-09 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16531805', 'tblTempUsageDetail_20' ) end [2026-01-09 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16531805', 'tblTempVendorCDR_20' ) start [2026-01-09 11:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16531805', 'tblTempVendorCDR_20' ) end [2026-01-09 11:01:21] Production.INFO: ProcessCDR(1,16531805,1,1,2) [2026-01-09 11:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16531805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 11:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16531805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 11:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16531805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 11:09:17] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16531805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 11:09:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16531805', 'tblTempUsageDetail_20' ) start [2026-01-09 11:09:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16531805', 'tblTempUsageDetail_20' ) end [2026-01-09 11:09:17] Production.ERROR: pbx prc_insertCDR start [2026-01-09 11:09:20] Production.ERROR: pbx prc_insertCDR end [2026-01-09 11:09:20] Production.INFO: ==30846== Releasing lock... [2026-01-09 11:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 11:09:20] Production.INFO: 60.5 MB #Memory Used# [2026-01-09 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 09:01:06 [end_date_ymd] => 2026-01-09 12:01:06 [RateCDR] => 1 ) [2026-01-09 12:01: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-09 09:01:06' and `end` < '2026-01-09 12:01: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-09 12:01:21] Production.INFO: count ==5310 [2026-01-09 12:01:23] Production.ERROR: pbx CDR StartTime 2026-01-09 09:01:06 - End Time 2026-01-09 12:01:06 [2026-01-09 12:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 12:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16532053', 'tblTempUsageDetail_20' ) start [2026-01-09 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16532053', 'tblTempUsageDetail_20' ) end [2026-01-09 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16532053', 'tblTempVendorCDR_20' ) start [2026-01-09 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16532053', 'tblTempVendorCDR_20' ) end [2026-01-09 12:01:24] Production.INFO: ProcessCDR(1,16532053,1,1,2) [2026-01-09 12:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16532053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 12:04:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16532053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 12:04:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16532053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 12:08:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16532053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 12:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16532053', 'tblTempUsageDetail_20' ) start [2026-01-09 12:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16532053', 'tblTempUsageDetail_20' ) end [2026-01-09 12:08:19] Production.ERROR: pbx prc_insertCDR start [2026-01-09 12:08:22] Production.ERROR: pbx prc_insertCDR end [2026-01-09 12:08:22] Production.INFO: ==4870== Releasing lock... [2026-01-09 12:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 12:08:22] Production.INFO: 68 MB #Memory Used# [2026-01-09 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 10:01:06 [end_date_ymd] => 2026-01-09 13:01:06 [RateCDR] => 1 ) [2026-01-09 13:01: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-09 10:01:06' and `end` < '2026-01-09 13:01: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-09 13:01:20] Production.INFO: count ==5432 [2026-01-09 13:01:23] Production.ERROR: pbx CDR StartTime 2026-01-09 10:01:06 - End Time 2026-01-09 13:01:06 [2026-01-09 13:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16532300', 'tblTempUsageDetail_20' ) start [2026-01-09 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16532300', 'tblTempUsageDetail_20' ) end [2026-01-09 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16532300', 'tblTempVendorCDR_20' ) start [2026-01-09 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16532300', 'tblTempVendorCDR_20' ) end [2026-01-09 13:01:23] Production.INFO: ProcessCDR(1,16532300,1,1,2) [2026-01-09 13:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16532300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 13:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16532300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 13:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16532300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 13:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16532300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16532300', 'tblTempUsageDetail_20' ) start [2026-01-09 13:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16532300', 'tblTempUsageDetail_20' ) end [2026-01-09 13:08:28] Production.ERROR: pbx prc_insertCDR start [2026-01-09 13:08:31] Production.ERROR: pbx prc_insertCDR end [2026-01-09 13:08:31] Production.INFO: ==11765== Releasing lock... [2026-01-09 13:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 13:08:31] Production.INFO: 69.25 MB #Memory Used# [2026-01-09 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 11:01:06 [end_date_ymd] => 2026-01-09 14:01:06 [RateCDR] => 1 ) [2026-01-09 14:01: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-09 11:01:06' and `end` < '2026-01-09 14:01: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-09 14:01:30] Production.INFO: count ==5731 [2026-01-09 14:01:33] Production.ERROR: pbx CDR StartTime 2026-01-09 11:01:06 - End Time 2026-01-09 14:01:06 [2026-01-09 14:01:33] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 14:01:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16532547', 'tblTempUsageDetail_20' ) start [2026-01-09 14:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16532547', 'tblTempUsageDetail_20' ) end [2026-01-09 14:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16532547', 'tblTempVendorCDR_20' ) start [2026-01-09 14:01:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16532547', 'tblTempVendorCDR_20' ) end [2026-01-09 14:01:34] Production.INFO: ProcessCDR(1,16532547,1,1,2) [2026-01-09 14:01:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16532547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 14:04:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16532547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 14:04:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16532547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 14:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16532547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 14:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16532547', 'tblTempUsageDetail_20' ) start [2026-01-09 14:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16532547', 'tblTempUsageDetail_20' ) end [2026-01-09 14:08:31] Production.ERROR: pbx prc_insertCDR start [2026-01-09 14:08:33] Production.ERROR: pbx prc_insertCDR end [2026-01-09 14:08:33] Production.INFO: ==18384== Releasing lock... [2026-01-09 14:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 14:08:33] Production.INFO: 71.25 MB #Memory Used# [2026-01-09 15:01:07] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 12:01:07 [end_date_ymd] => 2026-01-09 15:01:07 [RateCDR] => 1 ) [2026-01-09 15:01: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-09 12:01:07' and `end` < '2026-01-09 15:01: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-09 15:01:23] Production.INFO: count ==6068 [2026-01-09 15:01:26] Production.ERROR: pbx CDR StartTime 2026-01-09 12:01:07 - End Time 2026-01-09 15:01:07 [2026-01-09 15:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 15:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16532794', 'tblTempUsageDetail_20' ) start [2026-01-09 15:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16532794', 'tblTempUsageDetail_20' ) end [2026-01-09 15:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16532794', 'tblTempVendorCDR_20' ) start [2026-01-09 15:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16532794', 'tblTempVendorCDR_20' ) end [2026-01-09 15:01:27] Production.INFO: ProcessCDR(1,16532794,1,1,2) [2026-01-09 15:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16532794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 15:04:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16532794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 15:04:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16532794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 15:08:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16532794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 15:08:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16532794', 'tblTempUsageDetail_20' ) start [2026-01-09 15:08:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16532794', 'tblTempUsageDetail_20' ) end [2026-01-09 15:08:37] Production.ERROR: pbx prc_insertCDR start [2026-01-09 15:08:40] Production.ERROR: pbx prc_insertCDR end [2026-01-09 15:08:40] Production.INFO: ==22703== Releasing lock... [2026-01-09 15:08:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 15:08:40] Production.INFO: 73.75 MB #Memory Used# [2026-01-09 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 13:01:06 [end_date_ymd] => 2026-01-09 16:01:06 [RateCDR] => 1 ) [2026-01-09 16:01: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-09 13:01:06' and `end` < '2026-01-09 16:01: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-09 16:01:23] Production.INFO: count ==6346 [2026-01-09 16:01:26] Production.ERROR: pbx CDR StartTime 2026-01-09 13:01:06 - End Time 2026-01-09 16:01:06 [2026-01-09 16:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 16:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16533041', 'tblTempUsageDetail_20' ) start [2026-01-09 16:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16533041', 'tblTempUsageDetail_20' ) end [2026-01-09 16:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16533041', 'tblTempVendorCDR_20' ) start [2026-01-09 16:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16533041', 'tblTempVendorCDR_20' ) end [2026-01-09 16:01:26] Production.INFO: ProcessCDR(1,16533041,1,1,2) [2026-01-09 16:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16533041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 16:04:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16533041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 16:04:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16533041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 16:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16533041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16533041', 'tblTempUsageDetail_20' ) start [2026-01-09 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16533041', 'tblTempUsageDetail_20' ) end [2026-01-09 16:08:26] Production.ERROR: pbx prc_insertCDR start [2026-01-09 16:08:29] Production.ERROR: pbx prc_insertCDR end [2026-01-09 16:08:29] Production.INFO: ==27549== Releasing lock... [2026-01-09 16:08:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 16:08:29] Production.INFO: 75.75 MB #Memory Used# [2026-01-09 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 14:01:06 [end_date_ymd] => 2026-01-09 17:01:06 [RateCDR] => 1 ) [2026-01-09 17:01: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-09 14:01:06' and `end` < '2026-01-09 17:01: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-09 17:01:21] Production.INFO: count ==6150 [2026-01-09 17:01:24] Production.ERROR: pbx CDR StartTime 2026-01-09 14:01:06 - End Time 2026-01-09 17:01:06 [2026-01-09 17:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 17:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16533287', 'tblTempUsageDetail_20' ) start [2026-01-09 17:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16533287', 'tblTempUsageDetail_20' ) end [2026-01-09 17:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16533287', 'tblTempVendorCDR_20' ) start [2026-01-09 17:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16533287', 'tblTempVendorCDR_20' ) end [2026-01-09 17:01:25] Production.INFO: ProcessCDR(1,16533287,1,1,2) [2026-01-09 17:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16533287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 17:04:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16533287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 17:04:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16533287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 17:08:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16533287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 17:08:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16533287', 'tblTempUsageDetail_20' ) start [2026-01-09 17:08:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16533287', 'tblTempUsageDetail_20' ) end [2026-01-09 17:08:43] Production.ERROR: pbx prc_insertCDR start [2026-01-09 17:08:46] Production.ERROR: pbx prc_insertCDR end [2026-01-09 17:08:46] Production.INFO: ==31866== Releasing lock... [2026-01-09 17:08:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 17:08:46] Production.INFO: 74.25 MB #Memory Used# [2026-01-09 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 15:01:06 [end_date_ymd] => 2026-01-09 18:01:06 [RateCDR] => 1 ) [2026-01-09 18:01: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-09 15:01:06' and `end` < '2026-01-09 18:01: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-09 18:01:26] Production.INFO: count ==5415 [2026-01-09 18:01:28] Production.ERROR: pbx CDR StartTime 2026-01-09 15:01:06 - End Time 2026-01-09 18:01:06 [2026-01-09 18:01:28] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 18:01:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16533533', 'tblTempUsageDetail_20' ) start [2026-01-09 18:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16533533', 'tblTempUsageDetail_20' ) end [2026-01-09 18:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16533533', 'tblTempVendorCDR_20' ) start [2026-01-09 18:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16533533', 'tblTempVendorCDR_20' ) end [2026-01-09 18:01:29] Production.INFO: ProcessCDR(1,16533533,1,1,2) [2026-01-09 18:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16533533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 18:04:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16533533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 18:04:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16533533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 18:08:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16533533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 18:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16533533', 'tblTempUsageDetail_20' ) start [2026-01-09 18:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16533533', 'tblTempUsageDetail_20' ) end [2026-01-09 18:08:20] Production.ERROR: pbx prc_insertCDR start [2026-01-09 18:08:21] Production.ERROR: pbx prc_insertCDR end [2026-01-09 18:08:21] Production.INFO: ==3986== Releasing lock... [2026-01-09 18:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 18:08:21] Production.INFO: 68.75 MB #Memory Used# [2026-01-09 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 16:01:06 [end_date_ymd] => 2026-01-09 19:01:06 [RateCDR] => 1 ) [2026-01-09 19:01: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-09 16:01:06' and `end` < '2026-01-09 19:01: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-09 19:01:19] Production.INFO: count ==4553 [2026-01-09 19:01:21] Production.ERROR: pbx CDR StartTime 2026-01-09 16:01:06 - End Time 2026-01-09 19:01:06 [2026-01-09 19:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16533780', 'tblTempUsageDetail_20' ) start [2026-01-09 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16533780', 'tblTempUsageDetail_20' ) end [2026-01-09 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16533780', 'tblTempVendorCDR_20' ) start [2026-01-09 19:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16533780', 'tblTempVendorCDR_20' ) end [2026-01-09 19:01:21] Production.INFO: ProcessCDR(1,16533780,1,1,2) [2026-01-09 19:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16533780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 19:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16533780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 19:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16533780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 19:08:07] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16533780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 19:08:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16533780', 'tblTempUsageDetail_20' ) start [2026-01-09 19:08:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16533780', 'tblTempUsageDetail_20' ) end [2026-01-09 19:08:08] Production.ERROR: pbx prc_insertCDR start [2026-01-09 19:08:09] Production.ERROR: pbx prc_insertCDR end [2026-01-09 19:08:09] Production.INFO: ==8503== Releasing lock... [2026-01-09 19:08:09] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 19:08:09] Production.INFO: 62.25 MB #Memory Used# [2026-01-09 20:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 17:01:06 [end_date_ymd] => 2026-01-09 20:01:06 [RateCDR] => 1 ) [2026-01-09 20:01: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-09 17:01:06' and `end` < '2026-01-09 20:01: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-09 20:01:19] Production.INFO: count ==3240 [2026-01-09 20:01:20] Production.ERROR: pbx CDR StartTime 2026-01-09 17:01:06 - End Time 2026-01-09 20:01:06 [2026-01-09 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16534027', 'tblTempUsageDetail_20' ) start [2026-01-09 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16534027', 'tblTempUsageDetail_20' ) end [2026-01-09 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16534027', 'tblTempVendorCDR_20' ) start [2026-01-09 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16534027', 'tblTempVendorCDR_20' ) end [2026-01-09 20:01:20] Production.INFO: ProcessCDR(1,16534027,1,1,2) [2026-01-09 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16534027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 20:04:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16534027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 20:04:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16534027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 20:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16534027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 20:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16534027', 'tblTempUsageDetail_20' ) start [2026-01-09 20:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16534027', 'tblTempUsageDetail_20' ) end [2026-01-09 20:08:31] Production.ERROR: pbx prc_insertCDR start [2026-01-09 20:08:31] Production.ERROR: pbx prc_insertCDR end [2026-01-09 20:08:31] Production.INFO: ==12897== Releasing lock... [2026-01-09 20:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 20:08:31] Production.INFO: 52.25 MB #Memory Used# [2026-01-09 21:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 18:01:06 [end_date_ymd] => 2026-01-09 21:01:06 [RateCDR] => 1 ) [2026-01-09 21:01: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-09 18:01:06' and `end` < '2026-01-09 21:01: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-09 21:01:18] Production.INFO: count ==2507 [2026-01-09 21:01:19] Production.ERROR: pbx CDR StartTime 2026-01-09 18:01:06 - End Time 2026-01-09 21:01:06 [2026-01-09 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16534274', 'tblTempUsageDetail_20' ) start [2026-01-09 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16534274', 'tblTempUsageDetail_20' ) end [2026-01-09 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16534274', 'tblTempVendorCDR_20' ) start [2026-01-09 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16534274', 'tblTempVendorCDR_20' ) end [2026-01-09 21:01:19] Production.INFO: ProcessCDR(1,16534274,1,1,2) [2026-01-09 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16534274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 21:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16534274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 21:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16534274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 21:08:10] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16534274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 21:08:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16534274', 'tblTempUsageDetail_20' ) start [2026-01-09 21:08:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16534274', 'tblTempUsageDetail_20' ) end [2026-01-09 21:08:10] Production.ERROR: pbx prc_insertCDR start [2026-01-09 21:08:11] Production.ERROR: pbx prc_insertCDR end [2026-01-09 21:08:11] Production.INFO: ==18626== Releasing lock... [2026-01-09 21:08:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 21:08:11] Production.INFO: 47 MB #Memory Used# [2026-01-09 22:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 19:01:06 [end_date_ymd] => 2026-01-09 22:01:06 [RateCDR] => 1 ) [2026-01-09 22:01: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-09 19:01:06' and `end` < '2026-01-09 22:01: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-09 22:01:19] Production.INFO: count ==1853 [2026-01-09 22:01:19] Production.ERROR: pbx CDR StartTime 2026-01-09 19:01:06 - End Time 2026-01-09 22:01:06 [2026-01-09 22:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16534521', 'tblTempUsageDetail_20' ) start [2026-01-09 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16534521', 'tblTempUsageDetail_20' ) end [2026-01-09 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16534521', 'tblTempVendorCDR_20' ) start [2026-01-09 22:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16534521', 'tblTempVendorCDR_20' ) end [2026-01-09 22:01:19] Production.INFO: ProcessCDR(1,16534521,1,1,2) [2026-01-09 22:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16534521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 22:04:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16534521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 22:04:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16534521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 22:08:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16534521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 22:08:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16534521', 'tblTempUsageDetail_20' ) start [2026-01-09 22:08:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16534521', 'tblTempUsageDetail_20' ) end [2026-01-09 22:08:36] Production.ERROR: pbx prc_insertCDR start [2026-01-09 22:08:36] Production.ERROR: pbx prc_insertCDR end [2026-01-09 22:08:36] Production.INFO: ==22959== Releasing lock... [2026-01-09 22:08:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 22:08:36] Production.INFO: 42 MB #Memory Used# [2026-01-09 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-09 20:01:06 [end_date_ymd] => 2026-01-09 23:01:06 [RateCDR] => 1 ) [2026-01-09 23:01: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-09 20:01:06' and `end` < '2026-01-09 23:01: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-09 23:01:18] Production.INFO: count ==1349 [2026-01-09 23:01:19] Production.ERROR: pbx CDR StartTime 2026-01-09 20:01:06 - End Time 2026-01-09 23:01:06 [2026-01-09 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-09 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16534767', 'tblTempUsageDetail_20' ) start [2026-01-09 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16534767', 'tblTempUsageDetail_20' ) end [2026-01-09 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16534767', 'tblTempVendorCDR_20' ) start [2026-01-09 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16534767', 'tblTempVendorCDR_20' ) end [2026-01-09 23:01:19] Production.INFO: ProcessCDR(1,16534767,1,1,2) [2026-01-09 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16534767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 23:04:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16534767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-09 23:04:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16534767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 23:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16534767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-09 23:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16534767', 'tblTempUsageDetail_20' ) start [2026-01-09 23:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16534767', 'tblTempUsageDetail_20' ) end [2026-01-09 23:08:31] Production.ERROR: pbx prc_insertCDR start [2026-01-09 23:08:31] Production.ERROR: pbx prc_insertCDR end [2026-01-09 23:08:31] Production.INFO: ==27363== Releasing lock... [2026-01-09 23:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-09 23:08:31] Production.INFO: 38.5 MB #Memory Used#