[2025-12-08 00:00:05] Production.INFO: next invoice date [2025-12-08 00:00:05] Production.INFO: 2026-01-08 [2025-12-08 00:00:05] Production.INFO: getdaysdiff [2025-12-08 00:00:05] Production.INFO: +31 [2025-12-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (144,20,2,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:05] Production.INFO: next invoice date [2025-12-08 00:00:05] Production.INFO: 2026-01-08 [2025-12-08 00:00:05] Production.INFO: getdaysdiff [2025-12-08 00:00:05] Production.INFO: +31 [2025-12-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (211,11,1,31,31,'RMScheduler',2025-12-08 00:00:05,0,0,,,0) [2025-12-08 00:00:05] Production.INFO: next invoice date [2025-12-08 00:00:05] Production.INFO: 2026-01-08 [2025-12-08 00:00:05] Production.INFO: getdaysdiff [2025-12-08 00:00:05] Production.INFO: +31 [2025-12-08 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (211,13,2,31,31,'RMScheduler',2025-12-08 00:00:05,0,0,,,0) [2025-12-08 00:00:06] Production.INFO: next invoice date [2025-12-08 00:00:06] Production.INFO: 2026-01-08 [2025-12-08 00:00:06] Production.INFO: getdaysdiff [2025-12-08 00:00:06] Production.INFO: +31 [2025-12-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (219,11,1,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:06] Production.INFO: next invoice date [2025-12-08 00:00:06] Production.INFO: 2026-01-08 [2025-12-08 00:00:06] Production.INFO: getdaysdiff [2025-12-08 00:00:06] Production.INFO: +31 [2025-12-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (219,13,2,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:06] Production.INFO: next invoice date [2025-12-08 00:00:06] Production.INFO: 2026-01-08 [2025-12-08 00:00:06] Production.INFO: getdaysdiff [2025-12-08 00:00:06] Production.INFO: +31 [2025-12-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (220,11,1,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:06] Production.INFO: next invoice date [2025-12-08 00:00:06] Production.INFO: 2026-01-08 [2025-12-08 00:00:06] Production.INFO: getdaysdiff [2025-12-08 00:00:06] Production.INFO: +31 [2025-12-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (220,13,2,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:06] Production.INFO: next invoice date [2025-12-08 00:00:06] Production.INFO: 2026-01-08 [2025-12-08 00:00:06] Production.INFO: getdaysdiff [2025-12-08 00:00:06] Production.INFO: +31 [2025-12-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (221,11,1,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:06] Production.INFO: next invoice date [2025-12-08 00:00:06] Production.INFO: 2026-01-08 [2025-12-08 00:00:06] Production.INFO: getdaysdiff [2025-12-08 00:00:06] Production.INFO: +31 [2025-12-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (221,13,2,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:06] Production.INFO: next invoice date [2025-12-08 00:00:06] Production.INFO: 2026-01-08 [2025-12-08 00:00:06] Production.INFO: getdaysdiff [2025-12-08 00:00:06] Production.INFO: +31 [2025-12-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (222,11,1,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:06] Production.INFO: next invoice date [2025-12-08 00:00:06] Production.INFO: 2026-01-08 [2025-12-08 00:00:06] Production.INFO: getdaysdiff [2025-12-08 00:00:06] Production.INFO: +31 [2025-12-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (222,13,2,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:06] Production.INFO: next invoice date [2025-12-08 00:00:06] Production.INFO: 2026-01-08 [2025-12-08 00:00:06] Production.INFO: getdaysdiff [2025-12-08 00:00:06] Production.INFO: +31 [2025-12-08 00:00:06] Production.INFO: call prc_setAccountDiscountPlan (223,11,1,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:07] Production.INFO: next invoice date [2025-12-08 00:00:07] Production.INFO: 2026-01-08 [2025-12-08 00:00:07] Production.INFO: getdaysdiff [2025-12-08 00:00:07] Production.INFO: +31 [2025-12-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (223,13,2,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:07] Production.INFO: next invoice date [2025-12-08 00:00:07] Production.INFO: 2026-01-08 [2025-12-08 00:00:07] Production.INFO: getdaysdiff [2025-12-08 00:00:07] Production.INFO: +31 [2025-12-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (224,11,1,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:07] Production.INFO: next invoice date [2025-12-08 00:00:07] Production.INFO: 2026-01-08 [2025-12-08 00:00:07] Production.INFO: getdaysdiff [2025-12-08 00:00:07] Production.INFO: +31 [2025-12-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (224,13,2,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:07] Production.INFO: next invoice date [2025-12-08 00:00:07] Production.INFO: 2026-01-08 [2025-12-08 00:00:07] Production.INFO: getdaysdiff [2025-12-08 00:00:07] Production.INFO: +31 [2025-12-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (227,11,1,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:07] Production.INFO: next invoice date [2025-12-08 00:00:07] Production.INFO: 2026-01-08 [2025-12-08 00:00:07] Production.INFO: getdaysdiff [2025-12-08 00:00:07] Production.INFO: +31 [2025-12-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:07] Production.INFO: next invoice date [2025-12-08 00:00:07] Production.INFO: 2026-01-08 [2025-12-08 00:00:07] Production.INFO: getdaysdiff [2025-12-08 00:00:07] Production.INFO: +31 [2025-12-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (233,16,1,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:07] Production.INFO: next invoice date [2025-12-08 00:00:07] Production.INFO: 2026-01-08 [2025-12-08 00:00:07] Production.INFO: getdaysdiff [2025-12-08 00:00:07] Production.INFO: +31 [2025-12-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (233,13,2,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:07] Production.INFO: next invoice date [2025-12-08 00:00:07] Production.INFO: 2026-01-08 [2025-12-08 00:00:07] Production.INFO: getdaysdiff [2025-12-08 00:00:07] Production.INFO: +31 [2025-12-08 00:00:07] Production.INFO: call prc_setAccountDiscountPlan (238,16,1,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:08] Production.INFO: next invoice date [2025-12-08 00:00:08] Production.INFO: 2026-01-08 [2025-12-08 00:00:08] Production.INFO: getdaysdiff [2025-12-08 00:00:08] Production.INFO: +31 [2025-12-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (238,13,2,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:08] Production.INFO: next invoice date [2025-12-08 00:00:08] Production.INFO: 2026-01-08 [2025-12-08 00:00:08] Production.INFO: getdaysdiff [2025-12-08 00:00:08] Production.INFO: +31 [2025-12-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (227,16,1,31,31,'RMScheduler',2025-12-08 00:00:05,0,0,,,0) [2025-12-08 00:00:08] Production.INFO: next invoice date [2025-12-08 00:00:08] Production.INFO: 2026-01-08 [2025-12-08 00:00:08] Production.INFO: getdaysdiff [2025-12-08 00:00:08] Production.INFO: +31 [2025-12-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (227,13,2,31,31,'RMScheduler',2025-12-08 00:00:05,0,0,,,0) [2025-12-08 00:00:08] Production.INFO: next invoice date [2025-12-08 00:00:08] Production.INFO: 2026-01-08 [2025-12-08 00:00:08] Production.INFO: getdaysdiff [2025-12-08 00:00:08] Production.INFO: +31 [2025-12-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (242,16,1,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:08] Production.INFO: next invoice date [2025-12-08 00:00:08] Production.INFO: 2026-01-08 [2025-12-08 00:00:08] Production.INFO: getdaysdiff [2025-12-08 00:00:08] Production.INFO: +31 [2025-12-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (242,13,2,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:08] Production.INFO: next invoice date [2025-12-08 00:00:08] Production.INFO: 2026-01-08 [2025-12-08 00:00:08] Production.INFO: getdaysdiff [2025-12-08 00:00:08] Production.INFO: +31 [2025-12-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (243,16,1,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:08] Production.INFO: next invoice date [2025-12-08 00:00:08] Production.INFO: 2026-01-08 [2025-12-08 00:00:08] Production.INFO: getdaysdiff [2025-12-08 00:00:08] Production.INFO: +31 [2025-12-08 00:00:08] Production.INFO: call prc_setAccountDiscountPlan (243,13,2,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:09] Production.INFO: next invoice date [2025-12-08 00:00:09] Production.INFO: 2026-01-08 [2025-12-08 00:00:09] Production.INFO: getdaysdiff [2025-12-08 00:00:09] Production.INFO: +31 [2025-12-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (245,16,1,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:09] Production.INFO: next invoice date [2025-12-08 00:00:09] Production.INFO: 2026-01-08 [2025-12-08 00:00:09] Production.INFO: getdaysdiff [2025-12-08 00:00:09] Production.INFO: +31 [2025-12-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (245,13,2,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:09] Production.INFO: next invoice date [2025-12-08 00:00:09] Production.INFO: 2026-01-08 [2025-12-08 00:00:09] Production.INFO: getdaysdiff [2025-12-08 00:00:09] Production.INFO: +31 [2025-12-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (231,16,1,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:09] Production.INFO: next invoice date [2025-12-08 00:00:09] Production.INFO: 2026-01-08 [2025-12-08 00:00:09] Production.INFO: getdaysdiff [2025-12-08 00:00:09] Production.INFO: +31 [2025-12-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (231,13,2,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:09] Production.INFO: next invoice date [2025-12-08 00:00:09] Production.INFO: 2026-01-08 [2025-12-08 00:00:09] Production.INFO: getdaysdiff [2025-12-08 00:00:09] Production.INFO: +31 [2025-12-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (250,16,1,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:09] Production.INFO: next invoice date [2025-12-08 00:00:09] Production.INFO: 2026-01-08 [2025-12-08 00:00:09] Production.INFO: getdaysdiff [2025-12-08 00:00:09] Production.INFO: +31 [2025-12-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (250,13,2,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:09] Production.INFO: next invoice date [2025-12-08 00:00:09] Production.INFO: 2026-01-08 [2025-12-08 00:00:09] Production.INFO: getdaysdiff [2025-12-08 00:00:09] Production.INFO: +31 [2025-12-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (251,16,1,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:09] Production.INFO: next invoice date [2025-12-08 00:00:09] Production.INFO: 2026-01-08 [2025-12-08 00:00:09] Production.INFO: getdaysdiff [2025-12-08 00:00:09] Production.INFO: +31 [2025-12-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (251,13,2,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:09] Production.INFO: next invoice date [2025-12-08 00:00:09] Production.INFO: 2026-01-08 [2025-12-08 00:00:09] Production.INFO: getdaysdiff [2025-12-08 00:00:09] Production.INFO: +31 [2025-12-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (254,16,1,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:09] Production.INFO: next invoice date [2025-12-08 00:00:09] Production.INFO: 2026-01-08 [2025-12-08 00:00:09] Production.INFO: getdaysdiff [2025-12-08 00:00:09] Production.INFO: +31 [2025-12-08 00:00:09] Production.INFO: call prc_setAccountDiscountPlan (254,13,2,31,31,'RMScheduler',2025-12-08 00:00:05,1,0,,,0) [2025-12-08 00:00:11] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 21:00:11 [end_date_ymd] => 2025-12-08 00:00:11 [RateCDR] => 1 ) [2025-12-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` >= '2025-12-07 21:00:11' and `end` < '2025-12-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 ,'') [2025-12-08 00:00:24] Production.INFO: count ==862 [2025-12-08 00:00:24] Production.ERROR: pbx CDR StartTime 2025-12-07 21:00:11 - End Time 2025-12-08 00:00:11 [2025-12-08 00:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-08 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16339408', 'tblTempUsageDetail_20' ) start [2025-12-08 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16339408', 'tblTempUsageDetail_20' ) end [2025-12-08 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16339408', 'tblTempVendorCDR_20' ) start [2025-12-08 00:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16339408', 'tblTempVendorCDR_20' ) end [2025-12-08 00:00:24] Production.INFO: ProcessCDR(1,16339408,1,1,2) [2025-12-08 00:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16339408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-08 00:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16339408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-08 00:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16339408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-08 00:00:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16339408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-08 00:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16339408', 'tblTempUsageDetail_20' ) start [2025-12-08 00:00:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16339408', 'tblTempUsageDetail_20' ) end [2025-12-08 00:00:38] Production.ERROR: pbx prc_insertCDR start [2025-12-08 00:00:39] Production.ERROR: pbx prc_insertCDR end [2025-12-08 00:00:42] Production.INFO: ==6591== Releasing lock... [2025-12-08 00:00:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-08 00:00:42] Production.INFO: 37.25 MB #Memory Used# [2025-12-08 01:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 22:00:07 [end_date_ymd] => 2025-12-08 01:00:07 [RateCDR] => 1 ) [2025-12-08 01:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-07 22:00:07' and `end` < '2025-12-08 01:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-08 01:00:23] Production.INFO: count ==553 [2025-12-08 01:00:23] Production.ERROR: pbx CDR StartTime 2025-12-07 22:00:07 - End Time 2025-12-08 01:00:07 [2025-12-08 01:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-08 01:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16339655', 'tblTempUsageDetail_20' ) start [2025-12-08 01:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16339655', 'tblTempUsageDetail_20' ) end [2025-12-08 01:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16339655', 'tblTempVendorCDR_20' ) start [2025-12-08 01:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16339655', 'tblTempVendorCDR_20' ) end [2025-12-08 01:00:23] Production.INFO: ProcessCDR(1,16339655,1,1,2) [2025-12-08 01:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16339655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-08 01:00:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16339655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-08 01:00:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16339655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-08 01:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16339655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-08 01:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16339655', 'tblTempUsageDetail_20' ) start [2025-12-08 01:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16339655', 'tblTempUsageDetail_20' ) end [2025-12-08 01:00:34] Production.ERROR: pbx prc_insertCDR start [2025-12-08 01:00:34] Production.ERROR: pbx prc_insertCDR end [2025-12-08 01:00:34] Production.INFO: ==11080== Releasing lock... [2025-12-08 01:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-08 01:00:34] Production.INFO: 33 MB #Memory Used# [2025-12-08 02:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-12-07 23:00:07 [end_date_ymd] => 2025-12-08 02:00:07 [RateCDR] => 1 ) [2025-12-08 02:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-07 23:00:07' and `end` < '2025-12-08 02:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-08 02:00:19] Production.INFO: count ==577 [2025-12-08 02:00:19] Production.ERROR: pbx CDR StartTime 2025-12-07 23:00:07 - End Time 2025-12-08 02:00:07 [2025-12-08 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-08 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16339902', 'tblTempUsageDetail_20' ) start [2025-12-08 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16339902', 'tblTempUsageDetail_20' ) end [2025-12-08 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16339902', 'tblTempVendorCDR_20' ) start [2025-12-08 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16339902', 'tblTempVendorCDR_20' ) end [2025-12-08 02:00:19] Production.INFO: ProcessCDR(1,16339902,1,1,2) [2025-12-08 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16339902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-08 02:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16339902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-08 02:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16339902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-08 02:00:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16339902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-08 02:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16339902', 'tblTempUsageDetail_20' ) start [2025-12-08 02:00:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16339902', 'tblTempUsageDetail_20' ) end [2025-12-08 02:00:30] Production.ERROR: pbx prc_insertCDR start [2025-12-08 02:00:31] Production.ERROR: pbx prc_insertCDR end [2025-12-08 02:00:31] Production.INFO: ==15644== Releasing lock... [2025-12-08 02:00:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-08 02:00:31] Production.INFO: 33.25 MB #Memory Used# [2025-12-08 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-12-08 00:00:06 [end_date_ymd] => 2025-12-08 03:00:06 [RateCDR] => 1 ) [2025-12-08 03:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-12-08 00:00:06' and `end` < '2025-12-08 03:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-12-08 03:00:17] Production.INFO: count ==489 [2025-12-08 03:00:17] Production.ERROR: pbx CDR StartTime 2025-12-08 00:00:06 - End Time 2025-12-08 03:00:06 [2025-12-08 03:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-12-08 03:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16340149', 'tblTempUsageDetail_20' ) start [2025-12-08 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '16340149', 'tblTempUsageDetail_20' ) end [2025-12-08 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16340149', 'tblTempVendorCDR_20' ) start [2025-12-08 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '16340149', 'tblTempVendorCDR_20' ) end [2025-12-08 03:00:18] Production.INFO: ProcessCDR(1,16340149,1,1,2) [2025-12-08 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,16340149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-08 03:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,16340149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-12-08 03:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,16340149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-08 03:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,16340149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-12-08 03:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16340149', 'tblTempUsageDetail_20' ) start [2025-12-08 03:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('16340149', 'tblTempUsageDetail_20' ) end [2025-12-08 03:00:28] Production.ERROR: pbx prc_insertCDR start [2025-12-08 03:00:28] Production.ERROR: pbx prc_insertCDR end [2025-12-08 03:00:28] Production.INFO: ==20858== Releasing lock... [2025-12-08 03:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-12-08 03:00:28] Production.INFO: 32.5 MB #Memory Used#