[2026-03-16 00:02:05] Production.INFO: next invoice date [2026-03-16 00:02:05] Production.INFO: 2026-04-16 [2026-03-16 00:02:05] Production.INFO: getdaysdiff [2026-03-16 00:02:05] Production.INFO: +31 [2026-03-16 00:02:05] Production.INFO: call prc_setAccountDiscountPlan (107,16,1,31,31,'RMScheduler',2026-03-16 00:02:05,1,0,,,0) [2026-03-16 00:02:05] Production.INFO: next invoice date [2026-03-16 00:02:05] Production.INFO: 2026-04-16 [2026-03-16 00:02:05] Production.INFO: getdaysdiff [2026-03-16 00:02:05] Production.INFO: +31 [2026-03-16 00:02:05] Production.INFO: call prc_setAccountDiscountPlan (140,16,1,31,31,'RMScheduler',2026-03-16 00:02:05,1,0,,,0) [2026-03-16 00:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-03-15 21:02:06 [end_date_ymd] => 2026-03-16 00:02:06 [RateCDR] => 1 ) [2026-03-16 00: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-03-15 21:02:06' and `end` < '2026-03-16 00: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-03-16 00:02:19] Production.INFO: count ==704 [2026-03-16 00:02:19] Production.ERROR: pbx CDR StartTime 2026-03-15 21:02:06 - End Time 2026-03-16 00:02:06 [2026-03-16 00:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16920084', 'tblTempUsageDetail_20' ) start [2026-03-16 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16920084', 'tblTempUsageDetail_20' ) end [2026-03-16 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16920084', 'tblTempVendorCDR_20' ) start [2026-03-16 00:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16920084', 'tblTempVendorCDR_20' ) end [2026-03-16 00:02:19] Production.INFO: ProcessCDR(1,16920084,1,1,2) [2026-03-16 00:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16920084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 00:06:14] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16920084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 00:06:14] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16920084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 00:10:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16920084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 00:10:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16920084', 'tblTempUsageDetail_20' ) start [2026-03-16 00:10:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16920084', 'tblTempUsageDetail_20' ) end [2026-03-16 00:10:59] Production.ERROR: pbx prc_insertCDR start [2026-03-16 00:10:59] Production.ERROR: pbx prc_insertCDR end [2026-03-16 00:11:00] Production.INFO: ==15822== Releasing lock... [2026-03-16 00:11:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 00:11:00] Production.INFO: 37.75 MB #Memory Used# [2026-03-16 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-15 22:02:05 [end_date_ymd] => 2026-03-16 01:02:05 [RateCDR] => 1 ) [2026-03-16 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-03-15 22:02:05' and `end` < '2026-03-16 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-03-16 01:02:26] Production.INFO: count ==536 [2026-03-16 01:02:26] Production.ERROR: pbx CDR StartTime 2026-03-15 22:02:05 - End Time 2026-03-16 01:02:05 [2026-03-16 01:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 01:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16920331', 'tblTempUsageDetail_20' ) start [2026-03-16 01:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16920331', 'tblTempUsageDetail_20' ) end [2026-03-16 01:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16920331', 'tblTempVendorCDR_20' ) start [2026-03-16 01:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16920331', 'tblTempVendorCDR_20' ) end [2026-03-16 01:02:26] Production.INFO: ProcessCDR(1,16920331,1,1,2) [2026-03-16 01:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16920331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 01:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16920331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 01:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16920331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 01:10:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16920331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 01:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16920331', 'tblTempUsageDetail_20' ) start [2026-03-16 01:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16920331', 'tblTempUsageDetail_20' ) end [2026-03-16 01:10:42] Production.ERROR: pbx prc_insertCDR start [2026-03-16 01:10:43] Production.ERROR: pbx prc_insertCDR end [2026-03-16 01:10:43] Production.INFO: ==20727== Releasing lock... [2026-03-16 01:10:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 01:10:43] Production.INFO: 32.5 MB #Memory Used# [2026-03-16 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-15 23:02:05 [end_date_ymd] => 2026-03-16 02:02:05 [RateCDR] => 1 ) [2026-03-16 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-03-15 23:02:05' and `end` < '2026-03-16 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-03-16 02:02:26] Production.INFO: count ==490 [2026-03-16 02:02:26] Production.ERROR: pbx CDR StartTime 2026-03-15 23:02:05 - End Time 2026-03-16 02:02:05 [2026-03-16 02:02:26] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 02:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16920578', 'tblTempUsageDetail_20' ) start [2026-03-16 02:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16920578', 'tblTempUsageDetail_20' ) end [2026-03-16 02:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16920578', 'tblTempVendorCDR_20' ) start [2026-03-16 02:02:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16920578', 'tblTempVendorCDR_20' ) end [2026-03-16 02:02:26] Production.INFO: ProcessCDR(1,16920578,1,1,2) [2026-03-16 02:02:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16920578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 02:06:10] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16920578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 02:06:10] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16920578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 02:10:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16920578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 02:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16920578', 'tblTempUsageDetail_20' ) start [2026-03-16 02:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16920578', 'tblTempUsageDetail_20' ) end [2026-03-16 02:10:38] Production.ERROR: pbx prc_insertCDR start [2026-03-16 02:10:38] Production.ERROR: pbx prc_insertCDR end [2026-03-16 02:10:38] Production.INFO: ==25897== Releasing lock... [2026-03-16 02:10:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 02:10:38] Production.INFO: 32 MB #Memory Used# [2026-03-16 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 00:02:05 [end_date_ymd] => 2026-03-16 03:02:05 [RateCDR] => 1 ) [2026-03-16 03: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-03-16 00:02:05' and `end` < '2026-03-16 03: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-03-16 03:02:17] Production.INFO: count ==603 [2026-03-16 03:02:17] Production.ERROR: pbx CDR StartTime 2026-03-16 00:02:05 - End Time 2026-03-16 03:02:05 [2026-03-16 03:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16920825', 'tblTempUsageDetail_20' ) start [2026-03-16 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16920825', 'tblTempUsageDetail_20' ) end [2026-03-16 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16920825', 'tblTempVendorCDR_20' ) start [2026-03-16 03:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16920825', 'tblTempVendorCDR_20' ) end [2026-03-16 03:02:17] Production.INFO: ProcessCDR(1,16920825,1,1,2) [2026-03-16 03:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16920825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 03:05:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16920825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 03:05:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16920825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16920825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16920825', 'tblTempUsageDetail_20' ) start [2026-03-16 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16920825', 'tblTempUsageDetail_20' ) end [2026-03-16 03:10:22] Production.ERROR: pbx prc_insertCDR start [2026-03-16 03:10:22] Production.ERROR: pbx prc_insertCDR end [2026-03-16 03:10:22] Production.INFO: ==30600== Releasing lock... [2026-03-16 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 03:10:22] Production.INFO: 33.5 MB #Memory Used# [2026-03-16 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 01:02:05 [end_date_ymd] => 2026-03-16 04:02:05 [RateCDR] => 1 ) [2026-03-16 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-03-16 01:02:05' and `end` < '2026-03-16 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-03-16 04:02:17] Production.INFO: count ==460 [2026-03-16 04:02:17] Production.ERROR: pbx CDR StartTime 2026-03-16 01:02:05 - End Time 2026-03-16 04:02:05 [2026-03-16 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16921073', 'tblTempUsageDetail_20' ) start [2026-03-16 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16921073', 'tblTempUsageDetail_20' ) end [2026-03-16 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16921073', 'tblTempVendorCDR_20' ) start [2026-03-16 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16921073', 'tblTempVendorCDR_20' ) end [2026-03-16 04:02:17] Production.INFO: ProcessCDR(1,16921073,1,1,2) [2026-03-16 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16921073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 04:05:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16921073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 04:05:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16921073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 04:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16921073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 04:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16921073', 'tblTempUsageDetail_20' ) start [2026-03-16 04:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16921073', 'tblTempUsageDetail_20' ) end [2026-03-16 04:10:29] Production.ERROR: pbx prc_insertCDR start [2026-03-16 04:10:29] Production.ERROR: pbx prc_insertCDR end [2026-03-16 04:10:29] Production.INFO: ==2892== Releasing lock... [2026-03-16 04:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 04:10:29] Production.INFO: 32.25 MB #Memory Used# [2026-03-16 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 02:02:05 [end_date_ymd] => 2026-03-16 05:02:05 [RateCDR] => 1 ) [2026-03-16 05:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-03-16 02:02:05' and `end` < '2026-03-16 05:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-03-16 05:02:17] Production.INFO: count ==384 [2026-03-16 05:02:17] Production.ERROR: pbx CDR StartTime 2026-03-16 02:02:05 - End Time 2026-03-16 05:02:05 [2026-03-16 05:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16921321', 'tblTempUsageDetail_20' ) start [2026-03-16 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16921321', 'tblTempUsageDetail_20' ) end [2026-03-16 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16921321', 'tblTempVendorCDR_20' ) start [2026-03-16 05:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16921321', 'tblTempVendorCDR_20' ) end [2026-03-16 05:02:17] Production.INFO: ProcessCDR(1,16921321,1,1,2) [2026-03-16 05:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16921321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 05:05:07] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16921321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 05:05:07] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16921321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 05:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16921321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 05:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16921321', 'tblTempUsageDetail_20' ) start [2026-03-16 05:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16921321', 'tblTempUsageDetail_20' ) end [2026-03-16 05:09:25] Production.ERROR: pbx prc_insertCDR start [2026-03-16 05:09:25] Production.ERROR: pbx prc_insertCDR end [2026-03-16 05:09:25] Production.INFO: ==7797== Releasing lock... [2026-03-16 05:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 05:09:25] Production.INFO: 31.25 MB #Memory Used# [2026-03-16 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 03:02:05 [end_date_ymd] => 2026-03-16 06:02:05 [RateCDR] => 1 ) [2026-03-16 06:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-03-16 03:02:05' and `end` < '2026-03-16 06:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-03-16 06:02:17] Production.INFO: count ==165 [2026-03-16 06:02:17] Production.ERROR: pbx CDR StartTime 2026-03-16 03:02:05 - End Time 2026-03-16 06:02:05 [2026-03-16 06:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16921568', 'tblTempUsageDetail_20' ) start [2026-03-16 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16921568', 'tblTempUsageDetail_20' ) end [2026-03-16 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16921568', 'tblTempVendorCDR_20' ) start [2026-03-16 06:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16921568', 'tblTempVendorCDR_20' ) end [2026-03-16 06:02:17] Production.INFO: ProcessCDR(1,16921568,1,1,2) [2026-03-16 06:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16921568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 06:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16921568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 06:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16921568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 06:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16921568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 06:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16921568', 'tblTempUsageDetail_20' ) start [2026-03-16 06:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16921568', 'tblTempUsageDetail_20' ) end [2026-03-16 06:11:29] Production.ERROR: pbx prc_insertCDR start [2026-03-16 06:11:29] Production.ERROR: pbx prc_insertCDR end [2026-03-16 06:11:29] Production.INFO: ==12276== Releasing lock... [2026-03-16 06:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 06:11:29] Production.INFO: 29.25 MB #Memory Used# [2026-03-16 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 04:02:05 [end_date_ymd] => 2026-03-16 07:02:05 [RateCDR] => 1 ) [2026-03-16 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-03-16 04:02:05' and `end` < '2026-03-16 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-03-16 07:02:16] Production.INFO: count ==147 [2026-03-16 07:02:16] Production.ERROR: pbx CDR StartTime 2026-03-16 04:02:05 - End Time 2026-03-16 07:02:05 [2026-03-16 07:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 07:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16921815', 'tblTempUsageDetail_20' ) start [2026-03-16 07:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16921815', 'tblTempUsageDetail_20' ) end [2026-03-16 07:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16921815', 'tblTempVendorCDR_20' ) start [2026-03-16 07:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16921815', 'tblTempVendorCDR_20' ) end [2026-03-16 07:02:16] Production.INFO: ProcessCDR(1,16921815,1,1,2) [2026-03-16 07:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16921815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 07:06:00] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16921815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 07:06:00] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16921815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 07:10:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16921815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 07:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16921815', 'tblTempUsageDetail_20' ) start [2026-03-16 07:10:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16921815', 'tblTempUsageDetail_20' ) end [2026-03-16 07:10:40] Production.ERROR: pbx prc_insertCDR start [2026-03-16 07:10:40] Production.ERROR: pbx prc_insertCDR end [2026-03-16 07:10:40] Production.INFO: ==17353== Releasing lock... [2026-03-16 07:10:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 07:10:40] Production.INFO: 29.5 MB #Memory Used# [2026-03-16 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 05:02:05 [end_date_ymd] => 2026-03-16 08:02:05 [RateCDR] => 1 ) [2026-03-16 08: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-03-16 05:02:05' and `end` < '2026-03-16 08: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-03-16 08:02:17] Production.INFO: count ==244 [2026-03-16 08:02:17] Production.ERROR: pbx CDR StartTime 2026-03-16 05:02:05 - End Time 2026-03-16 08:02:05 [2026-03-16 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16922062', 'tblTempUsageDetail_20' ) start [2026-03-16 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16922062', 'tblTempUsageDetail_20' ) end [2026-03-16 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16922062', 'tblTempVendorCDR_20' ) start [2026-03-16 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16922062', 'tblTempVendorCDR_20' ) end [2026-03-16 08:02:17] Production.INFO: ProcessCDR(1,16922062,1,1,2) [2026-03-16 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16922062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 08:05:59] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16922062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 08:05:59] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16922062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 08:10:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16922062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 08:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16922062', 'tblTempUsageDetail_20' ) start [2026-03-16 08:10:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16922062', 'tblTempUsageDetail_20' ) end [2026-03-16 08:10:32] Production.ERROR: pbx prc_insertCDR start [2026-03-16 08:10:32] Production.ERROR: pbx prc_insertCDR end [2026-03-16 08:10:32] Production.INFO: ==21991== Releasing lock... [2026-03-16 08:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 08:10:32] Production.INFO: 30.5 MB #Memory Used# [2026-03-16 09:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 06:02:06 [end_date_ymd] => 2026-03-16 09:02:06 [RateCDR] => 1 ) [2026-03-16 09: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-03-16 06:02:06' and `end` < '2026-03-16 09: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-03-16 09:02:17] Production.INFO: count ==880 [2026-03-16 09:02:18] Production.ERROR: pbx CDR StartTime 2026-03-16 06:02:06 - End Time 2026-03-16 09:02:06 [2026-03-16 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16922309', 'tblTempUsageDetail_20' ) start [2026-03-16 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16922309', 'tblTempUsageDetail_20' ) end [2026-03-16 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16922309', 'tblTempVendorCDR_20' ) start [2026-03-16 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16922309', 'tblTempVendorCDR_20' ) end [2026-03-16 09:02:18] Production.INFO: ProcessCDR(1,16922309,1,1,2) [2026-03-16 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16922309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 09:06:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16922309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 09:06:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16922309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 09:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16922309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 09:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16922309', 'tblTempUsageDetail_20' ) start [2026-03-16 09:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16922309', 'tblTempUsageDetail_20' ) end [2026-03-16 09:11:27] Production.ERROR: pbx prc_insertCDR start [2026-03-16 09:11:27] Production.ERROR: pbx prc_insertCDR end [2026-03-16 09:11:28] Production.INFO: ==26746== Releasing lock... [2026-03-16 09:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 09:11:28] Production.INFO: 35 MB #Memory Used# [2026-03-16 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 07:02:05 [end_date_ymd] => 2026-03-16 10:02:05 [RateCDR] => 1 ) [2026-03-16 10: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-03-16 07:02:05' and `end` < '2026-03-16 10: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-03-16 10:02:19] Production.INFO: count ==2637 [2026-03-16 10:02:20] Production.ERROR: pbx CDR StartTime 2026-03-16 07:02:05 - End Time 2026-03-16 10:02:05 [2026-03-16 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16922556', 'tblTempUsageDetail_20' ) start [2026-03-16 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16922556', 'tblTempUsageDetail_20' ) end [2026-03-16 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16922556', 'tblTempVendorCDR_20' ) start [2026-03-16 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16922556', 'tblTempVendorCDR_20' ) end [2026-03-16 10:02:20] Production.INFO: ProcessCDR(1,16922556,1,1,2) [2026-03-16 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16922556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 10:06:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16922556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 10:06:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16922556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 10:10:55] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16922556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 10:10:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16922556', 'tblTempUsageDetail_20' ) start [2026-03-16 10:10:55] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16922556', 'tblTempUsageDetail_20' ) end [2026-03-16 10:10:55] Production.ERROR: pbx prc_insertCDR start [2026-03-16 10:10:57] Production.ERROR: pbx prc_insertCDR end [2026-03-16 10:10:57] Production.INFO: ==31341== Releasing lock... [2026-03-16 10:10:57] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 10:10:57] Production.INFO: 48.5 MB #Memory Used# [2026-03-16 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 08:02:05 [end_date_ymd] => 2026-03-16 11:02:05 [RateCDR] => 1 ) [2026-03-16 11:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-03-16 08:02:05' and `end` < '2026-03-16 11:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-03-16 11:02:19] Production.INFO: count ==4812 [2026-03-16 11:02:22] Production.ERROR: pbx CDR StartTime 2026-03-16 08:02:05 - End Time 2026-03-16 11:02:05 [2026-03-16 11:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16922803', 'tblTempUsageDetail_20' ) start [2026-03-16 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16922803', 'tblTempUsageDetail_20' ) end [2026-03-16 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16922803', 'tblTempVendorCDR_20' ) start [2026-03-16 11:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16922803', 'tblTempVendorCDR_20' ) end [2026-03-16 11:02:22] Production.INFO: ProcessCDR(1,16922803,1,1,2) [2026-03-16 11:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16922803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 11:06:52] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16922803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 11:06:52] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16922803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 11:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16922803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16922803', 'tblTempUsageDetail_20' ) start [2026-03-16 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16922803', 'tblTempUsageDetail_20' ) end [2026-03-16 11:11:23] Production.ERROR: pbx prc_insertCDR start [2026-03-16 11:11:25] Production.ERROR: pbx prc_insertCDR end [2026-03-16 11:11:25] Production.INFO: ==3470== Releasing lock... [2026-03-16 11:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 11:11:25] Production.INFO: 64.25 MB #Memory Used# [2026-03-16 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 09:02:06 [end_date_ymd] => 2026-03-16 12:02:06 [RateCDR] => 1 ) [2026-03-16 12: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-03-16 09:02:06' and `end` < '2026-03-16 12: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-03-16 12:02:21] Production.INFO: count ==6350 [2026-03-16 12:02:24] Production.ERROR: pbx CDR StartTime 2026-03-16 09:02:06 - End Time 2026-03-16 12:02:06 [2026-03-16 12:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 12:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16923050', 'tblTempUsageDetail_20' ) start [2026-03-16 12:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16923050', 'tblTempUsageDetail_20' ) end [2026-03-16 12:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16923050', 'tblTempVendorCDR_20' ) start [2026-03-16 12:02:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16923050', 'tblTempVendorCDR_20' ) end [2026-03-16 12:02:25] Production.INFO: ProcessCDR(1,16923050,1,1,2) [2026-03-16 12:02:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16923050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 12:06:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16923050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 12:06:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16923050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 12:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16923050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16923050', 'tblTempUsageDetail_20' ) start [2026-03-16 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16923050', 'tblTempUsageDetail_20' ) end [2026-03-16 12:11:26] Production.ERROR: pbx prc_insertCDR start [2026-03-16 12:11:30] Production.ERROR: pbx prc_insertCDR end [2026-03-16 12:11:30] Production.INFO: ==8081== Releasing lock... [2026-03-16 12:11:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 12:11:30] Production.INFO: 75.75 MB #Memory Used# [2026-03-16 13:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 10:02:05 [end_date_ymd] => 2026-03-16 13:02:05 [RateCDR] => 1 ) [2026-03-16 13:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-03-16 10:02:05' and `end` < '2026-03-16 13:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-03-16 13:02:18] Production.INFO: count ==6473 [2026-03-16 13:02:21] Production.ERROR: pbx CDR StartTime 2026-03-16 10:02:05 - End Time 2026-03-16 13:02:05 [2026-03-16 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16923297', 'tblTempUsageDetail_20' ) start [2026-03-16 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16923297', 'tblTempUsageDetail_20' ) end [2026-03-16 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16923297', 'tblTempVendorCDR_20' ) start [2026-03-16 13:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16923297', 'tblTempVendorCDR_20' ) end [2026-03-16 13:02:22] Production.INFO: ProcessCDR(1,16923297,1,1,2) [2026-03-16 13:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16923297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 13:06:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16923297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 13:06:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16923297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 13:11:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16923297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 13:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16923297', 'tblTempUsageDetail_20' ) start [2026-03-16 13:11:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16923297', 'tblTempUsageDetail_20' ) end [2026-03-16 13:11:30] Production.ERROR: pbx prc_insertCDR start [2026-03-16 13:11:33] Production.ERROR: pbx prc_insertCDR end [2026-03-16 13:11:33] Production.INFO: ==12590== Releasing lock... [2026-03-16 13:11:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 13:11:33] Production.INFO: 76.75 MB #Memory Used# [2026-03-16 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 11:02:05 [end_date_ymd] => 2026-03-16 14:02:05 [RateCDR] => 1 ) [2026-03-16 14: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-03-16 11:02:05' and `end` < '2026-03-16 14: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-03-16 14:02:20] Production.INFO: count ==6106 [2026-03-16 14:02:24] Production.ERROR: pbx CDR StartTime 2026-03-16 11:02:05 - End Time 2026-03-16 14:02:05 [2026-03-16 14:02:24] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16923544', 'tblTempUsageDetail_20' ) start [2026-03-16 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16923544', 'tblTempUsageDetail_20' ) end [2026-03-16 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16923544', 'tblTempVendorCDR_20' ) start [2026-03-16 14:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16923544', 'tblTempVendorCDR_20' ) end [2026-03-16 14:02:24] Production.INFO: ProcessCDR(1,16923544,1,1,2) [2026-03-16 14:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16923544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 14:06:54] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16923544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 14:06:54] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16923544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 14:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16923544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16923544', 'tblTempUsageDetail_20' ) start [2026-03-16 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16923544', 'tblTempUsageDetail_20' ) end [2026-03-16 14:11:25] Production.ERROR: pbx prc_insertCDR start [2026-03-16 14:11:27] Production.ERROR: pbx prc_insertCDR end [2026-03-16 14:11:27] Production.INFO: ==17034== Releasing lock... [2026-03-16 14:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 14:11:27] Production.INFO: 74 MB #Memory Used# [2026-03-16 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 12:02:05 [end_date_ymd] => 2026-03-16 15:02:05 [RateCDR] => 1 ) [2026-03-16 15: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-03-16 12:02:05' and `end` < '2026-03-16 15: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-03-16 15:02:18] Production.INFO: count ==5910 [2026-03-16 15:02:21] Production.ERROR: pbx CDR StartTime 2026-03-16 12:02:05 - End Time 2026-03-16 15:02:05 [2026-03-16 15:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16923791', 'tblTempUsageDetail_20' ) start [2026-03-16 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16923791', 'tblTempUsageDetail_20' ) end [2026-03-16 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16923791', 'tblTempVendorCDR_20' ) start [2026-03-16 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16923791', 'tblTempVendorCDR_20' ) end [2026-03-16 15:02:22] Production.INFO: ProcessCDR(1,16923791,1,1,2) [2026-03-16 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16923791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 15:05:57] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16923791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 15:05:57] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16923791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 15:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16923791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 15:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16923791', 'tblTempUsageDetail_20' ) start [2026-03-16 15:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16923791', 'tblTempUsageDetail_20' ) end [2026-03-16 15:10:30] Production.ERROR: pbx prc_insertCDR start [2026-03-16 15:10:33] Production.ERROR: pbx prc_insertCDR end [2026-03-16 15:10:33] Production.INFO: ==21807== Releasing lock... [2026-03-16 15:10:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 15:10:33] Production.INFO: 72.5 MB #Memory Used# [2026-03-16 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 13:02:05 [end_date_ymd] => 2026-03-16 16:02:05 [RateCDR] => 1 ) [2026-03-16 16: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-03-16 13:02:05' and `end` < '2026-03-16 16: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-03-16 16:02:20] Production.INFO: count ==5926 [2026-03-16 16:02:23] Production.ERROR: pbx CDR StartTime 2026-03-16 13:02:05 - End Time 2026-03-16 16:02:05 [2026-03-16 16:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 16:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16924038', 'tblTempUsageDetail_20' ) start [2026-03-16 16:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16924038', 'tblTempUsageDetail_20' ) end [2026-03-16 16:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16924038', 'tblTempVendorCDR_20' ) start [2026-03-16 16:02:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16924038', 'tblTempVendorCDR_20' ) end [2026-03-16 16:02:24] Production.INFO: ProcessCDR(1,16924038,1,1,2) [2026-03-16 16:02:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16924038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 16:06:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16924038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 16:06:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16924038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 16:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16924038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 16:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16924038', 'tblTempUsageDetail_20' ) start [2026-03-16 16:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16924038', 'tblTempUsageDetail_20' ) end [2026-03-16 16:11:21] Production.ERROR: pbx prc_insertCDR start [2026-03-16 16:11:25] Production.ERROR: pbx prc_insertCDR end [2026-03-16 16:11:25] Production.INFO: ==26286== Releasing lock... [2026-03-16 16:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 16:11:25] Production.INFO: 72.75 MB #Memory Used# [2026-03-16 17:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 14:02:06 [end_date_ymd] => 2026-03-16 17:02:06 [RateCDR] => 1 ) [2026-03-16 17: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-03-16 14:02:06' and `end` < '2026-03-16 17: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-03-16 17:02:19] Production.INFO: count ==5724 [2026-03-16 17:02:22] Production.ERROR: pbx CDR StartTime 2026-03-16 14:02:06 - End Time 2026-03-16 17:02:06 [2026-03-16 17:02:22] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16924285', 'tblTempUsageDetail_20' ) start [2026-03-16 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16924285', 'tblTempUsageDetail_20' ) end [2026-03-16 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16924285', 'tblTempVendorCDR_20' ) start [2026-03-16 17:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16924285', 'tblTempVendorCDR_20' ) end [2026-03-16 17:02:23] Production.INFO: ProcessCDR(1,16924285,1,1,2) [2026-03-16 17:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16924285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 17:06:05] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16924285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 17:06:05] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16924285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 17:10:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16924285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 17:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16924285', 'tblTempUsageDetail_20' ) start [2026-03-16 17:10:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16924285', 'tblTempUsageDetail_20' ) end [2026-03-16 17:10:30] Production.ERROR: pbx prc_insertCDR start [2026-03-16 17:10:32] Production.ERROR: pbx prc_insertCDR end [2026-03-16 17:10:32] Production.INFO: ==30799== Releasing lock... [2026-03-16 17:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 17:10:32] Production.INFO: 71 MB #Memory Used# [2026-03-16 18:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 15:02:06 [end_date_ymd] => 2026-03-16 18:02:06 [RateCDR] => 1 ) [2026-03-16 18: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-03-16 15:02:06' and `end` < '2026-03-16 18: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-03-16 18:02:18] Production.INFO: count ==4833 [2026-03-16 18:02:21] Production.ERROR: pbx CDR StartTime 2026-03-16 15:02:06 - End Time 2026-03-16 18:02:06 [2026-03-16 18:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16924532', 'tblTempUsageDetail_20' ) start [2026-03-16 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16924532', 'tblTempUsageDetail_20' ) end [2026-03-16 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16924532', 'tblTempVendorCDR_20' ) start [2026-03-16 18:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16924532', 'tblTempVendorCDR_20' ) end [2026-03-16 18:02:21] Production.INFO: ProcessCDR(1,16924532,1,1,2) [2026-03-16 18:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16924532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 18:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16924532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 18:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16924532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 18:10:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16924532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 18:10:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16924532', 'tblTempUsageDetail_20' ) start [2026-03-16 18:10:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16924532', 'tblTempUsageDetail_20' ) end [2026-03-16 18:10:53] Production.ERROR: pbx prc_insertCDR start [2026-03-16 18:10:55] Production.ERROR: pbx prc_insertCDR end [2026-03-16 18:10:55] Production.INFO: ==3191== Releasing lock... [2026-03-16 18:10:55] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 18:10:55] Production.INFO: 64.75 MB #Memory Used# [2026-03-16 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 16:02:05 [end_date_ymd] => 2026-03-16 19:02:05 [RateCDR] => 1 ) [2026-03-16 19: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-03-16 16:02:05' and `end` < '2026-03-16 19: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-03-16 19:02:17] Production.INFO: count ==3690 [2026-03-16 19:02:19] Production.ERROR: pbx CDR StartTime 2026-03-16 16:02:05 - End Time 2026-03-16 19:02:05 [2026-03-16 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16924778', 'tblTempUsageDetail_20' ) start [2026-03-16 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16924778', 'tblTempUsageDetail_20' ) end [2026-03-16 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16924778', 'tblTempVendorCDR_20' ) start [2026-03-16 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16924778', 'tblTempVendorCDR_20' ) end [2026-03-16 19:02:19] Production.INFO: ProcessCDR(1,16924778,1,1,2) [2026-03-16 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16924778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 19:05:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16924778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 19:05:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16924778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 19:10:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16924778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 19:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16924778', 'tblTempUsageDetail_20' ) start [2026-03-16 19:10:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16924778', 'tblTempUsageDetail_20' ) end [2026-03-16 19:10:31] Production.ERROR: pbx prc_insertCDR start [2026-03-16 19:10:32] Production.ERROR: pbx prc_insertCDR end [2026-03-16 19:10:32] Production.INFO: ==8102== Releasing lock... [2026-03-16 19:10:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 19:10:32] Production.INFO: 56.75 MB #Memory Used# [2026-03-16 20:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 17:02:06 [end_date_ymd] => 2026-03-16 20:02:06 [RateCDR] => 1 ) [2026-03-16 20: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-03-16 17:02:06' and `end` < '2026-03-16 20: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-03-16 20:02:17] Production.INFO: count ==2466 [2026-03-16 20:02:18] Production.ERROR: pbx CDR StartTime 2026-03-16 17:02:06 - End Time 2026-03-16 20:02:06 [2026-03-16 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16925025', 'tblTempUsageDetail_20' ) start [2026-03-16 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16925025', 'tblTempUsageDetail_20' ) end [2026-03-16 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16925025', 'tblTempVendorCDR_20' ) start [2026-03-16 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16925025', 'tblTempVendorCDR_20' ) end [2026-03-16 20:02:19] Production.INFO: ProcessCDR(1,16925025,1,1,2) [2026-03-16 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16925025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 20:06:11] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16925025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 20:06:11] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16925025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 20:10:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16925025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 20:10:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16925025', 'tblTempUsageDetail_20' ) start [2026-03-16 20:10:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16925025', 'tblTempUsageDetail_20' ) end [2026-03-16 20:10:43] Production.ERROR: pbx prc_insertCDR start [2026-03-16 20:10:43] Production.ERROR: pbx prc_insertCDR end [2026-03-16 20:10:43] Production.INFO: ==12464== Releasing lock... [2026-03-16 20:10:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 20:10:43] Production.INFO: 46.75 MB #Memory Used# [2026-03-16 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 18:02:05 [end_date_ymd] => 2026-03-16 21:02:05 [RateCDR] => 1 ) [2026-03-16 21:02:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-03-16 18:02:05' and `end` < '2026-03-16 21:02:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-03-16 21:02:17] Production.INFO: count ==1731 [2026-03-16 21:02:17] Production.ERROR: pbx CDR StartTime 2026-03-16 18:02:05 - End Time 2026-03-16 21:02:05 [2026-03-16 21:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16925272', 'tblTempUsageDetail_20' ) start [2026-03-16 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16925272', 'tblTempUsageDetail_20' ) end [2026-03-16 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16925272', 'tblTempVendorCDR_20' ) start [2026-03-16 21:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16925272', 'tblTempVendorCDR_20' ) end [2026-03-16 21:02:17] Production.INFO: ProcessCDR(1,16925272,1,1,2) [2026-03-16 21:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16925272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 21:05:53] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16925272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 21:05:53] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16925272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 21:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16925272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16925272', 'tblTempUsageDetail_20' ) start [2026-03-16 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16925272', 'tblTempUsageDetail_20' ) end [2026-03-16 21:10:21] Production.ERROR: pbx prc_insertCDR start [2026-03-16 21:10:22] Production.ERROR: pbx prc_insertCDR end [2026-03-16 21:10:22] Production.INFO: ==17222== Releasing lock... [2026-03-16 21:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 21:10:22] Production.INFO: 41 MB #Memory Used# [2026-03-16 22:02:06] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 19:02:06 [end_date_ymd] => 2026-03-16 22:02:06 [RateCDR] => 1 ) [2026-03-16 22:02:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-03-16 19:02:06' and `end` < '2026-03-16 22:02:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-03-16 22:02:17] Production.INFO: count ==984 [2026-03-16 22:02:18] Production.ERROR: pbx CDR StartTime 2026-03-16 19:02:06 - End Time 2026-03-16 22:02:06 [2026-03-16 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16925519', 'tblTempUsageDetail_20' ) start [2026-03-16 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16925519', 'tblTempUsageDetail_20' ) end [2026-03-16 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16925519', 'tblTempVendorCDR_20' ) start [2026-03-16 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16925519', 'tblTempVendorCDR_20' ) end [2026-03-16 22:02:18] Production.INFO: ProcessCDR(1,16925519,1,1,2) [2026-03-16 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16925519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 22:05:58] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16925519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 22:05:58] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16925519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 22:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16925519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 22:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16925519', 'tblTempUsageDetail_20' ) start [2026-03-16 22:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16925519', 'tblTempUsageDetail_20' ) end [2026-03-16 22:10:26] Production.ERROR: pbx prc_insertCDR start [2026-03-16 22:10:26] Production.ERROR: pbx prc_insertCDR end [2026-03-16 22:10:26] Production.INFO: ==21738== Releasing lock... [2026-03-16 22:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 22:10:26] Production.INFO: 36.25 MB #Memory Used# [2026-03-16 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2026-03-16 20:02:05 [end_date_ymd] => 2026-03-16 23:02:05 [RateCDR] => 1 ) [2026-03-16 23: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-03-16 20:02:05' and `end` < '2026-03-16 23: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-03-16 23:02:16] Production.INFO: count ==834 [2026-03-16 23:02:16] Production.ERROR: pbx CDR StartTime 2026-03-16 20:02:05 - End Time 2026-03-16 23:02:05 [2026-03-16 23:02:16] Production.ERROR: ========================== pbx transaction end ============================= [2026-03-16 23:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16925766', 'tblTempUsageDetail_20' ) start [2026-03-16 23:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16925766', 'tblTempUsageDetail_20' ) end [2026-03-16 23:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16925766', 'tblTempVendorCDR_20' ) start [2026-03-16 23:02:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16925766', 'tblTempVendorCDR_20' ) end [2026-03-16 23:02:16] Production.INFO: ProcessCDR(1,16925766,1,1,2) [2026-03-16 23:02:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16925766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 23:05:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16925766,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-03-16 23:05:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16925766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 23:06:12] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16925766,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-03-16 23:06:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16925766', 'tblTempUsageDetail_20' ) start [2026-03-16 23:06:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16925766', 'tblTempUsageDetail_20' ) end [2026-03-16 23:06:12] Production.ERROR: pbx prc_insertCDR start [2026-03-16 23:06:12] Production.ERROR: pbx prc_insertCDR end [2026-03-16 23:06:12] Production.INFO: ==26395== Releasing lock... [2026-03-16 23:06:12] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-03-16 23:06:12] Production.INFO: 34.25 MB #Memory Used#