[2026-01-27 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-26 21:02:05 [end_date_ymd] => 2026-01-27 00:02:05 [RateCDR] => 1 ) [2026-01-27 00:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-26 21:02:05' and `end` < '2026-01-27 00:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-27 00:02:38] Production.INFO: count ==531 [2026-01-27 00:02:38] Production.ERROR: pbx CDR StartTime 2026-01-26 21:02:05 - End Time 2026-01-27 00:02:05 [2026-01-27 00:02:38] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-27 00:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16635794', 'tblTempUsageDetail_20' ) start [2026-01-27 00:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16635794', 'tblTempUsageDetail_20' ) end [2026-01-27 00:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16635794', 'tblTempVendorCDR_20' ) start [2026-01-27 00:02:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16635794', 'tblTempVendorCDR_20' ) end [2026-01-27 00:02:38] Production.INFO: ProcessCDR(1,16635794,1,1,2) [2026-01-27 00:02:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16635794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-27 00:05:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16635794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-27 00:05:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16635794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-27 00:09:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16635794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-27 00:09:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16635794', 'tblTempUsageDetail_20' ) start [2026-01-27 00:09:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16635794', 'tblTempUsageDetail_20' ) end [2026-01-27 00:09:57] Production.ERROR: pbx prc_insertCDR start [2026-01-27 00:09:58] Production.ERROR: pbx prc_insertCDR end [2026-01-27 00:10:00] Production.INFO: ==20241== Releasing lock... [2026-01-27 00:10:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-27 00:10:00] Production.INFO: 36.25 MB #Memory Used# [2026-01-27 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-26 22:02:05 [end_date_ymd] => 2026-01-27 01:02:05 [RateCDR] => 1 ) [2026-01-27 01:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-26 22:02:05' and `end` < '2026-01-27 01:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-27 01:02:18] Production.INFO: count ==477 [2026-01-27 01:02:18] Production.ERROR: pbx CDR StartTime 2026-01-26 22:02:05 - End Time 2026-01-27 01:02:05 [2026-01-27 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-27 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16636041', 'tblTempUsageDetail_20' ) start [2026-01-27 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16636041', 'tblTempUsageDetail_20' ) end [2026-01-27 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16636041', 'tblTempVendorCDR_20' ) start [2026-01-27 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16636041', 'tblTempVendorCDR_20' ) end [2026-01-27 01:02:18] Production.INFO: ProcessCDR(1,16636041,1,1,2) [2026-01-27 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16636041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-27 01:05:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16636041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-27 01:05:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16636041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-27 01:09:49] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16636041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-27 01:09:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16636041', 'tblTempUsageDetail_20' ) start [2026-01-27 01:09:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16636041', 'tblTempUsageDetail_20' ) end [2026-01-27 01:09:49] Production.ERROR: pbx prc_insertCDR start [2026-01-27 01:09:49] Production.ERROR: pbx prc_insertCDR end [2026-01-27 01:09:49] Production.INFO: ==24631== Releasing lock... [2026-01-27 01:09:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-27 01:09:49] Production.INFO: 32.5 MB #Memory Used# [2026-01-27 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-26 23:02:05 [end_date_ymd] => 2026-01-27 02:02:05 [RateCDR] => 1 ) [2026-01-27 02:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-26 23:02:05' and `end` < '2026-01-27 02:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-27 02:02:17] Production.INFO: count ==446 [2026-01-27 02:02:18] Production.ERROR: pbx CDR StartTime 2026-01-26 23:02:05 - End Time 2026-01-27 02:02:05 [2026-01-27 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-27 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16636288', 'tblTempUsageDetail_20' ) start [2026-01-27 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16636288', 'tblTempUsageDetail_20' ) end [2026-01-27 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16636288', 'tblTempVendorCDR_20' ) start [2026-01-27 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16636288', 'tblTempVendorCDR_20' ) end [2026-01-27 02:02:18] Production.INFO: ProcessCDR(1,16636288,1,1,2) [2026-01-27 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16636288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-27 02:05:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16636288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-27 02:05:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16636288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-27 02:09:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16636288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-27 02:09:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16636288', 'tblTempUsageDetail_20' ) start [2026-01-27 02:09:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16636288', 'tblTempUsageDetail_20' ) end [2026-01-27 02:09:38] Production.ERROR: pbx prc_insertCDR start [2026-01-27 02:09:38] Production.ERROR: pbx prc_insertCDR end [2026-01-27 02:09:38] Production.INFO: ==29696== Releasing lock... [2026-01-27 02:09:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-27 02:09:38] Production.INFO: 32 MB #Memory Used# [2026-01-27 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-27 00:02:06 [end_date_ymd] => 2026-01-27 03:02:06 [RateCDR] => 1 ) [2026-01-27 03:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-27 00:02:06' and `end` < '2026-01-27 03:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-27 03:02:18] Production.INFO: count ==403 [2026-01-27 03:02:18] Production.ERROR: pbx CDR StartTime 2026-01-27 00:02:06 - End Time 2026-01-27 03:02:06 [2026-01-27 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-27 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16636535', 'tblTempUsageDetail_20' ) start [2026-01-27 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16636535', 'tblTempUsageDetail_20' ) end [2026-01-27 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16636535', 'tblTempVendorCDR_20' ) start [2026-01-27 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16636535', 'tblTempVendorCDR_20' ) end [2026-01-27 03:02:18] Production.INFO: ProcessCDR(1,16636535,1,1,2) [2026-01-27 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16636535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-27 03:05:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16636535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-27 03:05:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16636535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-27 03:09:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16636535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-27 03:09:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16636535', 'tblTempUsageDetail_20' ) start [2026-01-27 03:09:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16636535', 'tblTempUsageDetail_20' ) end [2026-01-27 03:09:44] Production.ERROR: pbx prc_insertCDR start [2026-01-27 03:09:44] Production.ERROR: pbx prc_insertCDR end [2026-01-27 03:09:44] Production.INFO: ==1776== Releasing lock... [2026-01-27 03:09:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-27 03:09:44] Production.INFO: 31.75 MB #Memory Used# [2026-01-27 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-27 01:02:05 [end_date_ymd] => 2026-01-27 04:02:05 [RateCDR] => 1 ) [2026-01-27 04:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-27 01:02:05' and `end` < '2026-01-27 04:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-27 04:02:17] Production.INFO: count ==271 [2026-01-27 04:02:17] Production.ERROR: pbx CDR StartTime 2026-01-27 01:02:05 - End Time 2026-01-27 04:02:05 [2026-01-27 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-27 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16636783', 'tblTempUsageDetail_20' ) start [2026-01-27 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16636783', 'tblTempUsageDetail_20' ) end [2026-01-27 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16636783', 'tblTempVendorCDR_20' ) start [2026-01-27 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16636783', 'tblTempVendorCDR_20' ) end [2026-01-27 04:02:17] Production.INFO: ProcessCDR(1,16636783,1,1,2) [2026-01-27 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16636783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-27 04:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16636783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-27 04:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16636783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-27 04:09:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16636783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-27 04:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16636783', 'tblTempUsageDetail_20' ) start [2026-01-27 04:09:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16636783', 'tblTempUsageDetail_20' ) end [2026-01-27 04:09:33] Production.ERROR: pbx prc_insertCDR start [2026-01-27 04:09:33] Production.ERROR: pbx prc_insertCDR end [2026-01-27 04:09:33] Production.INFO: ==6319== Releasing lock... [2026-01-27 04:09:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-27 04:09:33] Production.INFO: 30.75 MB #Memory Used# [2026-01-27 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-27 02:02:06 [end_date_ymd] => 2026-01-27 05:02:06 [RateCDR] => 1 ) [2026-01-27 05:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-27 02:02:06' and `end` < '2026-01-27 05:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-27 05:02:19] Production.INFO: count ==230 [2026-01-27 05:02:19] Production.ERROR: pbx CDR StartTime 2026-01-27 02:02:06 - End Time 2026-01-27 05:02:06 [2026-01-27 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-27 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16637031', 'tblTempUsageDetail_20' ) start [2026-01-27 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16637031', 'tblTempUsageDetail_20' ) end [2026-01-27 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16637031', 'tblTempVendorCDR_20' ) start [2026-01-27 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16637031', 'tblTempVendorCDR_20' ) end [2026-01-27 05:02:19] Production.INFO: ProcessCDR(1,16637031,1,1,2) [2026-01-27 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16637031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-27 05:05:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16637031,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-27 05:05:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16637031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-27 05:09:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16637031,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-27 05:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16637031', 'tblTempUsageDetail_20' ) start [2026-01-27 05:09:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16637031', 'tblTempUsageDetail_20' ) end [2026-01-27 05:09:30] Production.ERROR: pbx prc_insertCDR start [2026-01-27 05:09:30] Production.ERROR: pbx prc_insertCDR end [2026-01-27 05:09:30] Production.INFO: ==10815== Releasing lock... [2026-01-27 05:09:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-27 05:09:30] Production.INFO: 30.25 MB #Memory Used# [2026-01-27 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-27 03:02:06 [end_date_ymd] => 2026-01-27 06:02:06 [RateCDR] => 1 ) [2026-01-27 06:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-27 03:02:06' and `end` < '2026-01-27 06:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-27 06:02:18] Production.INFO: count ==166 [2026-01-27 06:02:18] Production.ERROR: pbx CDR StartTime 2026-01-27 03:02:06 - End Time 2026-01-27 06:02:06 [2026-01-27 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-27 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16637278', 'tblTempUsageDetail_20' ) start [2026-01-27 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16637278', 'tblTempUsageDetail_20' ) end [2026-01-27 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16637278', 'tblTempVendorCDR_20' ) start [2026-01-27 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16637278', 'tblTempVendorCDR_20' ) end [2026-01-27 06:02:18] Production.INFO: ProcessCDR(1,16637278,1,1,2) [2026-01-27 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16637278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-27 06:05:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16637278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-27 06:05:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16637278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-27 06:09:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16637278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-27 06:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16637278', 'tblTempUsageDetail_20' ) start [2026-01-27 06:09:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16637278', 'tblTempUsageDetail_20' ) end [2026-01-27 06:09:19] Production.ERROR: pbx prc_insertCDR start [2026-01-27 06:09:19] Production.ERROR: pbx prc_insertCDR end [2026-01-27 06:09:19] Production.INFO: ==15539== Releasing lock... [2026-01-27 06:09:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-27 06:09:19] Production.INFO: 29.25 MB #Memory Used# [2026-01-27 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-27 04:02:05 [end_date_ymd] => 2026-01-27 07:02:05 [RateCDR] => 1 ) [2026-01-27 07:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-27 04:02:05' and `end` < '2026-01-27 07:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-27 07:02:17] Production.INFO: count ==182 [2026-01-27 07:02:17] Production.ERROR: pbx CDR StartTime 2026-01-27 04:02:05 - End Time 2026-01-27 07:02:05 [2026-01-27 07:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-27 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16637525', 'tblTempUsageDetail_20' ) start [2026-01-27 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16637525', 'tblTempUsageDetail_20' ) end [2026-01-27 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16637525', 'tblTempVendorCDR_20' ) start [2026-01-27 07:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16637525', 'tblTempVendorCDR_20' ) end [2026-01-27 07:02:17] Production.INFO: ProcessCDR(1,16637525,1,1,2) [2026-01-27 07:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16637525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-27 07:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16637525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-27 07:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16637525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0')