[2026-01-08 00:00:04] Production.INFO: next invoice date [2026-01-08 00:00:04] Production.INFO: 2026-02-08 [2026-01-08 00:00:04] Production.INFO: getdaysdiff [2026-01-08 00:00:04] Production.INFO: +31 [2026-01-08 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (144,20,2,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:05] Production.INFO: next invoice date [2026-01-08 00:00:05] Production.INFO: 2026-02-08 [2026-01-08 00:00:05] Production.INFO: getdaysdiff [2026-01-08 00:00:05] Production.INFO: +31 [2026-01-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (211,11,1,31,31,'RMScheduler',2026-01-08 00:00:04,0,0,,,0) [2026-01-08 00:00:05] Production.INFO: next invoice date [2026-01-08 00:00:05] Production.INFO: 2026-02-08 [2026-01-08 00:00:05] Production.INFO: getdaysdiff [2026-01-08 00:00:05] Production.INFO: +31 [2026-01-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (211,13,2,31,31,'RMScheduler',2026-01-08 00:00:04,0,0,,,0) [2026-01-08 00:00:05] Production.INFO: next invoice date [2026-01-08 00:00:05] Production.INFO: 2026-02-08 [2026-01-08 00:00:05] Production.INFO: getdaysdiff [2026-01-08 00:00:05] Production.INFO: +31 [2026-01-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (219,11,1,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:05] Production.INFO: next invoice date [2026-01-08 00:00:05] Production.INFO: 2026-02-08 [2026-01-08 00:00:05] Production.INFO: getdaysdiff [2026-01-08 00:00:05] Production.INFO: +31 [2026-01-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (219,13,2,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:05] Production.INFO: next invoice date [2026-01-08 00:00:05] Production.INFO: 2026-02-08 [2026-01-08 00:00:05] Production.INFO: getdaysdiff [2026-01-08 00:00:05] Production.INFO: +31 [2026-01-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (220,11,1,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:05] Production.INFO: next invoice date [2026-01-08 00:00:05] Production.INFO: 2026-02-08 [2026-01-08 00:00:05] Production.INFO: getdaysdiff [2026-01-08 00:00:05] Production.INFO: +31 [2026-01-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (220,13,2,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:05] Production.INFO: next invoice date [2026-01-08 00:00:05] Production.INFO: 2026-02-08 [2026-01-08 00:00:05] Production.INFO: getdaysdiff [2026-01-08 00:00:05] Production.INFO: +31 [2026-01-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (221,11,1,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:05] Production.INFO: next invoice date [2026-01-08 00:00:05] Production.INFO: 2026-02-08 [2026-01-08 00:00:05] Production.INFO: getdaysdiff [2026-01-08 00:00:05] Production.INFO: +31 [2026-01-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (221,13,2,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:05] Production.INFO: next invoice date [2026-01-08 00:00:05] Production.INFO: 2026-02-08 [2026-01-08 00:00:05] Production.INFO: getdaysdiff [2026-01-08 00:00:05] Production.INFO: +31 [2026-01-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (222,11,1,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:06] Production.INFO: next invoice date [2026-01-08 00:00:06] Production.INFO: 2026-02-08 [2026-01-08 00:00:06] Production.INFO: getdaysdiff [2026-01-08 00:00:06] Production.INFO: +31 [2026-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (222,13,2,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:06] Production.INFO: next invoice date [2026-01-08 00:00:06] Production.INFO: 2026-02-08 [2026-01-08 00:00:06] Production.INFO: getdaysdiff [2026-01-08 00:00:06] Production.INFO: +31 [2026-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (223,11,1,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:06] Production.INFO: next invoice date [2026-01-08 00:00:06] Production.INFO: 2026-02-08 [2026-01-08 00:00:06] Production.INFO: getdaysdiff [2026-01-08 00:00:06] Production.INFO: +31 [2026-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (223,13,2,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:06] Production.INFO: next invoice date [2026-01-08 00:00:06] Production.INFO: 2026-02-08 [2026-01-08 00:00:06] Production.INFO: getdaysdiff [2026-01-08 00:00:06] Production.INFO: +31 [2026-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (224,11,1,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:06] Production.INFO: next invoice date [2026-01-08 00:00:06] Production.INFO: 2026-02-08 [2026-01-08 00:00:06] Production.INFO: getdaysdiff [2026-01-08 00:00:06] Production.INFO: +31 [2026-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (224,13,2,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:06] Production.INFO: next invoice date [2026-01-08 00:00:06] Production.INFO: 2026-02-08 [2026-01-08 00:00:06] Production.INFO: getdaysdiff [2026-01-08 00:00:06] Production.INFO: +31 [2026-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (227,11,1,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:06] Production.INFO: next invoice date [2026-01-08 00:00:06] Production.INFO: 2026-02-08 [2026-01-08 00:00:06] Production.INFO: getdaysdiff [2026-01-08 00:00:06] Production.INFO: +31 [2026-01-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:07] Production.INFO: next invoice date [2026-01-08 00:00:07] Production.INFO: 2026-02-08 [2026-01-08 00:00:07] Production.INFO: getdaysdiff [2026-01-08 00:00:07] Production.INFO: +31 [2026-01-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (233,16,1,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:07] Production.INFO: next invoice date [2026-01-08 00:00:07] Production.INFO: 2026-02-08 [2026-01-08 00:00:07] Production.INFO: getdaysdiff [2026-01-08 00:00:07] Production.INFO: +31 [2026-01-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (233,13,2,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:07] Production.INFO: next invoice date [2026-01-08 00:00:07] Production.INFO: 2026-02-08 [2026-01-08 00:00:07] Production.INFO: getdaysdiff [2026-01-08 00:00:07] Production.INFO: +31 [2026-01-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (238,16,1,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:07] Production.INFO: next invoice date [2026-01-08 00:00:07] Production.INFO: 2026-02-08 [2026-01-08 00:00:07] Production.INFO: getdaysdiff [2026-01-08 00:00:07] Production.INFO: +31 [2026-01-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (238,13,2,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:07] Production.INFO: next invoice date [2026-01-08 00:00:07] Production.INFO: 2026-02-08 [2026-01-08 00:00:07] Production.INFO: getdaysdiff [2026-01-08 00:00:07] Production.INFO: +31 [2026-01-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (227,16,1,31,31,'RMScheduler',2026-01-08 00:00:04,0,0,,,0) [2026-01-08 00:00:07] Production.INFO: next invoice date [2026-01-08 00:00:07] Production.INFO: 2026-02-08 [2026-01-08 00:00:07] Production.INFO: getdaysdiff [2026-01-08 00:00:07] Production.INFO: +31 [2026-01-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,31,31,'RMScheduler',2026-01-08 00:00:04,0,0,,,0) [2026-01-08 00:00:07] Production.INFO: next invoice date [2026-01-08 00:00:07] Production.INFO: 2026-02-08 [2026-01-08 00:00:07] Production.INFO: getdaysdiff [2026-01-08 00:00:07] Production.INFO: +31 [2026-01-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (242,16,1,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:07] Production.INFO: next invoice date [2026-01-08 00:00:07] Production.INFO: 2026-02-08 [2026-01-08 00:00:07] Production.INFO: getdaysdiff [2026-01-08 00:00:07] Production.INFO: +31 [2026-01-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (242,13,2,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:08] Production.INFO: next invoice date [2026-01-08 00:00:08] Production.INFO: 2026-02-08 [2026-01-08 00:00:08] Production.INFO: getdaysdiff [2026-01-08 00:00:08] Production.INFO: +31 [2026-01-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (243,16,1,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:08] Production.INFO: next invoice date [2026-01-08 00:00:08] Production.INFO: 2026-02-08 [2026-01-08 00:00:08] Production.INFO: getdaysdiff [2026-01-08 00:00:08] Production.INFO: +31 [2026-01-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (243,13,2,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:08] Production.INFO: next invoice date [2026-01-08 00:00:08] Production.INFO: 2026-02-08 [2026-01-08 00:00:08] Production.INFO: getdaysdiff [2026-01-08 00:00:08] Production.INFO: +31 [2026-01-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (245,16,1,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:08] Production.INFO: next invoice date [2026-01-08 00:00:08] Production.INFO: 2026-02-08 [2026-01-08 00:00:08] Production.INFO: getdaysdiff [2026-01-08 00:00:08] Production.INFO: +31 [2026-01-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (245,13,2,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:08] Production.INFO: next invoice date [2026-01-08 00:00:08] Production.INFO: 2026-02-08 [2026-01-08 00:00:08] Production.INFO: getdaysdiff [2026-01-08 00:00:08] Production.INFO: +31 [2026-01-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (231,16,1,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:08] Production.INFO: next invoice date [2026-01-08 00:00:08] Production.INFO: 2026-02-08 [2026-01-08 00:00:08] Production.INFO: getdaysdiff [2026-01-08 00:00:08] Production.INFO: +31 [2026-01-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (231,13,2,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:08] Production.INFO: next invoice date [2026-01-08 00:00:08] Production.INFO: 2026-02-08 [2026-01-08 00:00:08] Production.INFO: getdaysdiff [2026-01-08 00:00:08] Production.INFO: +31 [2026-01-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (250,16,1,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:08] Production.INFO: next invoice date [2026-01-08 00:00:08] Production.INFO: 2026-02-08 [2026-01-08 00:00:08] Production.INFO: getdaysdiff [2026-01-08 00:00:08] Production.INFO: +31 [2026-01-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (250,13,2,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:09] Production.INFO: next invoice date [2026-01-08 00:00:09] Production.INFO: 2026-02-08 [2026-01-08 00:00:09] Production.INFO: getdaysdiff [2026-01-08 00:00:09] Production.INFO: +31 [2026-01-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (251,16,1,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:09] Production.INFO: next invoice date [2026-01-08 00:00:09] Production.INFO: 2026-02-08 [2026-01-08 00:00:09] Production.INFO: getdaysdiff [2026-01-08 00:00:09] Production.INFO: +31 [2026-01-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (251,13,2,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:09] Production.INFO: next invoice date [2026-01-08 00:00:09] Production.INFO: 2026-02-08 [2026-01-08 00:00:09] Production.INFO: getdaysdiff [2026-01-08 00:00:09] Production.INFO: +31 [2026-01-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (254,16,1,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:09] Production.INFO: next invoice date [2026-01-08 00:00:09] Production.INFO: 2026-02-08 [2026-01-08 00:00:09] Production.INFO: getdaysdiff [2026-01-08 00:00:09] Production.INFO: +31 [2026-01-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (254,13,2,31,31,'RMScheduler',2026-01-08 00:00:04,1,0,,,0) [2026-01-08 00:00:11] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 21:00:11 [end_date_ymd] => 2026-01-08 00:00:11 [RateCDR] => 1 ) [2026-01-08 00:00:11] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-07 21:00:11' and `end` < '2026-01-08 00:00:11' 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-08 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 22:01:05 [end_date_ymd] => 2026-01-08 01:01:05 [RateCDR] => 1 ) [2026-01-08 01:01:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-07 22:01:05' and `end` < '2026-01-08 01:01:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 01:01:23] Production.INFO: count ==539 [2026-01-08 01:01:23] Production.ERROR: pbx CDR StartTime 2026-01-07 22:01:05 - End Time 2026-01-08 01:01:05 [2026-01-08 01:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 01:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16523407', 'tblTempUsageDetail_20' ) start [2026-01-08 01:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16523407', 'tblTempUsageDetail_20' ) end [2026-01-08 01:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16523407', 'tblTempVendorCDR_20' ) start [2026-01-08 01:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16523407', 'tblTempVendorCDR_20' ) end [2026-01-08 01:01:23] Production.INFO: ProcessCDR(1,16523407,1,1,2) [2026-01-08 01:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16523407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 01:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16523407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 01:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16523407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 01:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16523407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 01:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16523407', 'tblTempUsageDetail_20' ) start [2026-01-08 01:08:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16523407', 'tblTempUsageDetail_20' ) end [2026-01-08 01:08:29] Production.ERROR: pbx prc_insertCDR start [2026-01-08 01:08:29] Production.ERROR: pbx prc_insertCDR end [2026-01-08 01:08:30] Production.INFO: ==621== Releasing lock... [2026-01-08 01:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 01:08:30] Production.INFO: 36.25 MB #Memory Used# [2026-01-08 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-07 23:01:06 [end_date_ymd] => 2026-01-08 02:01:06 [RateCDR] => 1 ) [2026-01-08 02:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-07 23:01:06' and `end` < '2026-01-08 02:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 02:01:18] Production.INFO: count ==587 [2026-01-08 02:01:19] Production.ERROR: pbx CDR StartTime 2026-01-07 23:01:06 - End Time 2026-01-08 02:01:06 [2026-01-08 02:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16523653', 'tblTempUsageDetail_20' ) start [2026-01-08 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16523653', 'tblTempUsageDetail_20' ) end [2026-01-08 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16523653', 'tblTempVendorCDR_20' ) start [2026-01-08 02:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16523653', 'tblTempVendorCDR_20' ) end [2026-01-08 02:01:19] Production.INFO: ProcessCDR(1,16523653,1,1,2) [2026-01-08 02:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16523653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 02:04:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16523653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 02:04:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16523653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 02:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16523653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 02:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16523653', 'tblTempUsageDetail_20' ) start [2026-01-08 02:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16523653', 'tblTempUsageDetail_20' ) end [2026-01-08 02:08:26] Production.ERROR: pbx prc_insertCDR start [2026-01-08 02:08:26] Production.ERROR: pbx prc_insertCDR end [2026-01-08 02:08:26] Production.INFO: ==5490== Releasing lock... [2026-01-08 02:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 02:08:26] Production.INFO: 33.25 MB #Memory Used# [2026-01-08 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 00:01:06 [end_date_ymd] => 2026-01-08 03:01:06 [RateCDR] => 1 ) [2026-01-08 03:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 00:01:06' and `end` < '2026-01-08 03:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 03:01:18] Production.INFO: count ==576 [2026-01-08 03:01:18] Production.ERROR: pbx CDR StartTime 2026-01-08 00:01:06 - End Time 2026-01-08 03:01:06 [2026-01-08 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16523901', 'tblTempUsageDetail_20' ) start [2026-01-08 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16523901', 'tblTempUsageDetail_20' ) end [2026-01-08 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16523901', 'tblTempVendorCDR_20' ) start [2026-01-08 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16523901', 'tblTempVendorCDR_20' ) end [2026-01-08 03:01:18] Production.INFO: ProcessCDR(1,16523901,1,1,2) [2026-01-08 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16523901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 03:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16523901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 03:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16523901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 03:08:11] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16523901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 03:08:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16523901', 'tblTempUsageDetail_20' ) start [2026-01-08 03:08:12] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16523901', 'tblTempUsageDetail_20' ) end [2026-01-08 03:08:12] Production.ERROR: pbx prc_insertCDR start [2026-01-08 03:08:12] Production.ERROR: pbx prc_insertCDR end [2026-01-08 03:08:12] Production.INFO: ==10038== Releasing lock... [2026-01-08 03:08:12] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 03:08:12] Production.INFO: 33 MB #Memory Used# [2026-01-08 04:01:07] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 01:01:07 [end_date_ymd] => 2026-01-08 04:01:07 [RateCDR] => 1 ) [2026-01-08 04:01:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 01:01:07' and `end` < '2026-01-08 04:01:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 04:01:19] Production.INFO: count ==373 [2026-01-08 04:01:19] Production.ERROR: pbx CDR StartTime 2026-01-08 01:01:07 - End Time 2026-01-08 04:01:07 [2026-01-08 04:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16524149', 'tblTempUsageDetail_20' ) start [2026-01-08 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16524149', 'tblTempUsageDetail_20' ) end [2026-01-08 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16524149', 'tblTempVendorCDR_20' ) start [2026-01-08 04:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16524149', 'tblTempVendorCDR_20' ) end [2026-01-08 04:01:19] Production.INFO: ProcessCDR(1,16524149,1,1,2) [2026-01-08 04:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16524149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 04:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16524149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 04:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16524149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 04:07:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16524149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 04:07:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16524149', 'tblTempUsageDetail_20' ) start [2026-01-08 04:07:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16524149', 'tblTempUsageDetail_20' ) end [2026-01-08 04:07:56] Production.ERROR: pbx prc_insertCDR start [2026-01-08 04:07:56] Production.ERROR: pbx prc_insertCDR end [2026-01-08 04:07:56] Production.INFO: ==14278== Releasing lock... [2026-01-08 04:07:56] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 04:07:56] Production.INFO: 31.75 MB #Memory Used# [2026-01-08 05:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 02:01:06 [end_date_ymd] => 2026-01-08 05:01:06 [RateCDR] => 1 ) [2026-01-08 05:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 02:01:06' and `end` < '2026-01-08 05:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 05:01:18] Production.INFO: count ==202 [2026-01-08 05:01:18] Production.ERROR: pbx CDR StartTime 2026-01-08 02:01:06 - End Time 2026-01-08 05:01:06 [2026-01-08 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16524397', 'tblTempUsageDetail_20' ) start [2026-01-08 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16524397', 'tblTempUsageDetail_20' ) end [2026-01-08 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16524397', 'tblTempVendorCDR_20' ) start [2026-01-08 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16524397', 'tblTempVendorCDR_20' ) end [2026-01-08 05:01:18] Production.INFO: ProcessCDR(1,16524397,1,1,2) [2026-01-08 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16524397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 05:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16524397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 05:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16524397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 05:08:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16524397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 05:08:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16524397', 'tblTempUsageDetail_20' ) start [2026-01-08 05:08:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16524397', 'tblTempUsageDetail_20' ) end [2026-01-08 05:08:16] Production.ERROR: pbx prc_insertCDR start [2026-01-08 05:08:16] Production.ERROR: pbx prc_insertCDR end [2026-01-08 05:08:16] Production.INFO: ==19191== Releasing lock... [2026-01-08 05:08:16] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 05:08:16] Production.INFO: 30 MB #Memory Used# [2026-01-08 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 03:01:06 [end_date_ymd] => 2026-01-08 06:01:06 [RateCDR] => 1 ) [2026-01-08 06:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 03:01:06' and `end` < '2026-01-08 06:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 06:01:19] Production.INFO: count ==80 [2026-01-08 06:01:19] Production.ERROR: pbx CDR StartTime 2026-01-08 03:01:06 - End Time 2026-01-08 06:01:06 [2026-01-08 06:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16524644', 'tblTempUsageDetail_20' ) start [2026-01-08 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16524644', 'tblTempUsageDetail_20' ) end [2026-01-08 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16524644', 'tblTempVendorCDR_20' ) start [2026-01-08 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16524644', 'tblTempVendorCDR_20' ) end [2026-01-08 06:01:19] Production.INFO: ProcessCDR(1,16524644,1,1,2) [2026-01-08 06:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16524644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 06:04:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16524644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 06:04:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16524644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 06:08:03] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16524644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 06:08:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16524644', 'tblTempUsageDetail_20' ) start [2026-01-08 06:08:03] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16524644', 'tblTempUsageDetail_20' ) end [2026-01-08 06:08:03] Production.ERROR: pbx prc_insertCDR start [2026-01-08 06:08:03] Production.ERROR: pbx prc_insertCDR end [2026-01-08 06:08:03] Production.INFO: ==24258== Releasing lock... [2026-01-08 06:08:03] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 06:08:03] Production.INFO: 28.25 MB #Memory Used# [2026-01-08 07:01:07] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 04:01:07 [end_date_ymd] => 2026-01-08 07:01:07 [RateCDR] => 1 ) [2026-01-08 07:01:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 04:01:07' and `end` < '2026-01-08 07:01:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 07:01:19] Production.INFO: count ==83 [2026-01-08 07:01:19] Production.ERROR: pbx CDR StartTime 2026-01-08 04:01:07 - End Time 2026-01-08 07:01:07 [2026-01-08 07:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16524891', 'tblTempUsageDetail_20' ) start [2026-01-08 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16524891', 'tblTempUsageDetail_20' ) end [2026-01-08 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16524891', 'tblTempVendorCDR_20' ) start [2026-01-08 07:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16524891', 'tblTempVendorCDR_20' ) end [2026-01-08 07:01:19] Production.INFO: ProcessCDR(1,16524891,1,1,2) [2026-01-08 07:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16524891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 07:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16524891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 07:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16524891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 07:08:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16524891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 07:08:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16524891', 'tblTempUsageDetail_20' ) start [2026-01-08 07:08:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16524891', 'tblTempUsageDetail_20' ) end [2026-01-08 07:08:02] Production.ERROR: pbx prc_insertCDR start [2026-01-08 07:08:02] Production.ERROR: pbx prc_insertCDR end [2026-01-08 07:08:02] Production.INFO: ==29026== Releasing lock... [2026-01-08 07:08:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 07:08:02] Production.INFO: 28.5 MB #Memory Used# [2026-01-08 08:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 05:01:06 [end_date_ymd] => 2026-01-08 08:01:06 [RateCDR] => 1 ) [2026-01-08 08:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 05:01:06' and `end` < '2026-01-08 08:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 08:01:18] Production.INFO: count ==162 [2026-01-08 08:01:18] Production.ERROR: pbx CDR StartTime 2026-01-08 05:01:06 - End Time 2026-01-08 08:01:06 [2026-01-08 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16525138', 'tblTempUsageDetail_20' ) start [2026-01-08 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16525138', 'tblTempUsageDetail_20' ) end [2026-01-08 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16525138', 'tblTempVendorCDR_20' ) start [2026-01-08 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16525138', 'tblTempVendorCDR_20' ) end [2026-01-08 08:01:18] Production.INFO: ProcessCDR(1,16525138,1,1,2) [2026-01-08 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16525138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 08:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16525138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 08:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16525138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 08:08:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16525138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 08:08:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16525138', 'tblTempUsageDetail_20' ) start [2026-01-08 08:08:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16525138', 'tblTempUsageDetail_20' ) end [2026-01-08 08:08:17] Production.ERROR: pbx prc_insertCDR start [2026-01-08 08:08:17] Production.ERROR: pbx prc_insertCDR end [2026-01-08 08:08:17] Production.INFO: ==1119== Releasing lock... [2026-01-08 08:08:17] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 08:08:17] Production.INFO: 29.5 MB #Memory Used# [2026-01-08 09:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 06:01:06 [end_date_ymd] => 2026-01-08 09:01:06 [RateCDR] => 1 ) [2026-01-08 09:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 06:01:06' and `end` < '2026-01-08 09:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 09:01:18] Production.INFO: count ==761 [2026-01-08 09:01:19] Production.ERROR: pbx CDR StartTime 2026-01-08 06:01:06 - End Time 2026-01-08 09:01:06 [2026-01-08 09:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16525385', 'tblTempUsageDetail_20' ) start [2026-01-08 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16525385', 'tblTempUsageDetail_20' ) end [2026-01-08 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16525385', 'tblTempVendorCDR_20' ) start [2026-01-08 09:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16525385', 'tblTempVendorCDR_20' ) end [2026-01-08 09:01:19] Production.INFO: ProcessCDR(1,16525385,1,1,2) [2026-01-08 09:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16525385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 09:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16525385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 09:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16525385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 09:08:09] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16525385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 09:08:09] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16525385', 'tblTempUsageDetail_20' ) start [2026-01-08 09:08:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16525385', 'tblTempUsageDetail_20' ) end [2026-01-08 09:08:10] Production.ERROR: pbx prc_insertCDR start [2026-01-08 09:08:10] Production.ERROR: pbx prc_insertCDR end [2026-01-08 09:08:10] Production.INFO: ==6184== Releasing lock... [2026-01-08 09:08:10] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 09:08:10] Production.INFO: 34 MB #Memory Used# [2026-01-08 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 07:01:06 [end_date_ymd] => 2026-01-08 10:01:06 [RateCDR] => 1 ) [2026-01-08 10:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 07:01:06' and `end` < '2026-01-08 10:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 10:01:21] Production.INFO: count ==2381 [2026-01-08 10:01:22] Production.ERROR: pbx CDR StartTime 2026-01-08 07:01:06 - End Time 2026-01-08 10:01:06 [2026-01-08 10:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 10:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16525632', 'tblTempUsageDetail_20' ) start [2026-01-08 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16525632', 'tblTempUsageDetail_20' ) end [2026-01-08 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16525632', 'tblTempVendorCDR_20' ) start [2026-01-08 10:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16525632', 'tblTempVendorCDR_20' ) end [2026-01-08 10:01:23] Production.INFO: ProcessCDR(1,16525632,1,1,2) [2026-01-08 10:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16525632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 10:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16525632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 10:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16525632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 10:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16525632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16525632', 'tblTempUsageDetail_20' ) start [2026-01-08 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16525632', 'tblTempUsageDetail_20' ) end [2026-01-08 10:08:22] Production.ERROR: pbx prc_insertCDR start [2026-01-08 10:08:24] Production.ERROR: pbx prc_insertCDR end [2026-01-08 10:08:24] Production.INFO: ==11744== Releasing lock... [2026-01-08 10:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 10:08:24] Production.INFO: 46.5 MB #Memory Used# [2026-01-08 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 08:01:06 [end_date_ymd] => 2026-01-08 11:01:06 [RateCDR] => 1 ) [2026-01-08 11:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 08:01:06' and `end` < '2026-01-08 11:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 11:01:21] Production.INFO: count ==4126 [2026-01-08 11:01:23] Production.ERROR: pbx CDR StartTime 2026-01-08 08:01:06 - End Time 2026-01-08 11:01:06 [2026-01-08 11:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 11:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16525878', 'tblTempUsageDetail_20' ) start [2026-01-08 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16525878', 'tblTempUsageDetail_20' ) end [2026-01-08 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16525878', 'tblTempVendorCDR_20' ) start [2026-01-08 11:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16525878', 'tblTempVendorCDR_20' ) end [2026-01-08 11:01:24] Production.INFO: ProcessCDR(1,16525878,1,1,2) [2026-01-08 11:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16525878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 11:04:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16525878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 11:04:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16525878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 11:08:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16525878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 11:08:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16525878', 'tblTempUsageDetail_20' ) start [2026-01-08 11:08:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16525878', 'tblTempUsageDetail_20' ) end [2026-01-08 11:08:47] Production.ERROR: pbx prc_insertCDR start [2026-01-08 11:08:49] Production.ERROR: pbx prc_insertCDR end [2026-01-08 11:08:49] Production.INFO: ==16374== Releasing lock... [2026-01-08 11:08:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 11:08:49] Production.INFO: 59 MB #Memory Used# [2026-01-08 12:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 09:01:06 [end_date_ymd] => 2026-01-08 12:01:06 [RateCDR] => 1 ) [2026-01-08 12:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 09:01:06' and `end` < '2026-01-08 12:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 12:01:21] Production.INFO: count ==5182 [2026-01-08 12:01:23] Production.ERROR: pbx CDR StartTime 2026-01-08 09:01:06 - End Time 2026-01-08 12:01:06 [2026-01-08 12:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 12:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16526126', 'tblTempUsageDetail_20' ) start [2026-01-08 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16526126', 'tblTempUsageDetail_20' ) end [2026-01-08 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16526126', 'tblTempVendorCDR_20' ) start [2026-01-08 12:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16526126', 'tblTempVendorCDR_20' ) end [2026-01-08 12:01:24] Production.INFO: ProcessCDR(1,16526126,1,1,2) [2026-01-08 12:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16526126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 12:04:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16526126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 12:04:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16526126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 12:08:17] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16526126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 12:08:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16526126', 'tblTempUsageDetail_20' ) start [2026-01-08 12:08:17] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16526126', 'tblTempUsageDetail_20' ) end [2026-01-08 12:08:17] Production.ERROR: pbx prc_insertCDR start [2026-01-08 12:08:20] Production.ERROR: pbx prc_insertCDR end [2026-01-08 12:08:20] Production.INFO: ==20832== Releasing lock... [2026-01-08 12:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 12:08:20] Production.INFO: 67 MB #Memory Used# [2026-01-08 13:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 10:01:06 [end_date_ymd] => 2026-01-08 13:01:06 [RateCDR] => 1 ) [2026-01-08 13:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 10:01:06' and `end` < '2026-01-08 13:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 13:01:20] Production.INFO: count ==5307 [2026-01-08 13:01:23] Production.ERROR: pbx CDR StartTime 2026-01-08 10:01:06 - End Time 2026-01-08 13:01:06 [2026-01-08 13:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16526373', 'tblTempUsageDetail_20' ) start [2026-01-08 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16526373', 'tblTempUsageDetail_20' ) end [2026-01-08 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16526373', 'tblTempVendorCDR_20' ) start [2026-01-08 13:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16526373', 'tblTempVendorCDR_20' ) end [2026-01-08 13:01:23] Production.INFO: ProcessCDR(1,16526373,1,1,2) [2026-01-08 13:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16526373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 13:04:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16526373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 13:04:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16526373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 13:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16526373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 13:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16526373', 'tblTempUsageDetail_20' ) start [2026-01-08 13:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16526373', 'tblTempUsageDetail_20' ) end [2026-01-08 13:08:25] Production.ERROR: pbx prc_insertCDR start [2026-01-08 13:08:28] Production.ERROR: pbx prc_insertCDR end [2026-01-08 13:08:28] Production.INFO: ==25531== Releasing lock... [2026-01-08 13:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 13:08:28] Production.INFO: 68 MB #Memory Used# [2026-01-08 14:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 11:01:06 [end_date_ymd] => 2026-01-08 14:01:06 [RateCDR] => 1 ) [2026-01-08 14:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 11:01:06' and `end` < '2026-01-08 14:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 14:01:22] Production.INFO: count ==5567 [2026-01-08 14:01:24] Production.ERROR: pbx CDR StartTime 2026-01-08 11:01:06 - End Time 2026-01-08 14:01:06 [2026-01-08 14:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 14:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16526619', 'tblTempUsageDetail_20' ) start [2026-01-08 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16526619', 'tblTempUsageDetail_20' ) end [2026-01-08 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16526619', 'tblTempVendorCDR_20' ) start [2026-01-08 14:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16526619', 'tblTempVendorCDR_20' ) end [2026-01-08 14:01:25] Production.INFO: ProcessCDR(1,16526619,1,1,2) [2026-01-08 14:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16526619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 14:05:09] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16526619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 14:05:09] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16526619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 14:08:57] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16526619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 14:08:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16526619', 'tblTempUsageDetail_20' ) start [2026-01-08 14:08:57] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16526619', 'tblTempUsageDetail_20' ) end [2026-01-08 14:08:57] Production.ERROR: pbx prc_insertCDR start [2026-01-08 14:09:00] Production.ERROR: pbx prc_insertCDR end [2026-01-08 14:09:00] Production.INFO: ==32617== Releasing lock... [2026-01-08 14:09:00] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 14:09:00] Production.INFO: 70 MB #Memory Used# [2026-01-08 15:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 12:01:06 [end_date_ymd] => 2026-01-08 15:01:06 [RateCDR] => 1 ) [2026-01-08 15:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 12:01:06' and `end` < '2026-01-08 15:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 15:01:21] Production.INFO: count ==5736 [2026-01-08 15:01:24] Production.ERROR: pbx CDR StartTime 2026-01-08 12:01:06 - End Time 2026-01-08 15:01:06 [2026-01-08 15:01:24] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 15:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16526866', 'tblTempUsageDetail_20' ) start [2026-01-08 15:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16526866', 'tblTempUsageDetail_20' ) end [2026-01-08 15:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16526866', 'tblTempVendorCDR_20' ) start [2026-01-08 15:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16526866', 'tblTempVendorCDR_20' ) end [2026-01-08 15:01:25] Production.INFO: ProcessCDR(1,16526866,1,1,2) [2026-01-08 15:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16526866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 15:04:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16526866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 15:04:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16526866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 15:08:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16526866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 15:08:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16526866', 'tblTempUsageDetail_20' ) start [2026-01-08 15:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16526866', 'tblTempUsageDetail_20' ) end [2026-01-08 15:08:31] Production.ERROR: pbx prc_insertCDR start [2026-01-08 15:08:33] Production.ERROR: pbx prc_insertCDR end [2026-01-08 15:08:33] Production.INFO: ==5567== Releasing lock... [2026-01-08 15:08:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 15:08:33] Production.INFO: 71.25 MB #Memory Used# [2026-01-08 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 13:01:06 [end_date_ymd] => 2026-01-08 16:01:06 [RateCDR] => 1 ) [2026-01-08 16:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 13:01:06' and `end` < '2026-01-08 16:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 16:01:28] Production.INFO: count ==5807 [2026-01-08 16:01:31] Production.ERROR: pbx CDR StartTime 2026-01-08 13:01:06 - End Time 2026-01-08 16:01:06 [2026-01-08 16:01:31] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 16:01:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16527114', 'tblTempUsageDetail_20' ) start [2026-01-08 16:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16527114', 'tblTempUsageDetail_20' ) end [2026-01-08 16:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16527114', 'tblTempVendorCDR_20' ) start [2026-01-08 16:01:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16527114', 'tblTempVendorCDR_20' ) end [2026-01-08 16:01:32] Production.INFO: ProcessCDR(1,16527114,1,1,2) [2026-01-08 16:01:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16527114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 16:04:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16527114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 16:04:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16527114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 16:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16527114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16527114', 'tblTempUsageDetail_20' ) start [2026-01-08 16:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16527114', 'tblTempUsageDetail_20' ) end [2026-01-08 16:08:28] Production.ERROR: pbx prc_insertCDR start [2026-01-08 16:08:30] Production.ERROR: pbx prc_insertCDR end [2026-01-08 16:08:30] Production.INFO: ==9934== Releasing lock... [2026-01-08 16:08:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 16:08:30] Production.INFO: 71.75 MB #Memory Used# [2026-01-08 17:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 14:01:06 [end_date_ymd] => 2026-01-08 17:01:06 [RateCDR] => 1 ) [2026-01-08 17:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 14:01:06' and `end` < '2026-01-08 17:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 17:01:20] Production.INFO: count ==5390 [2026-01-08 17:01:23] Production.ERROR: pbx CDR StartTime 2026-01-08 14:01:06 - End Time 2026-01-08 17:01:06 [2026-01-08 17:01:23] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 17:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16527361', 'tblTempUsageDetail_20' ) start [2026-01-08 17:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16527361', 'tblTempUsageDetail_20' ) end [2026-01-08 17:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16527361', 'tblTempVendorCDR_20' ) start [2026-01-08 17:01:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16527361', 'tblTempVendorCDR_20' ) end [2026-01-08 17:01:24] Production.INFO: ProcessCDR(1,16527361,1,1,2) [2026-01-08 17:01:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16527361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 17:04:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16527361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 17:04:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16527361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 17:08:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16527361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 17:08:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16527361', 'tblTempUsageDetail_20' ) start [2026-01-08 17:08:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16527361', 'tblTempUsageDetail_20' ) end [2026-01-08 17:08:42] Production.ERROR: pbx prc_insertCDR start [2026-01-08 17:08:45] Production.ERROR: pbx prc_insertCDR end [2026-01-08 17:08:45] Production.INFO: ==14238== Releasing lock... [2026-01-08 17:08:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 17:08:45] Production.INFO: 68.5 MB #Memory Used# [2026-01-08 18:01:07] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 15:01:07 [end_date_ymd] => 2026-01-08 18:01:07 [RateCDR] => 1 ) [2026-01-08 18:01:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 15:01:07' and `end` < '2026-01-08 18:01:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 18:01:20] Production.INFO: count ==4634 [2026-01-08 18:01:22] Production.ERROR: pbx CDR StartTime 2026-01-08 15:01:07 - End Time 2026-01-08 18:01:07 [2026-01-08 18:01:22] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 18:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16527605', 'tblTempUsageDetail_20' ) start [2026-01-08 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16527605', 'tblTempUsageDetail_20' ) end [2026-01-08 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16527605', 'tblTempVendorCDR_20' ) start [2026-01-08 18:01:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16527605', 'tblTempVendorCDR_20' ) end [2026-01-08 18:01:23] Production.INFO: ProcessCDR(1,16527605,1,1,2) [2026-01-08 18:01:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16527605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 18:04:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16527605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 18:04:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16527605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16527605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16527605', 'tblTempUsageDetail_20' ) start [2026-01-08 18:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16527605', 'tblTempUsageDetail_20' ) end [2026-01-08 18:08:25] Production.ERROR: pbx prc_insertCDR start [2026-01-08 18:08:27] Production.ERROR: pbx prc_insertCDR end [2026-01-08 18:08:27] Production.INFO: ==18531== Releasing lock... [2026-01-08 18:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 18:08:27] Production.INFO: 63 MB #Memory Used# [2026-01-08 19:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 16:01:06 [end_date_ymd] => 2026-01-08 19:01:06 [RateCDR] => 1 ) [2026-01-08 19:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 16:01:06' and `end` < '2026-01-08 19:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 19:01:19] Production.INFO: count ==3488 [2026-01-08 19:01:20] Production.ERROR: pbx CDR StartTime 2026-01-08 16:01:06 - End Time 2026-01-08 19:01:06 [2026-01-08 19:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16527852', 'tblTempUsageDetail_20' ) start [2026-01-08 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16527852', 'tblTempUsageDetail_20' ) end [2026-01-08 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16527852', 'tblTempVendorCDR_20' ) start [2026-01-08 19:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16527852', 'tblTempVendorCDR_20' ) end [2026-01-08 19:01:20] Production.INFO: ProcessCDR(1,16527852,1,1,2) [2026-01-08 19:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16527852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 19:04:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16527852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 19:04:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16527852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 19:08:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16527852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 19:08:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16527852', 'tblTempUsageDetail_20' ) start [2026-01-08 19:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16527852', 'tblTempUsageDetail_20' ) end [2026-01-08 19:08:20] Production.ERROR: pbx prc_insertCDR start [2026-01-08 19:08:21] Production.ERROR: pbx prc_insertCDR end [2026-01-08 19:08:21] Production.INFO: ==22974== Releasing lock... [2026-01-08 19:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 19:08:21] Production.INFO: 55 MB #Memory Used# [2026-01-08 20:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 17:01:06 [end_date_ymd] => 2026-01-08 20:01:06 [RateCDR] => 1 ) [2026-01-08 20:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 17:01:06' and `end` < '2026-01-08 20:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 20:01:19] Production.INFO: count ==2510 [2026-01-08 20:01:20] Production.ERROR: pbx CDR StartTime 2026-01-08 17:01:06 - End Time 2026-01-08 20:01:06 [2026-01-08 20:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16528099', 'tblTempUsageDetail_20' ) start [2026-01-08 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16528099', 'tblTempUsageDetail_20' ) end [2026-01-08 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16528099', 'tblTempVendorCDR_20' ) start [2026-01-08 20:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16528099', 'tblTempVendorCDR_20' ) end [2026-01-08 20:01:20] Production.INFO: ProcessCDR(1,16528099,1,1,2) [2026-01-08 20:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16528099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 20:04:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16528099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 20:04:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16528099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 20:08:08] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16528099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 20:08:08] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16528099', 'tblTempUsageDetail_20' ) start [2026-01-08 20:08:10] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16528099', 'tblTempUsageDetail_20' ) end [2026-01-08 20:08:10] Production.ERROR: pbx prc_insertCDR start [2026-01-08 20:08:10] Production.ERROR: pbx prc_insertCDR end [2026-01-08 20:08:10] Production.INFO: ==27321== Releasing lock... [2026-01-08 20:08:10] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 20:08:10] Production.INFO: 47 MB #Memory Used# [2026-01-08 21:01:07] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 18:01:07 [end_date_ymd] => 2026-01-08 21:01:07 [RateCDR] => 1 ) [2026-01-08 21:01:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 18:01:07' and `end` < '2026-01-08 21:01:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 21:01:20] Production.INFO: count ==1905 [2026-01-08 21:01:20] Production.ERROR: pbx CDR StartTime 2026-01-08 18:01:07 - End Time 2026-01-08 21:01:07 [2026-01-08 21:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16528346', 'tblTempUsageDetail_20' ) start [2026-01-08 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16528346', 'tblTempUsageDetail_20' ) end [2026-01-08 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16528346', 'tblTempVendorCDR_20' ) start [2026-01-08 21:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16528346', 'tblTempVendorCDR_20' ) end [2026-01-08 21:01:20] Production.INFO: ProcessCDR(1,16528346,1,1,2) [2026-01-08 21:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16528346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 21:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16528346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 21:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16528346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 21:07:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16528346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 21:07:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16528346', 'tblTempUsageDetail_20' ) start [2026-01-08 21:07:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16528346', 'tblTempUsageDetail_20' ) end [2026-01-08 21:07:53] Production.ERROR: pbx prc_insertCDR start [2026-01-08 21:07:54] Production.ERROR: pbx prc_insertCDR end [2026-01-08 21:07:54] Production.INFO: ==32057== Releasing lock... [2026-01-08 21:07:54] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 21:07:54] Production.INFO: 42.5 MB #Memory Used# [2026-01-08 22:01:07] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 19:01:07 [end_date_ymd] => 2026-01-08 22:01:07 [RateCDR] => 1 ) [2026-01-08 22:01:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 19:01:07' and `end` < '2026-01-08 22:01:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 22:01:19] Production.INFO: count ==1466 [2026-01-08 22:01:20] Production.ERROR: pbx CDR StartTime 2026-01-08 19:01:07 - End Time 2026-01-08 22:01:07 [2026-01-08 22:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16528593', 'tblTempUsageDetail_20' ) start [2026-01-08 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16528593', 'tblTempUsageDetail_20' ) end [2026-01-08 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16528593', 'tblTempVendorCDR_20' ) start [2026-01-08 22:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16528593', 'tblTempVendorCDR_20' ) end [2026-01-08 22:01:20] Production.INFO: ProcessCDR(1,16528593,1,1,2) [2026-01-08 22:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16528593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 22:04:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16528593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 22:04:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16528593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 22:08:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16528593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 22:08:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16528593', 'tblTempUsageDetail_20' ) start [2026-01-08 22:08:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16528593', 'tblTempUsageDetail_20' ) end [2026-01-08 22:08:01] Production.ERROR: pbx prc_insertCDR start [2026-01-08 22:08:02] Production.ERROR: pbx prc_insertCDR end [2026-01-08 22:08:02] Production.INFO: ==4025== Releasing lock... [2026-01-08 22:08:02] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 22:08:02] Production.INFO: 39 MB #Memory Used# [2026-01-08 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2026-01-08 20:01:06 [end_date_ymd] => 2026-01-08 23:01:06 [RateCDR] => 1 ) [2026-01-08 23:01:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2026-01-08 20:01:06' and `end` < '2026-01-08 23:01:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2026-01-08 23:01:18] Production.INFO: count ==1009 [2026-01-08 23:01:18] Production.ERROR: pbx CDR StartTime 2026-01-08 20:01:06 - End Time 2026-01-08 23:01:06 [2026-01-08 23:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2026-01-08 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16528839', 'tblTempUsageDetail_20' ) start [2026-01-08 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16528839', 'tblTempUsageDetail_20' ) end [2026-01-08 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16528839', 'tblTempVendorCDR_20' ) start [2026-01-08 23:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16528839', 'tblTempVendorCDR_20' ) end [2026-01-08 23:01:18] Production.INFO: ProcessCDR(1,16528839,1,1,2) [2026-01-08 23:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16528839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 23:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16528839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2026-01-08 23:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16528839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 23:08:16] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16528839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2026-01-08 23:08:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16528839', 'tblTempUsageDetail_20' ) start [2026-01-08 23:08:16] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16528839', 'tblTempUsageDetail_20' ) end [2026-01-08 23:08:16] Production.ERROR: pbx prc_insertCDR start [2026-01-08 23:08:17] Production.ERROR: pbx prc_insertCDR end [2026-01-08 23:08:17] Production.INFO: ==8313== Releasing lock... [2026-01-08 23:08:17] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2026-01-08 23:08:17] Production.INFO: 36.75 MB #Memory Used#