[2026-01-07 00:00:05] Production.INFO: next invoice date [2026-01-07 00:00:05] Production.INFO: 2026-02-07 [2026-01-07 00:00:05] Production.INFO: getdaysdiff [2026-01-07 00:00:05] Production.INFO: +31 [2026-01-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,16,1,31,31,'RMScheduler',2026-01-07 00:00:05,1,0,,,0) [2026-01-07 00:00:05] Production.INFO: next invoice date [2026-01-07 00:00:05] Production.INFO: 2026-02-07 [2026-01-07 00:00:05] Production.INFO: getdaysdiff [2026-01-07 00:00:05] Production.INFO: +31 [2026-01-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,13,2,31,31,'RMScheduler',2026-01-07 00:00:05,1,0,,,0) [2026-01-07 00:00:05] Production.INFO: next invoice date [2026-01-07 00:00:05] Production.INFO: 2026-02-07 [2026-01-07 00:00:05] Production.INFO: getdaysdiff [2026-01-07 00:00:05] Production.INFO: +31 [2026-01-07 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (232,11,1,31,31,'RMScheduler',2026-01-07 00:00:05,0,0,,,0) [2026-01-07 00:00:06] Production.INFO: next invoice date [2026-01-07 00:00:06] Production.INFO: 2026-02-07 [2026-01-07 00:00:06] Production.INFO: getdaysdiff [2026-01-07 00:00:06] Production.INFO: +31 [2026-01-07 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (232,13,2,31,31,'RMScheduler',2026-01-07 00:00:05,0,0,,,0) [2026-01-07 00:00:07] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 21:00:07 [end_date_ymd] => 2026-01-07 00:00:07 [RateCDR] => 1 ) [2026-01-07 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-06 21:00:07' and `end` < '2026-01-07 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-07 00:00:20] Production.INFO: count ==809 [2026-01-07 00:00:20] Production.ERROR: pbx CDR StartTime 2026-01-06 21:00:07 - End Time 2026-01-07 00:00:07 [2026-01-07 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16517227', 'tblTempUsageDetail_20' ) start [2026-01-07 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16517227', 'tblTempUsageDetail_20' ) end [2026-01-07 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16517227', 'tblTempVendorCDR_20' ) start [2026-01-07 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16517227', 'tblTempVendorCDR_20' ) end [2026-01-07 00:00:21] Production.INFO: ProcessCDR(1,16517227,1,1,2) [2026-01-07 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16517227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 00:03:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16517227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 00:03:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16517227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 00:07:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16517227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16517227', 'tblTempUsageDetail_20' ) start [2026-01-07 00:07:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16517227', 'tblTempUsageDetail_20' ) end [2026-01-07 00:07:30] Production.ERROR: pbx prc_insertCDR start [2026-01-07 00:07:31] Production.ERROR: pbx prc_insertCDR end [2026-01-07 00:07:32] Production.INFO: ==13258== Releasing lock... [2026-01-07 00:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 00:07:32] Production.INFO: 38 MB #Memory Used# [2026-01-07 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 22:00:06 [end_date_ymd] => 2026-01-07 01:00:06 [RateCDR] => 1 ) [2026-01-07 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-06 22:00:06' and `end` < '2026-01-07 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-07 01:00:18] Production.INFO: count ==564 [2026-01-07 01:00:18] Production.ERROR: pbx CDR StartTime 2026-01-06 22:00:06 - End Time 2026-01-07 01:00:06 [2026-01-07 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16517474', 'tblTempUsageDetail_20' ) start [2026-01-07 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16517474', 'tblTempUsageDetail_20' ) end [2026-01-07 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16517474', 'tblTempVendorCDR_20' ) start [2026-01-07 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16517474', 'tblTempVendorCDR_20' ) end [2026-01-07 01:00:18] Production.INFO: ProcessCDR(1,16517474,1,1,2) [2026-01-07 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16517474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 01:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16517474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 01:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16517474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 01:07:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16517474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 01:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16517474', 'tblTempUsageDetail_20' ) start [2026-01-07 01:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16517474', 'tblTempUsageDetail_20' ) end [2026-01-07 01:07:35] Production.ERROR: pbx prc_insertCDR start [2026-01-07 01:07:36] Production.ERROR: pbx prc_insertCDR end [2026-01-07 01:07:36] Production.INFO: ==17963== Releasing lock... [2026-01-07 01:07:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 01:07:36] Production.INFO: 32.75 MB #Memory Used# [2026-01-07 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-06 23:00:06 [end_date_ymd] => 2026-01-07 02:00:06 [RateCDR] => 1 ) [2026-01-07 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-06 23:00:06' and `end` < '2026-01-07 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-07 02:00:18] Production.INFO: count ==504 [2026-01-07 02:00:18] Production.ERROR: pbx CDR StartTime 2026-01-06 23:00:06 - End Time 2026-01-07 02:00:06 [2026-01-07 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16517721', 'tblTempUsageDetail_20' ) start [2026-01-07 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16517721', 'tblTempUsageDetail_20' ) end [2026-01-07 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16517721', 'tblTempVendorCDR_20' ) start [2026-01-07 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16517721', 'tblTempVendorCDR_20' ) end [2026-01-07 02:00:18] Production.INFO: ProcessCDR(1,16517721,1,1,2) [2026-01-07 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16517721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 02:03:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16517721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 02:03:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16517721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 02:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16517721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 02:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16517721', 'tblTempUsageDetail_20' ) start [2026-01-07 02:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16517721', 'tblTempUsageDetail_20' ) end [2026-01-07 02:07:31] Production.ERROR: pbx prc_insertCDR start [2026-01-07 02:07:31] Production.ERROR: pbx prc_insertCDR end [2026-01-07 02:07:31] Production.INFO: ==22397== Releasing lock... [2026-01-07 02:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 02:07:31] Production.INFO: 32.5 MB #Memory Used# [2026-01-07 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 00:00:06 [end_date_ymd] => 2026-01-07 03:00:06 [RateCDR] => 1 ) [2026-01-07 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-07 00:00:06' and `end` < '2026-01-07 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-07 03:00:18] Production.INFO: count ==457 [2026-01-07 03:00:18] Production.ERROR: pbx CDR StartTime 2026-01-07 00:00:06 - End Time 2026-01-07 03:00:06 [2026-01-07 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16517968', 'tblTempUsageDetail_20' ) start [2026-01-07 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16517968', 'tblTempUsageDetail_20' ) end [2026-01-07 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16517968', 'tblTempVendorCDR_20' ) start [2026-01-07 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16517968', 'tblTempVendorCDR_20' ) end [2026-01-07 03:00:18] Production.INFO: ProcessCDR(1,16517968,1,1,2) [2026-01-07 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16517968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 03:03:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16517968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 03:03:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16517968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16517968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16517968', 'tblTempUsageDetail_20' ) start [2026-01-07 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16517968', 'tblTempUsageDetail_20' ) end [2026-01-07 03:07:21] Production.ERROR: pbx prc_insertCDR start [2026-01-07 03:07:21] Production.ERROR: pbx prc_insertCDR end [2026-01-07 03:07:21] Production.INFO: ==27016== Releasing lock... [2026-01-07 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 03:07:21] Production.INFO: 32.5 MB #Memory Used# [2026-01-07 04:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 01:00:05 [end_date_ymd] => 2026-01-07 04:00:05 [RateCDR] => 1 ) [2026-01-07 04: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-07 01:00:05' and `end` < '2026-01-07 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-07 04:00:17] Production.INFO: count ==282 [2026-01-07 04:00:18] Production.ERROR: pbx CDR StartTime 2026-01-07 01:00:05 - End Time 2026-01-07 04:00:05 [2026-01-07 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16518216', 'tblTempUsageDetail_20' ) start [2026-01-07 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16518216', 'tblTempUsageDetail_20' ) end [2026-01-07 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16518216', 'tblTempVendorCDR_20' ) start [2026-01-07 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16518216', 'tblTempVendorCDR_20' ) end [2026-01-07 04:00:18] Production.INFO: ProcessCDR(1,16518216,1,1,2) [2026-01-07 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16518216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16518216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16518216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 04:06:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16518216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 04:06:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16518216', 'tblTempUsageDetail_20' ) start [2026-01-07 04:06:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16518216', 'tblTempUsageDetail_20' ) end [2026-01-07 04:06:48] Production.ERROR: pbx prc_insertCDR start [2026-01-07 04:06:48] Production.ERROR: pbx prc_insertCDR end [2026-01-07 04:06:48] Production.INFO: ==31891== Releasing lock... [2026-01-07 04:06:48] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 04:06:48] Production.INFO: 30.75 MB #Memory Used# [2026-01-07 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 02:00:06 [end_date_ymd] => 2026-01-07 05:00:06 [RateCDR] => 1 ) [2026-01-07 05:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-07 02:00:06' and `end` < '2026-01-07 05:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-07 05:00:19] Production.INFO: count ==211 [2026-01-07 05:00:19] Production.ERROR: pbx CDR StartTime 2026-01-07 02:00:06 - End Time 2026-01-07 05:00:06 [2026-01-07 05:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16518464', 'tblTempUsageDetail_20' ) start [2026-01-07 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16518464', 'tblTempUsageDetail_20' ) end [2026-01-07 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16518464', 'tblTempVendorCDR_20' ) start [2026-01-07 05:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16518464', 'tblTempVendorCDR_20' ) end [2026-01-07 05:00:19] Production.INFO: ProcessCDR(1,16518464,1,1,2) [2026-01-07 05:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16518464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 05:02:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16518464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 05:02:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16518464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 05:06:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16518464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 05:06:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16518464', 'tblTempUsageDetail_20' ) start [2026-01-07 05:06:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16518464', 'tblTempUsageDetail_20' ) end [2026-01-07 05:06:53] Production.ERROR: pbx prc_insertCDR start [2026-01-07 05:06:53] Production.ERROR: pbx prc_insertCDR end [2026-01-07 05:06:53] Production.INFO: ==4004== Releasing lock... [2026-01-07 05:06:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 05:06:53] Production.INFO: 30 MB #Memory Used# [2026-01-07 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 03:00:05 [end_date_ymd] => 2026-01-07 06:00:05 [RateCDR] => 1 ) [2026-01-07 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-07 03:00:05' and `end` < '2026-01-07 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-07 06:00:17] Production.INFO: count ==137 [2026-01-07 06:00:17] Production.ERROR: pbx CDR StartTime 2026-01-07 03:00:05 - End Time 2026-01-07 06:00:05 [2026-01-07 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16518711', 'tblTempUsageDetail_20' ) start [2026-01-07 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16518711', 'tblTempUsageDetail_20' ) end [2026-01-07 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16518711', 'tblTempVendorCDR_20' ) start [2026-01-07 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16518711', 'tblTempVendorCDR_20' ) end [2026-01-07 06:00:17] Production.INFO: ProcessCDR(1,16518711,1,1,2) [2026-01-07 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16518711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 06:03:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16518711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 06:03:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16518711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 06:07:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16518711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 06:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16518711', 'tblTempUsageDetail_20' ) start [2026-01-07 06:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16518711', 'tblTempUsageDetail_20' ) end [2026-01-07 06:07:29] Production.ERROR: pbx prc_insertCDR start [2026-01-07 06:07:29] Production.ERROR: pbx prc_insertCDR end [2026-01-07 06:07:29] Production.INFO: ==8384== Releasing lock... [2026-01-07 06:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 06:07:29] Production.INFO: 29.5 MB #Memory Used# [2026-01-07 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 04:00:06 [end_date_ymd] => 2026-01-07 07:00:06 [RateCDR] => 1 ) [2026-01-07 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-07 04:00:06' and `end` < '2026-01-07 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-07 07:00:18] Production.INFO: count ==128 [2026-01-07 07:00:18] Production.ERROR: pbx CDR StartTime 2026-01-07 04:00:06 - End Time 2026-01-07 07:00:06 [2026-01-07 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16518958', 'tblTempUsageDetail_20' ) start [2026-01-07 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16518958', 'tblTempUsageDetail_20' ) end [2026-01-07 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16518958', 'tblTempVendorCDR_20' ) start [2026-01-07 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16518958', 'tblTempVendorCDR_20' ) end [2026-01-07 07:00:18] Production.INFO: ProcessCDR(1,16518958,1,1,2) [2026-01-07 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16518958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 07:03:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16518958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 07:03:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16518958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 07:07:09] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16518958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 07:07:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16518958', 'tblTempUsageDetail_20' ) start [2026-01-07 07:07:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16518958', 'tblTempUsageDetail_20' ) end [2026-01-07 07:07:10] Production.ERROR: pbx prc_insertCDR start [2026-01-07 07:07:10] Production.ERROR: pbx prc_insertCDR end [2026-01-07 07:07:10] Production.INFO: ==12790== Releasing lock... [2026-01-07 07:07:10] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 07:07:10] Production.INFO: 29.25 MB #Memory Used# [2026-01-07 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 05:00:05 [end_date_ymd] => 2026-01-07 08:00:05 [RateCDR] => 1 ) [2026-01-07 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-07 05:00:05' and `end` < '2026-01-07 08: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-07 08:00:18] Production.INFO: count ==200 [2026-01-07 08:00:18] Production.ERROR: pbx CDR StartTime 2026-01-07 05:00:05 - End Time 2026-01-07 08:00:05 [2026-01-07 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16519205', 'tblTempUsageDetail_20' ) start [2026-01-07 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16519205', 'tblTempUsageDetail_20' ) end [2026-01-07 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16519205', 'tblTempVendorCDR_20' ) start [2026-01-07 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16519205', 'tblTempVendorCDR_20' ) end [2026-01-07 08:00:18] Production.INFO: ProcessCDR(1,16519205,1,1,2) [2026-01-07 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16519205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 08:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16519205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 08:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16519205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 08:07:10] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16519205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 08:07:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16519205', 'tblTempUsageDetail_20' ) start [2026-01-07 08:07:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16519205', 'tblTempUsageDetail_20' ) end [2026-01-07 08:07:10] Production.ERROR: pbx prc_insertCDR start [2026-01-07 08:07:10] Production.ERROR: pbx prc_insertCDR end [2026-01-07 08:07:10] Production.INFO: ==17384== Releasing lock... [2026-01-07 08:07:10] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 08:07:10] Production.INFO: 29.75 MB #Memory Used# [2026-01-07 09:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 06:00:06 [end_date_ymd] => 2026-01-07 09:00:06 [RateCDR] => 1 ) [2026-01-07 09:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-07 06:00:06' and `end` < '2026-01-07 09:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-07 09:00:18] Production.INFO: count ==1073 [2026-01-07 09:00:19] Production.ERROR: pbx CDR StartTime 2026-01-07 06:00:06 - End Time 2026-01-07 09:00:06 [2026-01-07 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16519452', 'tblTempUsageDetail_20' ) start [2026-01-07 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16519452', 'tblTempUsageDetail_20' ) end [2026-01-07 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16519452', 'tblTempVendorCDR_20' ) start [2026-01-07 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16519452', 'tblTempVendorCDR_20' ) end [2026-01-07 09:00:19] Production.INFO: ProcessCDR(1,16519452,1,1,2) [2026-01-07 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16519452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 09:03:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16519452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 09:03:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16519452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 09:07:10] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16519452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 09:07:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16519452', 'tblTempUsageDetail_20' ) start [2026-01-07 09:07:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16519452', 'tblTempUsageDetail_20' ) end [2026-01-07 09:07:10] Production.ERROR: pbx prc_insertCDR start [2026-01-07 09:07:11] Production.ERROR: pbx prc_insertCDR end [2026-01-07 09:07:11] Production.INFO: ==22417== Releasing lock... [2026-01-07 09:07:11] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 09:07:11] Production.INFO: 36.75 MB #Memory Used# [2026-01-07 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 07:00:06 [end_date_ymd] => 2026-01-07 10:00:06 [RateCDR] => 1 ) [2026-01-07 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-07 07:00:06' and `end` < '2026-01-07 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-07 10:00:20] Production.INFO: count ==2851 [2026-01-07 10:00:22] Production.ERROR: pbx CDR StartTime 2026-01-07 07:00:06 - End Time 2026-01-07 10:00:06 [2026-01-07 10:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16519699', 'tblTempUsageDetail_20' ) start [2026-01-07 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16519699', 'tblTempUsageDetail_20' ) end [2026-01-07 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16519699', 'tblTempVendorCDR_20' ) start [2026-01-07 10:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16519699', 'tblTempVendorCDR_20' ) end [2026-01-07 10:00:22] Production.INFO: ProcessCDR(1,16519699,1,1,2) [2026-01-07 10:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16519699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16519699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16519699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 10:08:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16519699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 10:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16519699', 'tblTempUsageDetail_20' ) start [2026-01-07 10:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16519699', 'tblTempUsageDetail_20' ) end [2026-01-07 10:08:19] Production.ERROR: pbx prc_insertCDR start [2026-01-07 10:08:21] Production.ERROR: pbx prc_insertCDR end [2026-01-07 10:08:21] Production.INFO: ==28166== Releasing lock... [2026-01-07 10:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 10:08:21] Production.INFO: 49.5 MB #Memory Used# [2026-01-07 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 08:00:05 [end_date_ymd] => 2026-01-07 11:00:05 [RateCDR] => 1 ) [2026-01-07 11: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-07 08:00:05' and `end` < '2026-01-07 11: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-07 11:00:20] Production.INFO: count ==4568 [2026-01-07 11:00:22] Production.ERROR: pbx CDR StartTime 2026-01-07 08:00:05 - End Time 2026-01-07 11:00:05 [2026-01-07 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16519946', 'tblTempUsageDetail_20' ) start [2026-01-07 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16519946', 'tblTempUsageDetail_20' ) end [2026-01-07 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16519946', 'tblTempVendorCDR_20' ) start [2026-01-07 11:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16519946', 'tblTempVendorCDR_20' ) end [2026-01-07 11:00:23] Production.INFO: ProcessCDR(1,16519946,1,1,2) [2026-01-07 11:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16519946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16519946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16519946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 11:08:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16519946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 11:08:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16519946', 'tblTempUsageDetail_20' ) start [2026-01-07 11:08:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16519946', 'tblTempUsageDetail_20' ) end [2026-01-07 11:08:16] Production.ERROR: pbx prc_insertCDR start [2026-01-07 11:08:18] Production.ERROR: pbx prc_insertCDR end [2026-01-07 11:08:18] Production.INFO: ==2311== Releasing lock... [2026-01-07 11:08:18] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 11:08:18] Production.INFO: 62.25 MB #Memory Used# [2026-01-07 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 09:00:06 [end_date_ymd] => 2026-01-07 12:00:06 [RateCDR] => 1 ) [2026-01-07 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-07 09:00:06' and `end` < '2026-01-07 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-07 12:00:20] Production.INFO: count ==5640 [2026-01-07 12:00:22] Production.ERROR: pbx CDR StartTime 2026-01-07 09:00:06 - End Time 2026-01-07 12:00:06 [2026-01-07 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16520193', 'tblTempUsageDetail_20' ) start [2026-01-07 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16520193', 'tblTempUsageDetail_20' ) end [2026-01-07 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16520193', 'tblTempVendorCDR_20' ) start [2026-01-07 12:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16520193', 'tblTempVendorCDR_20' ) end [2026-01-07 12:00:23] Production.INFO: ProcessCDR(1,16520193,1,1,2) [2026-01-07 12:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16520193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 12:04:11] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16520193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 12:04:11] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16520193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 12:07:58] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16520193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 12:07:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16520193', 'tblTempUsageDetail_20' ) start [2026-01-07 12:07:58] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16520193', 'tblTempUsageDetail_20' ) end [2026-01-07 12:07:58] Production.ERROR: pbx prc_insertCDR start [2026-01-07 12:08:01] Production.ERROR: pbx prc_insertCDR end [2026-01-07 12:08:01] Production.INFO: ==6687== Releasing lock... [2026-01-07 12:08:01] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 12:08:01] Production.INFO: 70.5 MB #Memory Used# [2026-01-07 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 10:00:05 [end_date_ymd] => 2026-01-07 13:00:05 [RateCDR] => 1 ) [2026-01-07 13:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-07 10:00:05' and `end` < '2026-01-07 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-07 13:00:23] Production.INFO: count ==5838 [2026-01-07 13:00:26] Production.ERROR: pbx CDR StartTime 2026-01-07 10:00:05 - End Time 2026-01-07 13:00:05 [2026-01-07 13:00:26] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 13:00:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16520440', 'tblTempUsageDetail_20' ) start [2026-01-07 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16520440', 'tblTempUsageDetail_20' ) end [2026-01-07 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16520440', 'tblTempVendorCDR_20' ) start [2026-01-07 13:00:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16520440', 'tblTempVendorCDR_20' ) end [2026-01-07 13:00:27] Production.INFO: ProcessCDR(1,16520440,1,1,2) [2026-01-07 13:00:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16520440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 13:04:11] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16520440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 13:04:11] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16520440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 13:07:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16520440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 13:07:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16520440', 'tblTempUsageDetail_20' ) start [2026-01-07 13:07:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16520440', 'tblTempUsageDetail_20' ) end [2026-01-07 13:07:51] Production.ERROR: pbx prc_insertCDR start [2026-01-07 13:07:53] Production.ERROR: pbx prc_insertCDR end [2026-01-07 13:07:53] Production.INFO: ==11571== Releasing lock... [2026-01-07 13:07:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 13:07:53] Production.INFO: 72 MB #Memory Used# [2026-01-07 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 11:00:06 [end_date_ymd] => 2026-01-07 14:00:06 [RateCDR] => 1 ) [2026-01-07 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-07 11:00:06' and `end` < '2026-01-07 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-07 14:00:20] Production.INFO: count ==5864 [2026-01-07 14:00:23] Production.ERROR: pbx CDR StartTime 2026-01-07 11:00:06 - End Time 2026-01-07 14:00:06 [2026-01-07 14:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 14:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16520687', 'tblTempUsageDetail_20' ) start [2026-01-07 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16520687', 'tblTempUsageDetail_20' ) end [2026-01-07 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16520687', 'tblTempVendorCDR_20' ) start [2026-01-07 14:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16520687', 'tblTempVendorCDR_20' ) end [2026-01-07 14:00:24] Production.INFO: ProcessCDR(1,16520687,1,1,2) [2026-01-07 14:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16520687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 14:04:15] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16520687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 14:04:15] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16520687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 14:07:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16520687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 14:07:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16520687', 'tblTempUsageDetail_20' ) start [2026-01-07 14:07:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16520687', 'tblTempUsageDetail_20' ) end [2026-01-07 14:07:56] Production.ERROR: pbx prc_insertCDR start [2026-01-07 14:07:58] Production.ERROR: pbx prc_insertCDR end [2026-01-07 14:07:58] Production.INFO: ==16368== Releasing lock... [2026-01-07 14:07:58] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 14:07:58] Production.INFO: 72.25 MB #Memory Used# [2026-01-07 15:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 12:00:05 [end_date_ymd] => 2026-01-07 15:00:05 [RateCDR] => 1 ) [2026-01-07 15:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-07 12:00:05' and `end` < '2026-01-07 15:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-07 15:00:20] Production.INFO: count ==6071 [2026-01-07 15:00:23] Production.ERROR: pbx CDR StartTime 2026-01-07 12:00:05 - End Time 2026-01-07 15:00:05 [2026-01-07 15:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 15:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16520934', 'tblTempUsageDetail_20' ) start [2026-01-07 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16520934', 'tblTempUsageDetail_20' ) end [2026-01-07 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16520934', 'tblTempVendorCDR_20' ) start [2026-01-07 15:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16520934', 'tblTempVendorCDR_20' ) end [2026-01-07 15:00:24] Production.INFO: ProcessCDR(1,16520934,1,1,2) [2026-01-07 15:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16520934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 15:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16520934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 15:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16520934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 15:07:17] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16520934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 15:07:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16520934', 'tblTempUsageDetail_20' ) start [2026-01-07 15:07:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16520934', 'tblTempUsageDetail_20' ) end [2026-01-07 15:07:17] Production.ERROR: pbx prc_insertCDR start [2026-01-07 15:07:19] Production.ERROR: pbx prc_insertCDR end [2026-01-07 15:07:19] Production.INFO: ==20695== Releasing lock... [2026-01-07 15:07:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 15:07:19] Production.INFO: 73.75 MB #Memory Used# [2026-01-07 16:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 13:00:05 [end_date_ymd] => 2026-01-07 16:00:05 [RateCDR] => 1 ) [2026-01-07 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-07 13:00:05' and `end` < '2026-01-07 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-07 16:00:19] Production.INFO: count ==5869 [2026-01-07 16:00:22] Production.ERROR: pbx CDR StartTime 2026-01-07 13:00:05 - End Time 2026-01-07 16:00:05 [2026-01-07 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16521181', 'tblTempUsageDetail_20' ) start [2026-01-07 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16521181', 'tblTempUsageDetail_20' ) end [2026-01-07 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16521181', 'tblTempVendorCDR_20' ) start [2026-01-07 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16521181', 'tblTempVendorCDR_20' ) end [2026-01-07 16:00:22] Production.INFO: ProcessCDR(1,16521181,1,1,2) [2026-01-07 16:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16521181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 16:04:09] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16521181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 16:04:09] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16521181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 16:07:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16521181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 16:07:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16521181', 'tblTempUsageDetail_20' ) start [2026-01-07 16:07:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16521181', 'tblTempUsageDetail_20' ) end [2026-01-07 16:07:51] Production.ERROR: pbx prc_insertCDR start [2026-01-07 16:07:53] Production.ERROR: pbx prc_insertCDR end [2026-01-07 16:07:53] Production.INFO: ==25073== Releasing lock... [2026-01-07 16:07:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 16:07:53] Production.INFO: 72.25 MB #Memory Used# [2026-01-07 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 14:00:05 [end_date_ymd] => 2026-01-07 17:00:05 [RateCDR] => 1 ) [2026-01-07 17: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-07 14:00:05' and `end` < '2026-01-07 17: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-07 17:00:19] Production.INFO: count ==5727 [2026-01-07 17:00:22] Production.ERROR: pbx CDR StartTime 2026-01-07 14:00:05 - End Time 2026-01-07 17:00:05 [2026-01-07 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16521428', 'tblTempUsageDetail_20' ) start [2026-01-07 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16521428', 'tblTempUsageDetail_20' ) end [2026-01-07 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16521428', 'tblTempVendorCDR_20' ) start [2026-01-07 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16521428', 'tblTempVendorCDR_20' ) end [2026-01-07 17:00:22] Production.INFO: ProcessCDR(1,16521428,1,1,2) [2026-01-07 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16521428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 17:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16521428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 17:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16521428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 17:08:14] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16521428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 17:08:14] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16521428', 'tblTempUsageDetail_20' ) start [2026-01-07 17:08:15] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16521428', 'tblTempUsageDetail_20' ) end [2026-01-07 17:08:15] Production.ERROR: pbx prc_insertCDR start [2026-01-07 17:08:19] Production.ERROR: pbx prc_insertCDR end [2026-01-07 17:08:19] Production.INFO: ==29497== Releasing lock... [2026-01-07 17:08:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 17:08:19] Production.INFO: 71.25 MB #Memory Used# [2026-01-07 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 15:00:06 [end_date_ymd] => 2026-01-07 18:00:06 [RateCDR] => 1 ) [2026-01-07 18:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-07 15:00:06' and `end` < '2026-01-07 18:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-07 18:00:19] Production.INFO: count ==4358 [2026-01-07 18:00:21] Production.ERROR: pbx CDR StartTime 2026-01-07 15:00:06 - End Time 2026-01-07 18:00:06 [2026-01-07 18:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16521673', 'tblTempUsageDetail_20' ) start [2026-01-07 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16521673', 'tblTempUsageDetail_20' ) end [2026-01-07 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16521673', 'tblTempVendorCDR_20' ) start [2026-01-07 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16521673', 'tblTempVendorCDR_20' ) end [2026-01-07 18:00:21] Production.INFO: ProcessCDR(1,16521673,1,1,2) [2026-01-07 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16521673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 18:04:12] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16521673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 18:04:12] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16521673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 18:07:50] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16521673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 18:07:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16521673', 'tblTempUsageDetail_20' ) start [2026-01-07 18:07:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16521673', 'tblTempUsageDetail_20' ) end [2026-01-07 18:07:51] Production.ERROR: pbx prc_insertCDR start [2026-01-07 18:07:52] Production.ERROR: pbx prc_insertCDR end [2026-01-07 18:07:52] Production.INFO: ==2220== Releasing lock... [2026-01-07 18:07:52] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 18:07:52] Production.INFO: 60.75 MB #Memory Used# [2026-01-07 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 16:00:06 [end_date_ymd] => 2026-01-07 19:00:06 [RateCDR] => 1 ) [2026-01-07 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-07 16:00:06' and `end` < '2026-01-07 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-07 19:00:18] Production.INFO: count ==3414 [2026-01-07 19:00:20] Production.ERROR: pbx CDR StartTime 2026-01-07 16:00:06 - End Time 2026-01-07 19:00:06 [2026-01-07 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16521920', 'tblTempUsageDetail_20' ) start [2026-01-07 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16521920', 'tblTempUsageDetail_20' ) end [2026-01-07 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16521920', 'tblTempVendorCDR_20' ) start [2026-01-07 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16521920', 'tblTempVendorCDR_20' ) end [2026-01-07 19:00:20] Production.INFO: ProcessCDR(1,16521920,1,1,2) [2026-01-07 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16521920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 19:03:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16521920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 19:03:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16521920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 19:07:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16521920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 19:07:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16521920', 'tblTempUsageDetail_20' ) start [2026-01-07 19:07:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16521920', 'tblTempUsageDetail_20' ) end [2026-01-07 19:07:39] Production.ERROR: pbx prc_insertCDR start [2026-01-07 19:07:40] Production.ERROR: pbx prc_insertCDR end [2026-01-07 19:07:40] Production.INFO: ==6686== Releasing lock... [2026-01-07 19:07:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 19:07:40] Production.INFO: 53.75 MB #Memory Used# [2026-01-07 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 17:00:05 [end_date_ymd] => 2026-01-07 20:00:05 [RateCDR] => 1 ) [2026-01-07 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-07 17:00:05' and `end` < '2026-01-07 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-07 20:00:18] Production.INFO: count ==2268 [2026-01-07 20:00:18] Production.ERROR: pbx CDR StartTime 2026-01-07 17:00:05 - End Time 2026-01-07 20:00:05 [2026-01-07 20:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 20:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16522167', 'tblTempUsageDetail_20' ) start [2026-01-07 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16522167', 'tblTempUsageDetail_20' ) end [2026-01-07 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16522167', 'tblTempVendorCDR_20' ) start [2026-01-07 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16522167', 'tblTempVendorCDR_20' ) end [2026-01-07 20:00:19] Production.INFO: ProcessCDR(1,16522167,1,1,2) [2026-01-07 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16522167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 20:03:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16522167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 20:03:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16522167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 20:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16522167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 20:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16522167', 'tblTempUsageDetail_20' ) start [2026-01-07 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16522167', 'tblTempUsageDetail_20' ) end [2026-01-07 20:07:21] Production.ERROR: pbx prc_insertCDR start [2026-01-07 20:07:22] Production.ERROR: pbx prc_insertCDR end [2026-01-07 20:07:22] Production.INFO: ==11081== Releasing lock... [2026-01-07 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 20:07:22] Production.INFO: 45.25 MB #Memory Used# [2026-01-07 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 18:00:06 [end_date_ymd] => 2026-01-07 21:00:06 [RateCDR] => 1 ) [2026-01-07 21:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-07 18:00:06' and `end` < '2026-01-07 21:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-07 21:00:18] Production.INFO: count ==1767 [2026-01-07 21:00:19] Production.ERROR: pbx CDR StartTime 2026-01-07 18:00:06 - End Time 2026-01-07 21:00:06 [2026-01-07 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16522414', 'tblTempUsageDetail_20' ) start [2026-01-07 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16522414', 'tblTempUsageDetail_20' ) end [2026-01-07 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16522414', 'tblTempVendorCDR_20' ) start [2026-01-07 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16522414', 'tblTempVendorCDR_20' ) end [2026-01-07 21:00:19] Production.INFO: ProcessCDR(1,16522414,1,1,2) [2026-01-07 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16522414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 21:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16522414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 21:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16522414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 21:07:17] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16522414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 21:07:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16522414', 'tblTempUsageDetail_20' ) start [2026-01-07 21:07:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16522414', 'tblTempUsageDetail_20' ) end [2026-01-07 21:07:18] Production.ERROR: pbx prc_insertCDR start [2026-01-07 21:07:18] Production.ERROR: pbx prc_insertCDR end [2026-01-07 21:07:18] Production.INFO: ==15421== Releasing lock... [2026-01-07 21:07:18] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 21:07:18] Production.INFO: 41.5 MB #Memory Used# [2026-01-07 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 19:00:06 [end_date_ymd] => 2026-01-07 22:00:06 [RateCDR] => 1 ) [2026-01-07 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-07 19:00:06' and `end` < '2026-01-07 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-07 22:00:18] Production.INFO: count ==1284 [2026-01-07 22:00:19] Production.ERROR: pbx CDR StartTime 2026-01-07 19:00:06 - End Time 2026-01-07 22:00:06 [2026-01-07 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16522661', 'tblTempUsageDetail_20' ) start [2026-01-07 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16522661', 'tblTempUsageDetail_20' ) end [2026-01-07 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16522661', 'tblTempVendorCDR_20' ) start [2026-01-07 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16522661', 'tblTempVendorCDR_20' ) end [2026-01-07 22:00:19] Production.INFO: ProcessCDR(1,16522661,1,1,2) [2026-01-07 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16522661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 22:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16522661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 22:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16522661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 22:07:18] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16522661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 22:07:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16522661', 'tblTempUsageDetail_20' ) start [2026-01-07 22:07:18] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16522661', 'tblTempUsageDetail_20' ) end [2026-01-07 22:07:18] Production.ERROR: pbx prc_insertCDR start [2026-01-07 22:07:18] Production.ERROR: pbx prc_insertCDR end [2026-01-07 22:07:18] Production.INFO: ==19701== Releasing lock... [2026-01-07 22:07:18] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 22:07:18] Production.INFO: 38 MB #Memory Used# [2026-01-07 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 20:00:06 [end_date_ymd] => 2026-01-07 23:00:06 [RateCDR] => 1 ) [2026-01-07 23:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-07 20:00:06' and `end` < '2026-01-07 23:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-07 23:00:18] Production.INFO: count ==963 [2026-01-07 23:00:18] Production.ERROR: pbx CDR StartTime 2026-01-07 20:00:06 - End Time 2026-01-07 23:00:06 [2026-01-07 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-07 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16522908', 'tblTempUsageDetail_20' ) start [2026-01-07 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16522908', 'tblTempUsageDetail_20' ) end [2026-01-07 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16522908', 'tblTempVendorCDR_20' ) start [2026-01-07 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16522908', 'tblTempVendorCDR_20' ) end [2026-01-07 23:00:18] Production.INFO: ProcessCDR(1,16522908,1,1,2) [2026-01-07 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16522908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 23:03:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16522908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-07 23:03:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16522908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 23:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16522908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-07 23:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16522908', 'tblTempUsageDetail_20' ) start [2026-01-07 23:07:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16522908', 'tblTempUsageDetail_20' ) end [2026-01-07 23:07:29] Production.ERROR: pbx prc_insertCDR start [2026-01-07 23:07:29] Production.ERROR: pbx prc_insertCDR end [2026-01-07 23:07:29] Production.INFO: ==24178== Releasing lock... [2026-01-07 23:07:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-07 23:07:29] Production.INFO: 35.5 MB #Memory Used#